No subject


Mon Oct 30 22:48:16 UTC 2006


parameters.

The problem right now is that MythTV simply will not store any information
in the locations required by the application.  Once everything is setup I
can see in the frontend log where it tries to run every PL script, and when
those PL scripts are run from the command line I can see every one of them
return something proper (tho one of them only returns to std out, it does
not write to the directories you specify) not a single one of them puts data
into a file in the .mythtv/mythweather area when run through Myth.

I'm half tempted right now to setup cron jobs for those PL scripts I know
produce data.  For the ones that don't write files (say the 3 day/6 day
forecast script) how do I know what file name MythTV is looking for?  I
could pipe out the information returned by the script to the proper file if
I know what the file names are.

Speaking of cron jobs: does mythtv periodically re-run the weather data for
the revamp code?

--Douglas Wagner

Below is information on execution of each PL script (Western Suburb of St.
Louis is where this data points to specifically)

nwsxml.pl - Current Conditions - **Does not Write to the proper file.**
----------------------
/usr/share/mythtv/mythweather/scripts/nwsxml.pl -u ENG -d
/home/mythtv/.mythtv/MythWeather/NWS-XML KSUS

nws-alert.pl - Severe Weather Alerts - Properly Writes to File from Command
Line Execution
----------------------
/usr/share/mythtv/mythweather/scripts/nws-alert.pl -u ENG -d
/home/mythtv/.mythtv/MythWeather/NWS-Alerts 29183

maps.pl - Static Maps - Properly Writes to File from Command Line Execution
----------------------
/usr/share/mythtv/mythweather/scripts/maps.pl -u ENG -d
/home/mythtv/.mythtv/MythWeather/Map-Download
http://image.weather.com/images/maps/current/cur_mw_720x486.jpg

ndfd18.pl - 18 Hour Forecast - Properly Writes to File from Command Line
Execution
-----------------------
/usr/share/mythtv/mythweather/scripts/ndfd18.pl -u ENG -d
/home/mythtv/.mythtv/MythWeather/NDFD-18_Hour +38.39,-090.39

animaps.pl - Animated Maps - Properly Writes to File from Command Line
Execution
-----------------------
/usr/share/mythtv/mythweather/scripts/animaps.pl -u ENG -d
/home/mythtv/.mythtv/MythWeather/Animated-Map-Download
http://images.weather.com/looper/archive/us_mw_4regradar_plus_us

ndfd.pl - 3 Day and 6 Day Forecast - Properly Writes to File from Command
Line Execution
-----------------------
/usr/share/mythtv/mythweather/scripts/ndfd.pl -u ENG -d
/home/mythtv/.mythtv/MythWeather/NDFD-6_day +38.39,-090.39



On 5/19/07, Robin Gilks <g8ecj at gilks.org> wrote:
>
>
> > Ok, so I tried my hand at getting mythweather-revamp working.
> >
> > If you want to see HOW I got what I got read the here's what I did
> below.
> >
> > I've run into several problems.  First all but one of the defined
> > plugins/scripts in the setup area currently return "the plugin doesn't
> > provide the needed data" or something like that and won't install in the
> > active plugins area (the only one that does is NWS-Alerts).
> >
> > NWS-Alerts does in fact install but when it's run by mythtv it doesn't
> > generate it's output into the .mythtv/MythWeather/NWS-Alerts
> > directory...nothing appears in there.  If you manually run
> > NWS-Alerts.plfrom the scripts directory with the output line that
> > MythTV seems to want to
> > run that WILL create the output file (you have to be outside of myth and
> > execute it from the command line, myth itself (tho it runs a valid
> > command)
> > will not generate the output correctly, only if it's run from the
> command
> > line).
> >
> > If however you do generate the output file, mythweather will
> efffectively
> > display it, if you don't mythweather turns up completely blank.
> >
> > Also: does anyone have documentation on what the command lines should
> look
> > like for each of the scripts?  Since I can't get them to run properly
> > through myth (and most of the scripts are being beaten down my myth when
> > trying to be moved to the active area) it would be nice to have some
> > documentation on what each one is looking for so we could try running
> them
> > from the local command line.
> >
> > --Douglas Wagner
>
> For documentation on the command line for the scripts, check the README
> file in the scripts directory.
>
> Note that the maps and animated maps scripts do NOT take a city name as
> the other scripts do (doh!!). I played about with all sorts of names (with
> a few grep's thrown in) and found that for here (New Zealand) I had to
> enter the country name.
>
> The *ONLY* files that should be executable in the scripts directory are
> those that mythweather is going to scan - make sure any files are not
> executable. My executable files are:
>   animaps.pl
>   maps.pl
>   ndfd.pl
>   ndfd18.pl
>   nws-alert.pl
>   nwsxml.pl
>   weathercomXML.2.pl
> The ones starting with a 'n' seem to be USA specific.
>
> Try the script from Simon Flood on svn ticket #3337 - I'm using v0.2 but I
> see there is an update (not tried it yet!).
>
> I've found that my frontend box wasn't doing a DNS lookup correctly (adsl
> modem dns proxy got lost again) which caused a blank screen - guess I'll
> have to adjust the timeouts in the setup or remember to reset the modem
> more often.
>
> --
> Robin Gilks
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

------=_Part_75257_12150618.1179639896666
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

OK, so I have quite a bit more information now than I did about 20 minutes ago.<br><br>First the problem with all the scripts failing to load into the active area was due to the fact that the @INC array in perl (I sound like I know what i&#39;m talking about, I don&#39;t) didn&#39;t include /usr/share/mythtv/mythweather/scripts and thus none of the &quot;special&quot; files..the .pm files, could be found by any of the scripts...the only one that either worked out of the box or didn&#39;t need any .pm file was the Severe weather forcast, which is why that worked.
<br><br>To fix, I went into each of the scripts and added:<br><br><span style="font-style: italic;">use lib &quot;/usr/share/mythtv/mythweather/scripts&quot;;<br><br><span style="font-style: italic;"></span></span>Following this entering mythfrontend and going back into the sources setup worked perfectly...all the scripts were able to be added to the &quot;Active&quot; area.
<br><br>From there I obtained the information below on each scripts execution parameters.<br><br>The problem right now is that MythTV simply will not store any information in the locations required by the application.&nbsp; Once everything is setup I can see in the frontend log where it tries to run every PL script, and when those PL scripts are run from the command line I can see every one of them return something proper (tho one of them only returns to std out, it does not write to the directories you specify) not a single one of them puts data into a file in the .mythtv/mythweather area when run through Myth.
<br><br>I&#39;m half tempted right now to setup cron jobs for those PL scripts I know produce data.&nbsp; For the ones that don&#39;t write files (say the 3 day/6 day forecast script) how do I know what file name MythTV is looking for?&nbsp; I could pipe out the information returned by the script to the proper file if I know what the file names are.
<br><br>Speaking of cron jobs: does mythtv periodically re-run the weather data for the revamp code?<br><br>--Douglas Wagner<br><br>Below is information on execution of each PL script (Western Suburb of St. Louis is where this data points to specifically)
<br><br>nwsxml.pl - Current Conditions - <span style="font-style: italic; font-weight: bold;"><span style="font-style: italic;"><span style="font-weight: bold;">**</span></span>Does not Write to the proper file.**</span><br>
----------------------<br>/usr/share/mythtv/mythweather/scripts/nwsxml.pl -u ENG -d /home/mythtv/.mythtv/MythWeather/NWS-XML KSUS<br><br>nws-alert.pl - Severe Weather Alerts - <span style="font-weight: bold;">Properly Writes to File from Command Line Execution
</span><br>----------------------<br>/usr/share/mythtv/mythweather/scripts/nws-alert.pl -u ENG -d /home/mythtv/.mythtv/MythWeather/NWS-Alerts 29183<br><br>maps.pl - Static Maps - <span style="font-weight: bold;">Properly Writes to File from Command Line Execution
</span><br>----------------------<br>/usr/share/mythtv/mythweather/scripts/maps.pl -u ENG -d /home/mythtv/.mythtv/MythWeather/Map-Download <a href="http://image.weather.com/images/maps/current/cur_mw_720x486.jpg">http://image.weather.com/images/maps/current/cur_mw_720x486.jpg
</a><br><br>ndfd18.pl - 18 Hour Forecast - <span style="font-weight: bold;">Properly Writes to File from Command Line Execution</span><br>-----------------------<br>/usr/share/mythtv/mythweather/scripts/ndfd18.pl -u ENG -d /home/mythtv/.mythtv/MythWeather/NDFD-18_Hour +38.39,-
090.39<br><br>animaps.pl - Animated Maps - <span style="font-weight: bold;">Properly Writes to File from Command Line Execution</span><br>-----------------------<br>/usr/share/mythtv/mythweather/scripts/animaps.pl -u ENG -d /home/mythtv/.mythtv/MythWeather/Animated-Map-Download 
<a href="http://images.weather.com/looper/archive/us_mw_4regradar_plus_us">http://images.weather.com/looper/archive/us_mw_4regradar_plus_us</a><br><br>ndfd.pl - 3 Day and 6 Day Forecast - <span style="font-weight: bold;">
Properly Writes to File from Command Line Execution</span><br>-----------------------<br>/usr/share/mythtv/mythweather/scripts/ndfd.pl -u ENG -d /home/mythtv/.mythtv/MythWeather/NDFD-6_day +38.39,-090.39<br><br><span style="font-style: italic;">
<span style="font-style: italic;"></span><br></span><br><div><span class="gmail_quote">On 5/19/07, <b class="gmail_sendername">Robin Gilks</b> &lt;<a href="mailto:g8ecj at gilks.org">g8ecj at gilks.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&gt; Ok, so I tried my hand at getting mythweather-revamp working.<br>&gt;<br>&gt; If you want to see HOW I got what I got read the here&#39;s what I did below.<br>&gt;<br>&gt; I&#39;ve run into several problems.&nbsp;&nbsp;First all but one of the defined
<br>&gt; plugins/scripts in the setup area currently return &quot;the plugin doesn&#39;t<br>&gt; provide the needed data&quot; or something like that and won&#39;t install in the<br>&gt; active plugins area (the only one that does is NWS-Alerts).
<br>&gt;<br>&gt; NWS-Alerts does in fact install but when it&#39;s run by mythtv it doesn&#39;t<br>&gt; generate it&#39;s output into the .mythtv/MythWeather/NWS-Alerts<br>&gt; directory...nothing appears in there.&nbsp;&nbsp;If you manually run
<br>&gt; NWS-Alerts.plfrom the scripts directory with the output line that<br>&gt; MythTV seems to want to<br>&gt; run that WILL create the output file (you have to be outside of myth and<br>&gt; execute it from the command line, myth itself (tho it runs a valid
<br>&gt; command)<br>&gt; will not generate the output correctly, only if it&#39;s run from the command<br>&gt; line).<br>&gt;<br>&gt; If however you do generate the output file, mythweather will efffectively<br>&gt; display it, if you don&#39;t mythweather turns up completely blank.
<br>&gt;<br>&gt; Also: does anyone have documentation on what the command lines should look<br>&gt; like for each of the scripts?&nbsp;&nbsp;Since I can&#39;t get them to run properly<br>&gt; through myth (and most of the scripts are being beaten down my myth when
<br>&gt; trying to be moved to the active area) it would be nice to have some<br>&gt; documentation on what each one is looking for so we could try running them<br>&gt; from the local command line.<br>&gt;<br>&gt; --Douglas Wagner
<br><br>For documentation on the command line for the scripts, check the README<br>file in the scripts directory.<br><br>Note that the maps and animated maps scripts do NOT take a city name as<br>the other scripts do (doh!!). I played about with all sorts of names (with
<br>a few grep&#39;s thrown in) and found that for here (New Zealand) I had to<br>enter the country name.<br><br>The *ONLY* files that should be executable in the scripts directory are<br>those that mythweather is going to scan - make sure any files are not
<br>executable. My executable files are:<br>&nbsp;&nbsp;animaps.pl<br>&nbsp;&nbsp;maps.pl<br>&nbsp;&nbsp;ndfd.pl<br>&nbsp;&nbsp;ndfd18.pl<br>&nbsp;&nbsp;nws-alert.pl<br>&nbsp;&nbsp;nwsxml.pl<br>&nbsp;&nbsp;<a href="http://weathercomXML.2.pl">weathercomXML.2.pl</a><br>The ones starting with a &#39;n&#39; seem to be USA specific.
<br><br>Try the script from Simon Flood on svn ticket #3337 - I&#39;m using v0.2 but I<br>see there is an update (not tried it yet!).<br><br>I&#39;ve found that my frontend box wasn&#39;t doing a DNS lookup correctly (adsl
<br>modem dns proxy got lost again) which caused a blank screen - guess I&#39;ll<br>have to adjust the timeouts in the setup or remember to reset the modem<br>more often.<br><br>--<br>Robin Gilks<br><br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users at mythtv.org">mythtv-users at mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>

------=_Part_75257_12150618.1179639896666--


More information about the mythtv-users mailing list