first commit
This commit is contained in:
parent
75955b2c9f
commit
d45cc35792
|
@ -0,0 +1 @@
|
||||||
|
latest.jpg
|
|
@ -0,0 +1 @@
|
||||||
|
latest.jpg
|
Binary file not shown.
After Width: | Height: | Size: 107 KiB |
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
pythonLocation="/usr/bin/python3"
|
||||||
|
downloaderLocation="/home/pi/himawari/himawari.py"
|
||||||
|
outputLocation="/home/pi/Diskbot-Home/Weather Images/Himawari-8/"
|
||||||
|
tempLocation="/home/pi/sunflower/"
|
||||||
|
# imagesToShow="/home/pi/sunflower/latest.jpg /home/pi/sunflower/latest-1.jpg /home/pi/sunflower/latest-2.jpg"
|
||||||
|
quality=4 #x550
|
||||||
|
|
||||||
|
# sudo /usr/bin/fbi -T 1 -d /dev/fb0 -noverbose -t 60 -cachemem 0 $imagesToShow
|
||||||
|
# sudo /usr/bin/raspi-gpio set 8 a2
|
||||||
|
# sudo /usr/bin/raspi-gpio set 7 a2
|
||||||
|
|
||||||
|
|
||||||
|
# while true
|
||||||
|
# do
|
||||||
|
captureTime="$(date +"%Y%m%d-%H%M")"
|
||||||
|
tempFile="${tempLocation}${captureTime}.png"
|
||||||
|
|
||||||
|
# echo $captureTime
|
||||||
|
$pythonLocation $downloaderLocation "$tempFile" $quality
|
||||||
|
|
||||||
|
convert "$tempFile" -resize 480x480 "${tempLocation}latest.jpg"
|
||||||
|
convert "$tempFile" "${outputLocation}latest.jpg"
|
||||||
|
cp "${outputLocation}latest.jpg" "${outputLocation}${captureTime}.jpg"
|
||||||
|
|
||||||
|
# echo "now sleep..."
|
||||||
|
# sleep 10m
|
||||||
|
#done
|
Loading…
Reference in New Issue