XoapWeather 1.2

Xlobby plugin development

XoapWeather 1.2

Postby Atlas on Thu Dec 15, 2005 7:07 am

I've decided to attempt to support the xoapweather plugin. Mainly to expand my knowledge with C# and Xlobby plugins. Thanks to Jonathan for releasing the source code!

First time users can look at this link for features etc. This is the 1.1 link
http://www.xlobby.com/forum/viewtopic.php?t=1894


New update requests and bugs for me to attempt to add/fix need to be posted in this topic.

Here is a list of some things I changed/added.

* When adding a location, the auto detect of the radar image is working again.

* Updated weather.com image on configuration page to their latest version in sdk.

* Bundled weather.com images in addition to original images in case anyone would like to use them.
You will need to rename the dir weathercom_images to images in the xoapweather plugin dir.

* Added Hour By Hour forecast capability. Currently only grabs 12 hours. Can be accessed by
plugin>xoapweather>current>hourly>1>%houroutlook%.
The number range is 1-12.

* Updated default variables to include hourly. To see the new variables you will need to remove your existing variables.xml from the xoapweather plugin directory. If you have any custom variables in your variables.xml file just move it out of the way and add them to the new setup.

* Added a new variable 'dayabbrv' to get 3 letter day. (Mon, Tue, Wed) etc. I believe some others had modified code to accomplish this, but can be done in the variables setup.


Here is a list of things I will be adding
* Change all date/time text into DateTime objects so they can be formated with ddd, MM, etc.
* Add # of hours for hourly forecast to configuration setup
* Add choice of radar or satellite image for default map
* Fix metric not being used in detail forecasts. This actually comes from weather.com incorrectly. Will modify in plugin.


Here is the link to the new zip file
http://prdownloads.sourceforge.net/xoap ... p?download

Let me know of any issues as this is my first attempt with c# and visual studio compiler. :D
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

Postby Naylia on Thu Dec 15, 2005 4:34 pm

Yeah!! Very cool to see someone pick this up! :D
Naylia
 
Posts: 530
Joined: Tue Oct 19, 2004 7:50 pm
Location: Boston, MA

Postby hvs69 on Thu Dec 15, 2005 5:35 pm

ditto
hvs69
 
Posts: 219
Joined: Wed Feb 11, 2004 8:06 am

Postby JLF on Tue Dec 27, 2005 1:13 pm

Atlas, Thanks for picking this project up. I love the changes and am really looking forward to the next update. Even my wife is impressed with the new hour by hour data. Thanks again, JLF
JLF
 
Posts: 24
Joined: Thu Apr 07, 2005 10:20 pm
Location: Virginia, USA

Postby e268 on Mon Mar 20, 2006 3:55 am

I just installed the new xlobby2prerelease1 and this xoapweather1.2 does not work in the default skin. If I go to HeavyMetalws skin it will work. Will there be an update soon? TIA.
e268
 
Posts: 19
Joined: Fri Apr 30, 2004 9:25 pm
Location: Toronto, Canada

Postby Atlas on Mon Mar 20, 2006 5:02 am

The default skin is designed to use the Xweather plugin not Xoapweather. The HeavyMetal skins were designed for Xoapweather plugin. The Xoapweather plugin gets its info from weather.com. I'm not sure where Xweather gets it's info.

Access xoapweather through plugin>xoapweather
Access xweather through plugin>xweather

You would need to modify the default skin if you want to use xoapweather with it. BTW Xweather should come with the xlobby2prerelease1
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

saving locations in XoapWeather1.2

Postby ParishMills on Wed Apr 12, 2006 3:24 pm

Hi fellas. I'm a returning newbie here. I'm using the Heavy Metal WS skin and have installed the XoapWeather 1.2 plugin. Well, Xoap's working great except for one small problem. I load up different locations I'm interested in, save them, and then check it out and everything works. As soon as I exit out of the program, I seem to lose all the saved information. I'll open Xlobby back up and there's no locations saved. Any ideas why?

Also, great site!
ParishMills
 
Posts: 2
Joined: Wed Apr 12, 2006 3:14 pm
Location: Texas

Postby ParishMills on Wed Apr 12, 2006 3:44 pm

Please dismiss my last entry. I started going through my plugins folder and noticed that I had one too many files. This all occured while I was I was trying to work with both xweather and xoapweather. Anyway, once I deleted this file, everything is working normally.
ParishMills
 
Posts: 2
Joined: Wed Apr 12, 2006 3:14 pm
Location: Texas

Postby stigzler on Wed Apr 19, 2006 7:43 pm

Sorry, bit of a newb to xlobby and stumbling around a bit, but....

Installed colby skin 2 and xoapweather 1.1. It's workin fine but does this only work for the US? Seems you can configure Xweather for UK as well. Can you do this with xoapweather?

thanks,
stigzler
 
Posts: 9
Joined: Mon Apr 17, 2006 9:02 pm

Postby Atlas on Thu Apr 20, 2006 1:10 am

Yes you can configure for UK. Just put the city/town in location field and hit search. Should come back with all choices including UK.
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

Postby stigzler on Fri Apr 21, 2006 10:13 pm

thanks atlas. got confused because xweather found my town, but xoap could only find my nearest city - that'll do though, only 20 miles away! Anyways makes no difference:

"Yearly forcast: England - cold and miserable...."
stigzler
 
Posts: 9
Joined: Mon Apr 17, 2006 9:02 pm

Postby scottw on Fri Apr 28, 2006 12:28 pm

Maybe I am missing something but is it possible to have multiple radar images displayed for one zip code like in Xweather??
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Postby PhilB on Fri Apr 28, 2006 4:02 pm

Great selection of weather images but the selection of only 1 is why I use xWeather instead.

It would be idea if we could have a catagory-like list that the user can select directly from the XL UI.

xWeather provides 4 images but they are displayed in order and you cannot drop any of the 4 if you dont like one, so it has pros and cons 2.

Thanks,
PB
PhilB
 
Posts: 283
Joined: Sat Feb 18, 2006 6:38 pm

Postby Marbles_00 on Fri Apr 28, 2006 7:18 pm

PhilB,

It is easy enough to add your own category with weather images. You can add an event to update the images when the weather screen updates as well. I'm currently messing with a skin that has a choice of 11 weather images from http://www.theweathernetwork.com.

Here's my database, use as a template and modify what you want (if you want to use it at all):
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<database>
<sortorder>display</sortorder>
<template>webimages</template>
<paths>
<path>C:\Program Files\xlobby\skins\ZoneSkin\databases</path>
</paths>
 <item>
 <coverart>http://www.weathernetwork.com/weather/maps/images/satrad/sat/Rgoes_Ontario_450T8.jpg</coverart>
 <display>Satellite Image</display>
 <information>
  <display>http://www.weathernetwork.com/weather/maps/images/satrad/sat/Rgoes_Ontario_450T8.jpg</display>
 </information>
 </item>

 <item>
 <parameter>http://www.weathernetwork.com/weather/maps/images/satrad/rad/Crad_GMT_450T8.jpg</parameter>
 <coverart>http://www.weathernetwork.com/weather/maps/images/satrad/rad/Crad_GMT_450T8.jpg</coverart>
 <display>Radar</display>
 <information>
  <display>http://www.weathernetwork.com/weather/maps/images/satrad/rad/Crad_GMT_450T8.jpg</display>
 </information>
 </item>

 <item>
 <parameter>http://www.weathernetwork.com/weather/maps/images/floods/canada_obs.jpg</parameter>
 <coverart>http://www.weathernetwork.com/weather/maps/images/floods/canada_obs.jpg</coverart>
 <display>Current Temperature</display>
 <information>
  <display>http://www.weathernetwork.com/weather/maps/images/floods/canada_obs.jpg</display>
 </information>
 </item>

 <item>
 <parameter>http://www.weathernetwork.com/weather/maps/images/floods/can_pop_p4.jpg</parameter>
 <coverart>http://www.weathernetwork.com/weather/maps/images/floods/can_pop_p4.jpg</coverart>
 <display>Percipitation</display>
 <information>
  <display>http://www.weathernetwork.com/weather/maps/images/floods/can_pop_p4.jpg</display>
 </information>
 </item>

 <item>
 <parameter>http://www.weathernetwork.com/weather/maps/images/floods/can_temp_obs.jpg</parameter>
 <coverart>http://www.weathernetwork.com/weather/maps/images/floods/can_temp_obs.jpg</coverart>
 <display>Temperature Map</display>
 <information>
  <display>http://www.weathernetwork.com/weather/maps/images/floods/can_temp_obs.jpg</display>
 </information>
 </item>

 <item>
 <coverart>http://www.theweathernetwork.com/weather/maps/images/floods/can_humidex_obs.jpg</coverart>
 <display>Humidex</display>
 <information>
  <display>http://www.theweathernetwork.com/weather/maps/images/floods/can_humidex_obs.jpg</display>
 </information>
 </item>

 <item>
 <coverart>http://www.theweathernetwork.com/weather/maps/images/floods/can_eoliens_obs.jpg</coverart>
 <display>Wind Temperature</display>
 <information>
  <display>http://www.theweathernetwork.com/weather/maps/images/floods/can_eoliens_obs.jpg</display>
 </information>
 </item>

 <item>
 <coverart>http://www.theweathernetwork.com/weather/maps/images/floods/currentfronts.rgb.jpg</coverart>
 <display>Weather System Fronts</display>
 <information>
  <display>http://www.theweathernetwork.com/weather/maps/images/floods/currentfronts.rgb.jpg</display>
 </information>
 </item>

 <item>
 <coverart>http://www.theweathernetwork.com/weather/maps/images/floods/can_vent_obs.jpg</coverart>
 <display>Current Wind Speeds</display>
 <information>
  <display>http://www.theweathernetwork.com/weather/maps/images/floods/can_vent_obs.jpg</display>
 </information>
 </item>

 <item>
 <coverart>http://www.theweathernetwork.com/weather/maps/images/floods/Act_Nat_Aft.rgb.jpg</coverart>
 <display>Active Weather Patterns</display>
 <information>
  <display>http://www.theweathernetwork.com/weather/maps/images/floods/Act_Nat_Aft.rgb.jpg</display>
 </information>
 </item>

 <item>
 <coverart>http://www.fourmilab.ch/cgi-bin/uncgi/Earth?img=learth.evif&amp;imgsize=320&amp;dynimg=y&amp;opt=-p&amp;lat=&amp;lon=&amp;alt=&amp;tle=&amp;date=0&amp;utc=&amp;jd=</coverart>
 <display>Earth Rotation</display>
 <information>
  <display>http://www.fourmilab.ch/cgi-bin/uncgi/Earth?img=learth.evif&amp;imgsize=320&amp;dynimg=y&amp;opt=-p&amp;lat=&amp;lon=&amp;alt=&amp;tle=&amp;date=0&amp;utc=&amp;jd=</display>
 </information>
 </item>

</database>


The last one is cool as it shows the earth's rotation. I have the category set up to display 2 columns of 2 (4/page for 3 pages), and selecting on any image will show a blowup of that image. Easy as punch.

Hope this was helpful.

David
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Postby PhilB on Fri Apr 28, 2006 8:30 pm

Marbles:

Can you share the skin page that uses the catagory? I got the database set up but seem to be stuck there. No images display even though the URLs work from your sample. It would help if I could poke at a working skin file. I can provide an FTP if you need that.

Thanks,
PB
PhilB
 
Posts: 283
Joined: Sat Feb 18, 2006 6:38 pm

Next