diff --git a/cron-and-profile b/cron-and-profile new file mode 100644 index 0000000..e69de29 diff --git a/latest-1.jpg b/latest-1.jpg new file mode 120000 index 0000000..c6c56e8 --- /dev/null +++ b/latest-1.jpg @@ -0,0 +1 @@ +latest.jpg \ No newline at end of file diff --git a/latest-2.jpg b/latest-2.jpg new file mode 120000 index 0000000..c6c56e8 --- /dev/null +++ b/latest-2.jpg @@ -0,0 +1 @@ +latest.jpg \ No newline at end of file diff --git a/latest.jpg b/latest.jpg new file mode 100644 index 0000000..31fc680 Binary files /dev/null and b/latest.jpg differ diff --git a/sunflower.sh b/sunflower.sh new file mode 100755 index 0000000..51bb92f --- /dev/null +++ b/sunflower.sh @@ -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