Update README.md

This commit is contained in:
James 2022-01-31 13:13:57 +11:00 committed by GitHub
parent b17c2dbe2c
commit 3780b79801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -1 +1,14 @@
# sunflower
Requires https://github.com/at-adityavikram/himawari.git
## .profile
```
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
echo "SSH Connection, skipping FBI"
else
sudo /usr/bin/fbi -T 1 -d /dev/fb0 -noverbose -t 60 -cachemem 0 /home/pi/sunflower/latest.jpg /home/pi/sunflower/latest-1.jpg /home/pi/sunflower/latest-2.jpg
fi
```
# cron
`*/10 * * * * /bin/bash /home/pi/sunflower/sunflower.sh > /dev/null`