Ok, that would make some sense I guess. I am getting "current conditions" even though current conditions doesn't write anything out. However if I don't forceably cache stuff to disk with cron like i'm doing, myth crashes out with a floating point error or a devide by zero error or something of that nature...so for the moment myth weather on my system seems to work with a cron job pulling the data every hour.
<br><br>So basically, everything right now is working except 3 day and 6 day forecast. The job returns data and it gets written to the cached area, and it looks like good data, so I know the job is working. In MythWeather, The alerts come up (first page i've set), then the current conditions come up (Second page I've set), but current conditions sits there for quite some time (The 3day and 6day are the next 2 pages and do not come up), then the static weather map comes up (the 5th page) then finally the animated map as the last page...so it's like it's trying to process the 3 and 6 day forecast, but simply can't.
<br><br>Are there any debug options I can set to get better information on why Myth is unable to parse or display the 3 / 6 day forecast?<br><br>--Douglas Wagner<br><br><div><span class="gmail_quote">On 5/20/07, <b class="gmail_sendername">
Douglas Wagner</b> <<a href="mailto:douglasw0@gmail.com">douglasw0@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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'm talking about, I don't) didn't include /usr/share/mythtv/mythweather/scripts and thus none of the "special" files..the .pm files, could be found by any of the scripts...the only one that either worked out of the box or didn'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 "/usr/share/mythtv/mythweather/scripts";<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 "Active" 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. 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'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.
<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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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<div><span class="e" id="q_112a8045a493450e_1">
<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> <<a href="mailto:g8ecj@gilks.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
g8ecj@gilks.org</a>> 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>> Ok, so I tried my hand at getting mythweather-revamp working.<br>><br>> If you want to see HOW I got what I got read the here's what I did below.<br>><br>> I've run into several problems. First all but one of the defined
<br>> plugins/scripts in the setup area currently return "the plugin doesn't<br>> provide the needed data" or something like that and won't install in the<br>> active plugins area (the only one that does is NWS-Alerts).
<br>><br>> NWS-Alerts does in fact install but when it's run by mythtv it doesn't<br>> generate it's output into the .mythtv/MythWeather/NWS-Alerts<br>> directory...nothing appears in there. If you manually run
<br>> NWS-Alerts.plfrom the scripts directory with the output line that<br>> MythTV seems to want to<br>> run that WILL create the output file (you have to be outside of myth and<br>> execute it from the command line, myth itself (tho it runs a valid
<br>> command)<br>> will not generate the output correctly, only if it's run from the command<br>> line).<br>><br>> If however you do generate the output file, mythweather will efffectively<br>> display it, if you don't mythweather turns up completely blank.
<br>><br>> Also: does anyone have documentation on what the command lines should look<br>> like for each of the scripts? Since I can't get them to run properly<br>> through myth (and most of the scripts are being beaten down my myth when
<br>> trying to be moved to the active area) it would be nice to have some<br>> documentation on what each one is looking for so we could try running them<br>> from the local command line.<br>><br>> --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'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> animaps.pl<br> maps.pl<br> ndfd.pl<br> ndfd18.pl<br> nws-alert.pl<br> nwsxml.pl<br> <a href="http://weathercomXML.2.pl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
weathercomXML.2.pl</a><br>The ones starting with a 'n' seem to be USA specific.
<br><br>Try the script from Simon Flood on svn ticket #3337 - I'm using v0.2 but I<br>see there is an update (not tried it yet!).<br><br>I've found that my frontend box wasn't doing a DNS lookup correctly (adsl
<br>modem dns proxy got lost again) which caused a blank screen - guess I'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@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>
</span></div></blockquote></div><br>