Sign up here and you can log into the forum!

Plugin: Weather

The WDTVExt plugin depot. Plugins/libraries/code only

Re: Plugin: Weather   

Postby thedevo » Thu Sep 30, 2010 8:03 pm

Hi guys,
I loaded the weather plugin sucessfully and can see the icon in the main menu, however when I enter the menu it tells me that there is a problem and that it cant find the zip code in the S00custom-options file. I have a valid zip code in the S00custom-options file obtained as instructed in the post. See below a snippit from my S00custom-options file.

# 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="OCN|AU|NSW|WOLLONGONG|"
config_tool -c METRIC_ID="1"

Any takers?
thedevo
n00b
 
Posts: 6
Joined: Tue Sep 28, 2010 4:31 am

Re: Plugin: Weather   

Postby DJArty » Thu Sep 30, 2010 9:49 pm

Looks like normal string...
Did you have inet connection? ;)
Try connect to WD via telnet or ssh and look into the /conf/config
Code: Select all
cat /conf/config | more


WEATHER_ID='OCN|AU|NSW|WOLLONGONG|'
METRIC_ID='1'
must be presented
If no - just send command in (WD) command line:
Code: Select all
config_tool -c WEATHER_ID="OCN|AU|NSW|WOLLONGONG|"

Code: Select all
config_tool -c METRIC_ID="1"

and relook /conf/config
Reboot - should work.
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: 290
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby thedevo » Thu Sep 30, 2010 11:56 pm

Thanks DJArty it now works fine!
Can you please explain if the /conf/config value was supposed to automatically get updated from the S00custom-options file or was it something that I missed when setting the weather plug-in.
Thanks again for the quick reply.
Steve
thedevo
n00b
 
Posts: 6
Joined: Tue Sep 28, 2010 4:31 am

Re: Plugin: Weather   

Postby DJArty » Fri Oct 01, 2010 12:05 am

/conf/config value was supposed to automatically get updated from the S00custom-options file
May by "End-of-Line" problem then editing S00custom-options ..... or wrong S00cu... place (root folder of flash/drive)
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: 290
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby DJArty » Sun Oct 03, 2010 12:44 pm

Made for himself version with weather data from Wеather.cоm. It's funny to compare. :)
Don`t announce yet because of copyright questions.
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: 290
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby ShadowT » Sun Oct 10, 2010 1:20 pm

awesome plugin! :)


For any NOOBS in the USA, just add your zip code (mine is 32566), no need of other stuff to the end of S00Custom-options as follows:

# 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="32566"
config_tool -c METRIC_ID="0"
ShadowT
n00b
 
Posts: 3
Joined: Sat Apr 24, 2010 3:42 pm

Re: Plugin: Weather   

Postby DJArty » Sun Oct 10, 2010 1:43 pm

ShadowT Tnx! Added to 1st page info.
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: 290
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby shunte » Wed Oct 13, 2010 9:40 am

I noticed that the configuration entries are missing from the out of the box version of the web end configurator, given the plugin is optional that's understandable.

Here are the WEC entries definition I'm using

copy into a file named weather_wec.php in the /tmp/config-plugins folder; it'll then automatically be picked up by the web end configurator

Code: Select all
<?php

/***    WEC entries for DJArty AccuWeather plugin
***/

$wec_options['WEATHER_ID'] = array('configname' => 'WEATHER_ID',
                    'configdesc' => "Specify the location for AccuWeather plugin:",
                    'longdesc' => "Default: [none]",
                    'group' => 'AccuWeather Plugin',
                    'type' => WECT_TEXT,
                    'page' => WECP_WDTVEXT,
                    'defaultval' => '',
                    'currentval' => '');
$wec_options['METRIC_ID'] = array('configname' => 'METRIC_ID',
                    'configdesc' => "Specify the units used on AccuWeather plugin:",
                    'longdesc' => "Default: Fahrenheit",
                    'group' => 'AccuWeather Plugin',
                    'type' => WECT_SELECT,
                    'page' => WECP_WDTVEXT,
                    'availval' => array('0','1'),
                    'availvalname' => array('Fahrenheit','Centigrade'),
                    'defaultval' => '0',
                    'currentval' => '');

?>

If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: Plugin: Weather   

Postby DJArty » Mon Oct 18, 2010 4:38 am

Thank you shunte
_____________________

Another thing:
It's possible to add translation forecasts from en to ru, it, nl , fr etc.. via google translate API..
Looks pretty funny (sloppy):
Variable clouds with a couple of showers = Переменная облака пара ливней (ru) :lol:
nubi variabile con un paio di docce (it)
nuages variable avec quelques averses (fr)
Variabele wolken met een paar douches (nl)
Variable Wolken mit ein paar Schauer (de)
Zmienna chmur kilka pryszniców (pl)

Is there a need this feature?
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: 290
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Plugin: Weather   

Postby essoG » Mon Oct 18, 2010 6:28 am

No Thanks :?

google translate is terrible in Dutch :roll:
- Never Drive Faster Than Your Guardian Angel Can Fly -
User avatar
essoG
DLX'er
 
Posts: 136
Joined: Thu Sep 16, 2010 7:19 am

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest