first commit

This commit is contained in:
jameswood 2020-11-29 14:40:29 +11:00
parent 75955b2c9f
commit d45cc35792
5 changed files with 31 additions and 0 deletions

0
cron-and-profile Normal file
View File

1
latest-1.jpg Symbolic link
View File

@ -0,0 +1 @@
latest.jpg

1
latest-2.jpg Symbolic link
View File

@ -0,0 +1 @@
latest.jpg

BIN
latest.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

29
sunflower.sh Executable file
View File

@ -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