[mythtv-users] MythWeather-Revamp: Is it even partially working?

Douglas Wagner douglasw0 at gmail.com
Sun May 20 04:27:48 UTC 2007


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 some documentation here's what I did:

uninstalled mythweather rpm (rpm -e mythweather --no-deps)
checked out the SVN copy of mythweather (svn co
http://svn.mythtv.org/svn/branches/mythweather-revamp/mythplugins)
ran ./configure (returned a list of perl modules that weren't installed).

Loaded cpan, installed all perl modules.

./configure --disable-all --enable-mythweather --prefix=/usr

This configured correctly, from there the standard:
make
make install* (see note below)

After the install and the moves noted below in the make install note I
followed the following from Rich West in a prior post to the list:

1. Copy weather_settings.xml to /usr/share/mythtv/weather_settings.xml
2. REMOVE /usr/share/mythtv/themes/default/weather-ui.xml
3. REMOVE /usr/share/mythtv/themes/default-wide/weather-ui.xml
4. COPY (or move) the new weather-ui.xml file (part of
*mythweather*-revamp) to /usr/share/mythtv/themes/default/weather-ui.xml
and to /usr/share/mythtv/themes/default-wide/weather-ui.xml
5. REMOVE any weather-ui.xml files from the other themes that you have
installed. If you have one in your current theme, your MythTV install
will use that rather than the default one. Since there aren't
theme-specific ones for *mythweather*-revamp yet, just remove the ones you
have because it will cause the app to crash.

That should help with the crashing another user reported. Now, as far
as the source stuff... For one, make sure that all of the *.pl scripts
are executable in /usr/share/mythtv/mythtweather/scripts. Now, with all
of that set:
1. start up your frontend and go to "Utilities/Setup"->"Setup"->"Info
Center Settings"->"Weather Settings"->"Screen Settings".
2. Arrow down to the first item in your list of "Active Screens".
3. Now, with the first one highlighted, hit "ENTER", and a new menu will
pop-up.
4. Select "Change Location" to bring up the search page. Enter in your
location (unfortunately, this part is a bit specific to the NWS, so take
a peel in the NWS-Stations.xml file for something close to you) and hit
search. Select your location from the search results and hit "enter".
This will close the search window and move focus back to the list of
"Active Screens".
5. Go through each of the entries in the "Active Screens" in the same
manner.
6. When you are done with all of the active screens, hit "M" to go back
to the menu. This will save all of your settings. They are NOT saved
until you do that. If you hit ESC at any time to go back to the
previous menu, your changes will be lost.

* Make Install Note: Note that make install, even after being given
prefix=usr decided that stuff needed to be installed in root.  I got a
/mythtv/plugins directory created and a /share directory created with a
bunch of scripts and such.  Ended up moving the plugin to
/usr/lib64/mythtv/plugins and the /share stuff to /usr/share/mythtv.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070519/b26692cc/attachment.htm 


More information about the mythtv-users mailing list