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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#31
2004-04-13, 03:46 AM
Maybe CodeMonkey can put in some hooks for getting the weather information from other websites for certain area codes. I wouldnt expect him to implement support for other countries himself, but rather use the current approach (msnbc.com) as the default, and if others would like to provide more update info (eg Australia) then they could implement a function that will retrieve the information from a more upto date site.

CodeMonkey, if you do decide to do this I wouldnt worry about implementing anything too flashy:

if (areaCode.StartsWith("AU&quotWink)
{
GetAustralianWeatherInformation();
}
// add other else if specific countries here...
else
{
GetDefaultWeatherInformation();
}
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#32
2004-04-13, 09:50 AM
Sure I can add that in. At least the hook. When I release the source people can add those as they see fit (and send them to me and I will release it) or if I have time I can add specific ones for non-programmers.

I'd have to add functions for the forecasts too. And if the other weather sources don't give as much forecast data put up some kind of 'no info available' screen.
-CodeMonkey
bs007
Offline

Junior Member

Posts: 27
Threads: 4
Joined: Apr 2004
#33
2004-04-13, 04:28 PM
[b Wrote:Quote[/b] (CodeMonkey @ April 13 2004,03:36)]I just tried celsius and it was fine.  What was your area code and what was the weather condition that showed when you had degrees F (cloudy, sunny etc.)?

My area code is NLXX002. I just have tried again and the conditions are: 54F, partly cloudy.
bs007
Offline

Junior Member

Posts: 27
Threads: 4
Joined: Apr 2004
#34
2004-04-13, 05:44 PM
The timezone of the weather report is EST. Is it possible to convert that to the timezone the machine is in? (In my case CE(S)T).
bitter_old_man
Offline

Member

Posts: 72
Threads: 3
Joined: Jan 2004
#35
2004-04-13, 05:52 PM
[b Wrote:Quote[/b] ]They are 6 hours behind here in Australia. Temp is shown as 16C when it is currently 25C!
And I thought my 5 degrees F difference was bad! [Image: biggrin.gif]

Barry
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#36
2004-04-13, 06:32 PM
[b Wrote:Quote[/b] (bs007 @ April 13 2004,11:28)]
[b Wrote:Quote[/b] (CodeMonkey @ April 13 2004,03:36)]I just tried celsius and it was fine.  What was your area code and what was the weather condition that showed when you had degrees F (cloudy, sunny etc.)?

My area code is NLXX002. I just have tried again and the conditions are: 54F, partly cloudy.
Are you sure about that area code? I don't get valid data for it.

I will look into converting the 'as of' date on the current page once the other stuff is done.
-CodeMonkey
sisuomin
Offline

Junior Member

Posts: 15
Threads: 3
Joined: Jan 2004
#37
2004-04-13, 06:54 PM
I get an error: input string was not in a correct format

I'm trying to use area code: FIXX0031

BTW. I got the same error with the default area. Is this related to my regional settings?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#38
2004-04-13, 07:06 PM
sisuomin, you dont have a firewall or similar that could be blocking the access out to msnbc.com website?
CodeMonkey
Offline

Senior Member

Posts: 389
Threads: 86
Joined: Apr 2004
#39
2004-04-13, 07:24 PM
[b Wrote:Quote[/b] (sisuomin @ April 13 2004,13:54)]I get an error: input string was not in a correct format

I'm trying to use area code: FIXX0031

BTW. I got the same error with the default area. Is this related to my regional settings?
I get valid data for this one. Tampere/Pirkkala

I think sub is right, do you have something blocking msnbc?
-CodeMonkey
bs007
Offline

Junior Member

Posts: 27
Threads: 4
Joined: Apr 2004
#40
2004-04-13, 07:43 PM
[b Wrote:Quote[/b] (CodeMonkey @ April 13 2004,20:32)]My area code is NLXX002. I just have tried again and the conditions are: 54F, partly cloudy.
Are you sure about that area code?  I don't get valid data for it.

I will look into converting the 'as of' date on the current page once the other stuff is done.[/QUOTE]
I am sorry, I missed a zero. It must be NLXX0002.
« 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,045 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,521 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,609 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,988 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,850 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,299 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,008 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,176 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,321 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,490 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