Yweather 0.1a - taskbar weather app
Dear Eyes-Only,
Many thanks for your kind words. I have been making some progress. I put my bad drive in a USB external case and after two days of trying, I have now been able to read most everything. Good thing the drive is an old 80 GB job (IBM, made in Thailand in 2002), so there isn't all that much to copy over to another USB terabyte drive I have. The same day that my disk crashed, I switched to my Lenovo Ideacentre (like a Mac Mini), and the Puppy Live CD got stuck in the slot. I heard that was a common problem with that model, and it is impossible to fix no (emergency hole). Since that Lenovo was only 6 months old, I took it to the shop in VIenna where I bought it and hope they will repair it under guarantee. Also that day - the 14th of January - my powered hub burnt out. Not the power supply, but the hub itself. What a day that was!
I am slowly trying to put things back together and appreciate your understanding. Unfortunately, bad stuff happens once in a while
With kind regards,
vovchik
Many thanks for your kind words. I have been making some progress. I put my bad drive in a USB external case and after two days of trying, I have now been able to read most everything. Good thing the drive is an old 80 GB job (IBM, made in Thailand in 2002), so there isn't all that much to copy over to another USB terabyte drive I have. The same day that my disk crashed, I switched to my Lenovo Ideacentre (like a Mac Mini), and the Puppy Live CD got stuck in the slot. I heard that was a common problem with that model, and it is impossible to fix no (emergency hole). Since that Lenovo was only 6 months old, I took it to the shop in VIenna where I bought it and hope they will repair it under guarantee. Also that day - the 14th of January - my powered hub burnt out. Not the power supply, but the hub itself. What a day that was!
I am slowly trying to put things back together and appreciate your understanding. Unfortunately, bad stuff happens once in a while
With kind regards,
vovchik
keniv,keniv wrote:Hello All
Working here in lucid 528. Have tried to run it at start up by using the following script in an executable file called startyweather.
#!/bin/sh
/usr/local/bin/yweather 27730644 c
I have also tried
#!/bin/sh
/usr/bin/roxterm -e /usr/local/bin/yweather 27730644 c
I have it in /start but this does no work at start up. However if I click on this file after boot up it works fine. Don't know enough about this to know what I am doing wrong. I now start it using a desktop icon.
Nice little application. Thanks for this.
Regards,
Ken.
Perhaps your IP is not up and ready at that point. Here's a script from mavrothal here
http://murga-linux.com/puppy/viewtopic. ... 331#676397
which I've modified slightly for your yweather.
Code: Select all
#!/bin/sh
IFCONFIG="`ifconfig | grep '^[pwe]' | grep -v 'wmaster'`"
while [ "$IFCONFIG" != "" ]; do
sleep 1
ping -c 1 8.8.8.8
if [ $? -eq 0 ];then
break
else
ping -c 1 www.google.com
if [ $? -eq 0 ];then
break
fi
fi
done
exec /usr/local/bin/yweather 27730644 c
s
(vovchik: sorry to hear of your trials. It will only make you stronger )
Hello vovchik,
I downloaded yweather source and upgraded bacon. Compiled fine.
I get the same error mavrothal reported so I wgetted the XML to investigate why and no sooner the problem rectified itself. . I just wanted to see if it's some minor error in your XML parsing routine or some error in the source XML.
Anyway, I'll see if I can reproduce and investigate some other time.
Nice app!
Cheers
I downloaded yweather source and upgraded bacon. Compiled fine.
I get the same error mavrothal reported so I wgetted the XML to investigate why and no sooner the problem rectified itself. . I just wanted to see if it's some minor error in your XML parsing routine or some error in the source XML.
Anyway, I'll see if I can reproduce and investigate some other time.
Nice app!
Cheers
Puppy Linux Blog - contact me for access
Dear 01micko,
Yep, it is a weird little problem for some sites, and they do fix themselves! I parse using the xml description given on the Yahoo developers' site: http://developer.yahoo.com/weather/. I think some remote sites occasionally submit their xml reports with errors in the xml, and that is the reason we get the "markup" error. It could be also that I am not parsing something properly. If you find out what occasionally goes wrong, please let me know. At the moment, my "development" computer is down (ugly disk crash), but I managed to recover the data and saved to another drive. I have changed the program already for the Spanish translation and only look at the description codes and not the text provided, which sometimes diverges from Yahoo's official description. It is safer just to use the description code and to use that to get the official text string, rather than using the supplied text string in the xml. That change will be implemented in my next revision. If you have a nice parsing routine, please post it!
With kind regards,
vovchik
Yep, it is a weird little problem for some sites, and they do fix themselves! I parse using the xml description given on the Yahoo developers' site: http://developer.yahoo.com/weather/. I think some remote sites occasionally submit their xml reports with errors in the xml, and that is the reason we get the "markup" error. It could be also that I am not parsing something properly. If you find out what occasionally goes wrong, please let me know. At the moment, my "development" computer is down (ugly disk crash), but I managed to recover the data and saved to another drive. I have changed the program already for the Spanish translation and only look at the description codes and not the text provided, which sometimes diverges from Yahoo's official description. It is safer just to use the description code and to use that to get the official text string, rather than using the supplied text string in the xml. That change will be implemented in my next revision. If you have a nice parsing routine, please post it!
With kind regards,
vovchik
Hello All
I have noticed over the last few days that the pressure reading on the display has not changed from 982.05 mb. I live within 6 miles of an airport and can listen to the radio volmet. The pressure is varying and is currently 1004 mb. All the other information seems to vary. I wonder if anybody else has noticed the pressure does not appear to update.
Regards,
Ken.
I have noticed over the last few days that the pressure reading on the display has not changed from 982.05 mb. I live within 6 miles of an airport and can listen to the radio volmet. The pressure is varying and is currently 1004 mb. All the other information seems to vary. I wonder if anybody else has noticed the pressure does not appear to update.
Regards,
Ken.
I will see that this is rectified for the next release of Carolina.vovchik wrote:@ Geoffrey:
I think Carolina should have had those symlinks to start with. They are standard in almost every distro. Thanks for point out that little problem.
Your yweather app is a good replacement for the xfce panel weather plugin,
which I find to be limited as it will not display my location,
only the closest major city which is 300kilometers from me.
Cheers,
Geoffrey
Last edited by Geoffrey on Mon 21 Jan 2013, 22:00, edited 1 time in total.
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
Dear Geoffrey,
I am glad yweather can be used to some advantage. My compile line for that:
results in a pretty small binary. That strips out all uneeded symbols and functions. After that, I UPX the binary to cut the size in half.
You might want to do that in order to keep things small. I used the latest bacon build (0.28), since it knows the C-style extended comments directive.
With kind regards,
vovchik
I am glad yweather can be used to some advantage. My compile line for that:
Code: Select all
bacon -o -s -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections yweather.bac
You might want to do that in order to keep things small. I used the latest bacon build (0.28), since it knows the C-style extended comments directive.
With kind regards,
vovchik
Yweather 0.1a - taskbar weather app
Hi vovchik,
I modified your Pet so that it would get the weather for my location only, and then installed it. It works fine. So, I did not need to compile the source-code for Wary.
Thanks very much for this great little utility. I really like the fact that I can get my weather information at a quick glance by simply mousing over the icon in the tray instead of having to open the application and/or have it take up a bunch of space on my screen, --but that is a matter of user preference for me.
Monsie
I modified your Pet so that it would get the weather for my location only, and then installed it. It works fine. So, I did not need to compile the source-code for Wary.
Thanks very much for this great little utility. I really like the fact that I can get my weather information at a quick glance by simply mousing over the icon in the tray instead of having to open the application and/or have it take up a bunch of space on my screen, --but that is a matter of user preference for me.
Monsie
My [u]username[/u] is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Bump for this excellent little app. Just installed and working perfectly in Precice 5.7.1 retro w/Openbox_LxPanel.
This seems like it should be a standard inclusion in all Puppies - weighs almost nothing (file size and CPU overhead) and takes just the tiniest snippet of bandwidth to download such a useful amount of info... actually more info as offered by Weather Station in Pwidgets, but at a small fraction of the bandwidth.
Great applet!!
Bob
*edit to add screenshot to show dialup data transferred in Pwidget "Download" window - the fatter "blip" being Pwidget's data, the following small "blip" being Yweather's...
This seems like it should be a standard inclusion in all Puppies - weighs almost nothing (file size and CPU overhead) and takes just the tiniest snippet of bandwidth to download such a useful amount of info... actually more info as offered by Weather Station in Pwidgets, but at a small fraction of the bandwidth.
Great applet!!
Bob
*edit to add screenshot to show dialup data transferred in Pwidget "Download" window - the fatter "blip" being Pwidget's data, the following small "blip" being Yweather's...
- Attachments
-
- Yweather_screenie.jpg
- (78.33 KiB) Downloaded 805 times
I tried the pet in Slacko 5.7 and get this error
# yweather 551801 c
Could not open library libgobject-2.0.so: cannot open shared object file: No such file or directory
Do I have to install library libgobject-2.0.so? From where?
Thanks
# yweather 551801 c
Could not open library libgobject-2.0.so: cannot open shared object file: No such file or directory
Do I have to install library libgobject-2.0.so? From where?
Thanks
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB
Besides a build environment, it contains numerous libs that, for their size, are omitted in the base iso.
It also contains your missing libs and other items that compromise most distros in the 700mb range.
It's easy to live with Pup "as is" until you want something outside the base, then you need libs.
PS - You can dwnld the correct devx from within the menus..
It also contains your missing libs and other items that compromise most distros in the 700mb range.
It's easy to live with Pup "as is" until you want something outside the base, then you need libs.
PS - You can dwnld the correct devx from within the menus..
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<