--> Create your apache webserver.
Then go /var/www/html/ and make sure no index.html file is present.
This way we will access the folder directly to access raw data.
Do not forget to mount yor external data drive (in order not to
overcome OS drive capability with time) and EDIT YOUR /etc/bash.rc
file adding the info bellow to do it every time you reboot. Best practice here!
--> Now create the script that will run to download images, starting from boot
and lasting for computer's uptime.
both things are done by editing the /etc/rc.local file in your raspberry pi.
____________________________________________________________________________________________________________________
| sudo mount /dev/sda1 /var/www/html & |
| |
| sudo watch -n 14400 wget -P /var/www/html/ https://sdo.gsfc.nasa.gov/assets/img/latest/latest_2048_HMII.jpg & |
| |
| exit 0 |
|___________________________________________________________________________________________________________________|
--> Run the necesary permissions update command
sudo chmod +x /etc/rc.local
--> here -as an example- we are downloading a sun picture provided by nasa,
every 4 hours (time in seconds)
... Now we wait and see the results.
I used imagemagick convert to create the funny ani.gif file!
sudo convert -delay 20 -loop 0 *.jpg.* ani.gif
...rollin`good up to date!