No subject


Mon Oct 30 22:48:16 UTC 2006


   cd /usr/share/mythtv/mythweather/scripts
   ./weather_com.php -u SI  <loc>
replace <loc> with your location.  You can get this by=20
./weather_com.php -l Christchurch

Check that this returns the forecast. =20

Next check the database using an mysql browser of some sort, check =
weatherdatalayout table.  This should be setup to point to my script =
which is identified in weathersourcesettings.

This should give us some clues.

I did notice that I don't output "updatetime" for the forecast, whereas =
the ndfd.pl script does.  I've fixed this and will post soon.  Also the =
included scripts have the current and forecast as seperate scripts.  I =
put into all in one script as I wanted to query weather.com only once.  =
Perhaps this is causing a problem.


> Yes, I'm working on it. I plan to use the patch I made for mythweb=20
> weather as the starting point, as mythweather-revamp uses scripts in =
perl=20
> rather than C code to grab the weather. Should be able to port over =
the=20
> php code from mythweb.=20
>=20
> Maverik044=20

After a false start, where I had to delete WeatherDBSchemaVer from the=20
settings table after a failed attempt to use weather-revamp some months=20
ago, I have got your scripts from ticket 3337 to 'sort of' work.=20

The current conditions I can set up OK but the 3 day forecast can't find =

the location of Christchurch, New Zealand - even though the current =
found=20
it OK. Similar problems with the other screens :-(=20

Can I help on the debugging?=20


--=20
Robin Gilks=20


------=_NextPart_000_000B_01C786C9.6A0E2990
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2><FONT color=3D#660066>What SVN are you =
running?&nbsp; Problem is=20
that I can't get mythweather-revamp to work with 13132 yet so that I can =
test my=20
script.&nbsp; It has been tested only from the command line.&nbsp; I =
can't add=20
screens.&nbsp; When I do and exit they disappear.</FONT></FONT></DIV>
<DIV><FONT color=3D#660066 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2>But there is a few things you can =
check as it=20
sounds like mythweather-revamp is trying to use one of the other scripts =
for=20
fetching the forecast.</FONT></DIV>
<DIV><FONT color=3D#660066 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2>check that for all screens setup in=20
mythweather-revamp settings, that you have selected "Change Location" =
for every=20
screen. I think you may have to do it for everyone.</FONT></DIV>
<DIV><FONT color=3D#660066 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2>From the command line =
type&nbsp;</FONT></DIV>
<DIV><FONT color=3D#660066 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2>&nbsp;&nbsp; cd=20
/usr/share/mythtv/mythweather/scripts</FONT></DIV>
<DIV><FONT color=3D#660066 size=3D2>&nbsp;&nbsp; ./weather_com.php -u =
SI&nbsp;=20
&lt;loc&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>replace &lt;loc&gt; with your =
location.&nbsp; You=20
can get this by </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>./weather_com.php -l <FONT=20
face=3D"Times New Roman">Christchurch</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT color=3D#660066>Check that this returns the=20
forecast.&nbsp; </FONT></FONT></DIV>
<DIV><FONT color=3D#660066 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2>Next check the database using an =
mysql browser=20
of some sort, check weatherdatalayout table.&nbsp; This should be setup =
to point=20
to my script which is identified in weathersourcesettings.</FONT></DIV>
<DIV><FONT size=3D2><FONT color=3D#660066></FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2>This should give us some =
clues.</FONT></DIV>
<DIV><FONT color=3D#660066 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2>I did notice that I don't output =
"updatetime"=20
for the forecast, whereas the ndfd.pl script does.&nbsp; I've fixed this =
and=20
will post soon.&nbsp; Also the included scripts have the current and =
forecast as=20
seperate scripts.&nbsp; I put into all in one script as I wanted to =
query=20
weather.com only once.&nbsp; Perhaps this is causing a =
problem.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#660066 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT color=3D#660066>&gt; Yes, I'm working on it. I =
plan to use=20
the patch I made for mythweb <BR>&gt; weather as the starting point, as=20
mythweather-revamp uses scripts in perl <BR>&gt; rather than C code to =
grab the=20
weather. Should be able to port over the <BR>&gt; php code from mythweb. =

<BR>&gt; <BR>&gt; Maverik044 <BR><BR></FONT>After a false start, where I =
had to=20
delete WeatherDBSchemaVer from the <BR>settings table after a failed =
attempt to=20
use weather-revamp some months <BR>ago, I have got your scripts from =
ticket 3337=20
to 'sort of' work. <BR><BR>The current conditions I can set up OK but =
the 3 day=20
forecast can't find <BR>the location of Christchurch, New Zealand - even =
though=20
the current found <BR>it OK. Similar problems with the other screens :-( =

<BR><BR>Can I help on the debugging? <BR><BR><BR>-- <BR>Robin Gilks=20
</FONT><BR></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000B_01C786C9.6A0E2990--



More information about the mythtv-dev mailing list