avinashbot / satellite

Download the latest images from Himawari-8 or DSCOVR and set it as your desktop background.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a download only option

ismail opened this issue · comments

Gnome3 itself can detect when the background file has changed and refresh the wallpaper itself. So it would be very nice to have an option to download the latest image only and not set the background.

That's probably a good idea, because it's not currently possible to just get the image. It will require a bit of refactoring, so this might take a bit of time.

Two things, it just hangs if $HOME/Pictures does not exist, and after I manually created the directory it doesn't put any file there:

λ cat /tmp/satellite.log
2016/02/10 20:21:15 Starting download...
2016/02/10 20:21:31 Done! Download took 16.032830449s.

λ ls -al Pictures/
total 16
drwxr-xr-x 2 ismail users 4096 Feb 10 20:19 ./
drwxr-xr-x 95 ismail users 12288 Feb 10 20:21 ../

That is weird, it worked fine on Fedora for me. ~/Desktop/Hello didn't exist prior to the test, and it downloaded the image as expected. What options did you provide the command?

$ ./satellite_linux_amd64 -dontset -path $HOME/Desktop/Hello/World/test.png
2016/02/10 19:02:56 Starting download...
2016/02/10 19:03:06 Done! Download took 9.603027802s.

$ ls ~/Desktop/Hello/World/test.png 
/home/avinashd/Desktop/Hello/World/test.png

I did not set a path parameter to make it use the default $HOME/Pictures, exact command line was:

satellite -depth 16 -every 15m -dontset &> /tmp/satellite.log

Never mind my comments, default location seems to be ~/.local/share/himawari on Linux.

Oh, thank god. I was worried about some obtuse issue that didn't produce an error. Phew!