I just finished coding a little taskbar app that shows weather in the taskbar. You need to launch it with a valid WOEID (look up at http://woeid.rosselliot.co.nz/) and a system of units (either "c" for metric or "f" for English).

Example: yweather 551801 c

This will give you a report for Vienna, Austria. Left clicking updates the report and taskbar icon. Right clicking shows a menu and lets you quit. I have put two sample scripts in /usr/local/bin for New York City and Vienna which will show up in the Personal menu. Once you have selected your location, you can modify the desktop files in /usr/share/applications to reflect your preferred locations. You can also place the example scripts in your /root/Startup directory, so that the weather reports are available in your taskbar when you start your system (or restart X). Yweather relies on Yahoo's weather API.

I have attached a pet compiled in Lucid that should work in most recent puppies. The source (written in BaCon) is also attached. The binary, stripped and upx'd, weighs in at only 14k.

I added a script to Startup to get yweather running at boot-up in Slacko-5.4, which it did.

But I can't get yweather to update with a left button click when the cursor is over the sun icon on the task-bar. The yweather display pop-up is for noon here (was 37C) but it is after 1pm now and it's gone past 39C outside (confirmed by the weather pwidget).

A mouse right-click on the sun icon just brings up the same noon-time weather details - no menu as suggested in the pop-up?

Just did the same thing (installed the .pet and set my location and metric preference from the console) in my Full Exprimo-5.x.?-3.6.2 and yweather worked first time - no missing libraries - and mouse-clicks show as promised. I then put the run-it-at-booting script in Startup and re-booting also displayed the now 42C temperature at 2.20pm, etc without problem.

Dear vovchik,
Tried the pet in (a bit modified) precise 5.4.3 and although I get the tray icon OK, it renews and quits OK in left- and right-click, I can not get any text to display on hover. Terminal shows

Code:

(yweather:540): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 7 char 37: Element 'markup' was closed, but the currently open element is 'b'

What do I miss?

Latter Looks like is something in the handling of Yahoo provided data for some locations. Tried another location and it behaves OK._________________Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too

I also notice a few sites that gave the same result. I haven't yet checked out those xml files that I am receiving in any detail, but suspect that there is something dicey in the raw data where nothing displays and the terminal shows bad markup. I will look into that. Can you give me the woeid of the site that was bad? Yesterday, the Buenos Aires data showed normally. They day before, I got the kind of result you describe for your location. I think I can solve that problem by looking at the "bad" data and figuring out what might be "bad". For 99% of the WOEIDs I have tried, yweather does work, though.

Unfortunately no, because they are not "bad" anymore.
I have the sense that some "rare" locations may give "bad data" if the server does not have them handy/cached and needs to find/generate them on the spot._________________Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too

I don't really know how often sites report their data to Yahoo, although I think it varies from location to location. the "Last weather update" line is the last update that Yahoo has.

With kind regards,
vovchik

PS. Grab the latest pet. In the help (right click), in the first version posted (and 8 downloads by then), I confused right and left click. I genuinely cannot distinguish between right, and left and have to look at my hands for a few seconds for that distinction to sink in.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum