Does the picture have to be selected as background pic in different manner than usual? The script fetches data nicely, but the desktop doesn't change with the file.
Does the picture have to be selected as background pic in different manner than usual? The script fetches data nicely, but the desktop doesn't change with the file.
Nothing special on how to choose the background picture.
As for the changes, it is quite slow and sometimes you can't even notice them.
The only dramatic change is when I turn my computer on and just a few seconds before it gets connected to my home wireless network, I see the previous stored image and then it smoothly changes to the current state.
I am not sure what's your case, .....maybe it is correct but you haven't notice the changes, yet?????
Do you want to post a picture of your desktop right now and show us what's there already????
Hehe, just checked again - now it has updated. Nope, i compared my desktop to the file in .gnome2 folder. It had updated in the folder, but it took some time 'til it got to my desktop.
(btw, are those updates at opentopia.com really that slow - latest 22:00 UTC?!)
Thanks for your help anyways
This is not working for me. I feel that I have probably overlooked something pretty simple. When I execute the script, here is what happens.
Any ideas?Code:michael@michael-desktop:~/.earthwallpaper$ sh changer.sh --2011-05-06 17:47:12-- http://www.opentopia.com/images/data/sunlight/world_sunlight_map_rectangular.jpg Resolving www.opentopia.com... 64.191.18.213 Connecting to www.opentopia.com|64.191.18.213|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 154788 (151K) [image/jpeg] Saving to: `world.jpg' 100%[======================================>] 154,788 208K/s in 0.7s 2011-05-06 17:47:13 (208 KB/s) - `world.jpg' saved [154788/154788] changer.sh: 18: [[: not found changer.sh: 18: let: not found --2011-05-06 17:47:18-- http://www.opentopia.com/images/data/sunlight/world_sunlight_map_rectangular.jpg Resolving www.opentopia.com... 64.191.18.213 Connecting to www.opentopia.com|64.191.18.213|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 154788 (151K) [image/jpeg] Saving to: `world.jpg' 100%[======================================>] 154,788 197K/s in 0.8s 2011-05-06 17:47:19 (197 KB/s) - `world.jpg' saved [154788/154788] changer.sh: 18: [[: not found changer.sh: 18: let: not found --2011-05-06 17:47:24-- http://www.opentopia.com/images/data/sunlight/world_sunlight_map_rectangular.jpg Resolving www.opentopia.com... 64.191.18.213 Connecting to www.opentopia.com|64.191.18.213|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 154788 (151K) [image/jpeg] Saving to: `world.jpg' 100%[======================================>] 154,788 206K/s in 0.7s 2011-05-06 17:47:25 (206 KB/s) - `world.jpg' saved [154788/154788] changer.sh: 18: [[: not found ^C michael@michael-desktop:~/.earthwallpaper$ ^C michael@michael-desktop:~/.earthwallpaper$
ASRock 970 Extreme4™, 8GB RAM
AMD FX™- 4100 Quad-Core
nVidia GeForce 8400 GS™
2 500GB SATA HDs
The updates are realllly rare at http://www.opentopia.com/images/data...ectangular.jpg
Someone more familiar with scripting should change the source to
http://static.die.net/earth/mercator/1600.jpg (if that's possible that is)
Edit: can't be done, filename changes in abovementioned source.
Last edited by layr; May 7th, 2011 at 12:44 PM.
Thanks! Works great!
Don't know why, but now i started getting the same error when the script was ran automatically at startup; when i run it myself, it works fine.
Script itself:
Edit: removing 'sh' from the beginning of script's startup command resolved the problem.Code:#!/bin/bash ip=google.com sleep 60 cd ~/Pictures/wallpapers/ while [ 1 ]; do COUNTER=0 while [ $COUNTER -lt 60 ]; do # Start of internet connection checking script until ping -c 1 $ip # do echo "Internet connection down, waiting for 30s..." sleep 30; done echo "Internet connection established, running the script..." # End of internet connection checking script wget http://www.opentopia.com/images/cams/world_sunlight_map_rectangular.jpg -O world_scriptfile_2.jpg temp=$(stat -c%s world_scriptfile_2.jpg) if [[ $temp > 1000 ]] then rm world_sunlight_map_Wallpaper.jpg mv world_scriptfile_2.jpg world_sunlight_map_Wallpaper.jpg break fi sleep 5 let COUNTER=COUNTER+1 done sleep 1800 done
Last edited by layr; August 25th, 2011 at 08:35 AM.
Updated to 11.10 and the best desktop is gone
Any ideas how can I get it back
Must say, very nice though the question for me now is: How do I shut it off? Reboot?
well, logging out didn't work and neither did changing my wallpaper (it just came back on when it updated), then I changed my wallpaper before I logged out and phew. Though, I don't feel very smart about it, hah.
Bookmarks