Active Topics

 



Notices


Reply
Thread Tools
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#121
here my result
Attached Images
 
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#122
Awesome! Glad you got it working!
 
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#123
yes I have only one problem....the qbw update every time in which my phone is connected
 
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#124
@woody14619

I have a question for you, I try to modify the script for italian users but I have a problem. the link could be this one
what I have to change in the script?
thanks
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#125
Yes, setting the CHECKINT to 0 will cause it to get the weather every time qbw calls it to update. That's what you explicitly asked for about 8 posts ago, to always update when called.

As for changing the link, it should be beyond obvious where to change that. It's the right at the top of the script, with a comment of "Change this to your URL", and is the only place in the entire script that yahoo is mentioned. Don't forget to put your unit specifier in (it should default to C for most European countries, but never hurts to call it out explicitly).
 
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#126
Originally Posted by woody14619 View Post
Yes, setting the CHECKINT to 0 will cause it to get the weather every time qbw calls it to update. That's what you explicitly asked for about 8 posts ago, to always update when called.
I didn't set to 0, if you see my weather.sh you could see that I changed only
#wifion=`/sbin/ifconfig wlan0 | grep -i "inet addr" | wc -l`


Originally Posted by woody14619 View Post
As for changing the link, it should be beyond obvious where to change that. It's the right at the top of the script, with a comment of "Change this to your URL", and is the only place in the entire script that yahoo is mentioned. Don't forget to put your unit specifier in (it should default to C for most European countries, but never hurts to call it out explicitly).
I tried to change only that link but it doesn't seem to work..perhaps there are other parameters...for example TEMPNAME="ywtemp.htm"

italian link could be
http://it.meteo.yahoo.com/italia/lom...alepio-713359/

Last edited by iscio; 2011-06-29 at 06:45.
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#127
Originally Posted by iscio View Post
I didn't set to 0
If you didn't set it to 0, then it should update based on that value. I'm not sure why it's working differently on your device. It works as expected on everyone else that's tried it to date. (At least nobody else has had an issue with this.) With the one below, setting it to 0 will make it work each time it's run, and will not produce errors about wifi. If the check is enabled, it may still complain about wifi!

Originally Posted by iscio View Post
I tried to change only that link but it doesn't seem to work..perhaps there are other parameters...
There are not. The only one that determines where to get the forecast from is that one line. The TEMPNAME is just the name given to a temporary file, which is used to check when the last download happened. It's name is irrelevant, as long as is remains consistent from one run to the next.

Originally Posted by iscio View Post
italian link could be
http://it.meteo.yahoo.com/italia/lom...alepio-713359/
And now I see the issue. The italian page is VERY different than the US page, and most of the other pages. The layout for some of the items is very different, and the script has to parse that to get the information.

Attached is a new version which will hopefully at least get the high and low (including the native language for "high" and "low"). It may or may not get the forecast, but it will try. If it does, great, if not, well, you get the high and low.

Note: This attachment is a fully working version with all the files needed to run! I changed the PNG files to JPEG so they're much smaller now and fit in one upload. If you want the PNGs, grab them from the other zip file and change the script accordingly... or use your own.

Edit: This one had a bug, see the one in the post a couple after this.

Last edited by woody14619; 2011-06-30 at 17:39.
 

The Following User Says Thank You to woody14619 For This Useful Post:
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#128
I am tring this last script but this is the result....





about update every time is see that if I use this code
#wifion=`/sbin/ifconfig wlan0 | grep -i "inet addr" | wc -l`
it updates every hour also if I set Checkint to 21600. If I remove the # it works correctly.
But if I don't use # the script block itself if wifi is off by advanced interface swithcer
Attached Images
 

Last edited by iscio; 2011-06-30 at 08:13.
 
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#129
ok, I edited the script and now I have this result. The only problem now is the wifi and the forecast
Attached Images
 

Last edited by iscio; 2011-06-30 at 15:53.
 
Posts: 24 | Thanked: 6 times | Joined on Nov 2010 @ Rome-Italy
#130
hello to all ...
Sorry I would have a problem: on xterm (sh / home / user / imagemagick / weather.sh) gives me error, but the weather is updated too ...
QBW edited with the same command xterm, the weather does not update ...
can someone help me please ..
thanks and sorry my english
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:30.