Sign up here and you can log into the forum!

Plugin: Weather

The WDTVExt plugin depot. Plugins/libraries/code only

Plugin: Weather   

Postby DJArty » Tue Aug 31, 2010 10:10 am

Slightly modified pibos Weather plugin
working with WDTVExt for 1.02.21-WDLXTV-Live-0.4.5.1(3)

I think it goes without saying that should be set right time for WD. Otherwise you will get the weather of a nine hundredth year. NTP should work and used the correct TIMEZONE.

Looks like this:
Image

Image

Upd. 2011/11/01
Weather v. 0.5
Multi language support for now. 33 different subtypes. Look into the Webend control page WDLXTV Config -> WDTVExt Plugins -> Weather -> LANG_ID and set proper (May be need to setup UTF-8 encoding in your browser for this WEC page).
Changed source for data like official.
Update plugin from svn or reinstall from svn.
(Only for 1.02.21-WDLXTV-Live- based firmware e.g. from 0.4.5.1 to 0.5.x.x )

Upd. 2011/01/18
Weather v. 0.4
Plugin finally in SVN.
So you can just use WDTVExt Menu for download or update Weather plugin. (Only for 1.02.21-WDLXTV-Live-0.4.5.(1)3)
CHANGES:
  • Added Weather plugin configuration via WEC.(WDLXTV Configuration in WebEnd 1.02.21-WDLXTV-Live-0.4.5.3(1) )
    Now don't need to use S00custom-options, but can be used too.
  • Image
  • Some graphic changes (icons only)

Special AссuWeather.com Zip Code Search for your city ("Choose Location:" -> Search (select the correct city from list) ->
NEXT -> NEXT -> "I agree.." (if you agree with license terms ;) ) scroll and look to the end of "Web Page Code", e.g. "EUR|UK|UK241|LONDON|" ).
USA, just add your zip code (e.g. "10001")

Upd. 2010/09/25
Weather_v03.zip
Location now should be described into the S00custom-options file (So no need to edit Weather.plugin.js).
For example can add into the S00custom-options (of course your own zipcode)
Code: Select all
# Settings for Weather Plugin. Look Info: http://forum.wdlxtv.com/viewtopic.php?f=48&t=1520
# WEATHER_ID - Zipcode of location for forecast.
# METRIC_ID="1" - for Celsius. METRIC_ID="0" - for Fahrenheit(default).
config_tool -c WEATHER_ID="EUR|UA|UP006|KHARKIV"
config_tool -c METRIC_ID="1"


:arrow: Drop Weather folder into /.wdtvext-plugins
Zip Code Search for your city ("Choose Location:" -> Search (select the correct city from list) ->
NEXT -> NEXT -> "I agree.." (if you agree with license terms ;) ) scroll and look to the end of "Web Page Code", e.g. "EUR|UK|UK241|LONDON|" ).
USA, just add your zip code (e.g. "10001")

_______________________________________________________________________________
Obsolete

Upd. 2010/09/24
Fix some trouble with other plugin
Please redownload
Weather v 0.2
or remove text:
Code: Select all
(page) ||

in line 80 of Weather.plugin.js (in bad v0.2 ;) )

Upd. 2010/09/22
Weather v 0.2

  • Some rework for compatibility with another plugins (need to test).
  • Added Earth cloud map. Watch the sun rise and set all over the world on this real-time, computer-generated illustration of the earth's patterns of sunlight and darkness. The clouds are updated every 3 hours with current weather satellite imagery.
  • City name, refresh time, etc.


Old ver
Weather_for_WDTVExt0422.zip


:arrow: Drop Weather folder into /.wdtvext-plugins
Zip Code Search for your city ("Choose Location:" -> Search ->
NEXT -> NEXT -> "I agree.." look to the end of "Web Page Code", e.g. "EUR|UK|UK241|LONDON|" ).
Must be changed in Weather.plugin.js (line 27 -> this.location="...")
Enable Weather plugin in WDTVExt Plugins and reboot.

IF want Fahrenheit
change line 28 in Weather.plugin.js (change &metric=1 to &metric=0):
Code: Select all
this.urlBase =      ...      --//--  ...   data_v2.asp?location={location}&metric=0"

and line 152 in Weather.plugin.js (just "F" letter change) to
Code: Select all
var temp = day.daytime.wxf.@htmp.toString() + "°F/" + day.daytime.wxf.@ltmp.toString()+"°F ";

________________________________________________________________________________________________

Description(rus)
Weather data from AссuWeather.com Copyright 2010
Last edited by DJArty on Tue Nov 01, 2011 6:41 am, edited 37 times in total.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Donate for beer (WebMoney): WMZ114867333413; WMU219453404899; WMR161810775332
MoneyBookers to email : dj_arty ( a t ) mail.ru
PayPal to email: djartyua ( a t ) gmail (d o t) com
User avatar
DJArty
Developer
 
Posts: 302
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby KAD » Wed Sep 01, 2010 6:29 pm

what did you slightly modify :?:

your post doesn't tell me

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4021
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Plugin: Weather   

Postby DJArty » Wed Sep 01, 2010 11:20 pm

1st and main - plugin work with WDTVExt Plugins engine presented by default in 0.4.2.1+ .. (original plugin dont work (april 2010))
2nd - added temperature degrees. (not presented on screen - this is original screen)
P.S. Ooops.. degrees in Celsius ;)
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Donate for beer (WebMoney): WMZ114867333413; WMU219453404899; WMR161810775332
MoneyBookers to email : dj_arty ( a t ) mail.ru
PayPal to email: djartyua ( a t ) gmail (d o t) com
User avatar
DJArty
Developer
 
Posts: 302
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby DJArty » Wed Sep 01, 2010 11:49 pm

IF want Fahrenheit
change line 18 (remove &metric=1) to
Code: Select all
this.urlBase = "http://vwidget.accuweather.com/widget/vista1/weather_data_v2.asp?location={location}"

and line 97 ("F" letter) to
Code: Select all
var temp = day.daytime.wxf.@htmp.toString() + "F/" + day.daytime.wxf.@ltmp.toString()+"F ";
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Donate for beer (WebMoney): WMZ114867333413; WMU219453404899; WMR161810775332
MoneyBookers to email : dj_arty ( a t ) mail.ru
PayPal to email: djartyua ( a t ) gmail (d o t) com
User avatar
DJArty
Developer
 
Posts: 302
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby mmt » Thu Sep 02, 2010 10:06 am

Is posible change language eng to spanish ?
thanks

zip is corrupted..think :roll:
mmt
n00b
 
Posts: 18
Joined: Sat Jul 24, 2010 11:45 am

Re: Plugin: Weather   

Postby DJArty » Thu Sep 02, 2010 10:33 am

mmt wrote:change language

Dont think so.
This is xml generated by site asp, so mechanism of its formation is not known for me. ( &lang=esp dont work ;) )
Last edited by DJArty on Thu Sep 23, 2010 4:34 am, edited 1 time in total.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Donate for beer (WebMoney): WMZ114867333413; WMU219453404899; WMR161810775332
MoneyBookers to email : dj_arty ( a t ) mail.ru
PayPal to email: djartyua ( a t ) gmail (d o t) com
User avatar
DJArty
Developer
 
Posts: 302
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby mmt » Thu Sep 02, 2010 11:02 am

DJArty wrote:
mmt wrote:change language

Dont think so.
This is xml generated by site asp, so mechanism of its formation is not known for me. ( &lang=esp dont work ;) )


ok, thanks
Last edited by mmt on Thu Sep 23, 2010 3:01 pm, edited 1 time in total.
mmt
n00b
 
Posts: 18
Joined: Sat Jul 24, 2010 11:45 am

Re: Plugin: Weather   

Postby avkiev » Fri Sep 03, 2010 12:27 am

DJArty wrote:plugin work with WDTVExt Plugins engine presented by default in 0.4.2.1+

...
function addExtraContent(page, addContent)
...

:shock:

PS. Харькову - привет !
avkiev
Developer
 
Posts: 155
Joined: Tue Apr 27, 2010 5:02 am
Location: Ukraine, Kiev

Re: Plugin: Weather   

Postby DJArty » Fri Sep 03, 2010 2:24 am

Привет!
а что с addExtraContent?
Плугин реально не работал с нуля... да и с ToolsMenu пересекался непонятно зачем.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Donate for beer (WebMoney): WMZ114867333413; WMU219453404899; WMR161810775332
MoneyBookers to email : dj_arty ( a t ) mail.ru
PayPal to email: djartyua ( a t ) gmail (d o t) com
User avatar
DJArty
Developer
 
Posts: 302
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby Schenk2302 » Fri Sep 03, 2010 4:55 am

PLEASE DELETE SORRY
Schenk2302
Patron
 
Posts: 18
Joined: Wed Apr 07, 2010 3:39 am

Next

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest