NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 89 90 91 92 93 Next »
New weather plugin alpha

 
  • 0 Vote(s) - 0 Average
New weather plugin alpha
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#11
2004-04-11, 01:38 AM
OK, having a problem with the weather icon.  Trying to follow what myth weather does.  They have a weathertypes.dat file that contains the icon file name for what is in the swCIcon part of the msnbc weather page.  As an example, Go Here.

Right now, swCIcon shows 28, and swConText = Mostly Cloudy.

However, in weathertypes.dat the icon for a swCIcon of 28 is thunshowers.png.

What the heck am I missing??  And on this note I'm stepping away from the monitor for the evening [Image: smile.gif]
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#12
2004-04-11, 01:48 AM
Wow. That is looking really good.
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#13
2004-04-11, 02:00 AM
OK so I lied about stepping away from the PC Wink

Thanks. It should be useable by everyone now. All the data from the default plugin is there, and even a bit more now.

This darn icon problem is bugging me though!
-CodeMonkey
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#14
2004-04-11, 02:33 AM
I'm not quite sure what they were doing in Mythtv, its a little hard to follow. I wonder if you should use a hashtable keyed by swConText. For example,

  Hashtable weatherIcons = new Hashtable();
  weatherIcons["sunny"] = Image.fromFile(directory + "\\sunny.png&quotWink;
  weatherIcons["partly cloudy"] = Image.fromFile(directory + "\\pcloudy.png&quotWink;
  ...etc

Then later:
string swConText = ...
  Image currentWeatherIcon = (Image)weatherIcons[swConText.ToLower()];



CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#15
2004-04-11, 02:44 AM
Yeah I was heading that way myself. Thanks. Should have that tomorrow and maybe the rest as well [Image: smile.gif]
-CodeMonkey
bitter_old_man
Offline

Member

Posts: 72
Threads: 3
Joined: Jan 2004
#16
2004-04-11, 03:12 AM
This looks great!
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#17
2004-04-11, 04:32 AM
Thanks bitter old man [Image: smile.gif]

Another question sub.  I don't see these weather icons being skin specific do you?  And if not, where in the directory structure should I put them.  In a 'weather' subdir off of the plugin dir?
-CodeMonkey
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#18
2004-04-11, 01:40 PM
Minor cosmetic fix uploaded today for the benefit of our non-USA friends. No more 'Wellington, , New Zealand' in the title for example [Image: smile.gif]

WeatherAlpha
-CodeMonkey
bitter_old_man
Offline

Member

Posts: 72
Threads: 3
Joined: Jan 2004
#19
2004-04-11, 03:28 PM
I wish MSNBC updated the conditions more often. Right now they are over an hour behind the National Weather Service and the current temperature is 5 degrees higher than MSNBC reports. I guess I'll find out it's raining an hour after it starts. [Image: biggrin.gif]

Keep up the good work, CodeMonkey.

Barry
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#20
2004-04-11, 03:34 PM
[b Wrote:Quote[/b] (bitter_old_man @ April 11 2004,10:28)]I wish MSNBC updated the conditions more often. Right now they are over an hour behind the National Weather Service and the current temperature is 5 degrees higher than MSNBC reports. I guess I'll find out it's raining an hour after it starts. [Image: biggrin.gif]

Keep up the good work, CodeMonkey.

Barry
Go to the MSNBC site then send them a comment about updating more frequently. If enough people complain they might increase the frequency.
-CodeMonkey
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,080 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,556 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,638 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,000 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,867 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,321 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,026 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,238 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,334 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,498 2012-01-15, 08:33 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode