View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 72 posts ] 
Go to page Previous  1, 2, 3, 4, 5  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: mythweather-revamp
PostPosted: Wed Apr 25, 2007 6:44 am 
Offline
Joined: Tue May 16, 2006 8:41 am
Posts: 47
Location: United Kingdom
For those of you who want to try out the new version of MythWeather, from the mythweather-revamp branch, there is a new page on mythTV's wiki http://www.mythtv.org/wiki/index.php/Using_mythweather-revamp_with_trunk_mythtv that I've used as a guide to helping me get it working with KnoppMyth R5E50.

KM is missing the Image::Size Perl library so it needs installing
Code:
# apt-get update
# apt-get install libimage-size-perl

Check out mythplugins from mythweather-revamp branch
Code:
# cd /tmp/
# svn co http://svn.mythtv.org/svn/branches/mythweather-revamp/mythplugins
# cd mythplugins
# ./configure --disable-all --enable-mythweather --prefix=/usr

Animated Map screen won't work unless you ...
Code:
# chmod +x mythweather/mythweather/scripts/animaps.pl

Build & install
Code:
# make
# make install

Check newest version of plugin is installed
Code:
# ls -l /usr/lib/mythtv/plugins/libmythweather.so

If you haven't already fixed MythWeather as per my earlier posting you'll need to download & install the new icons
Code:
# cd /tmp/
# wget http://svn.mythtv.org/trac/raw-attachment/ticket/3327/icons1.zip
# wget http://svn.mythtv.org/trac/raw-attachment/ticket/3327/icons2.zip
# wget http://svn.mythtv.org/trac/raw-attachment/ticket/3327/icons3.zip
# wget http://svn.mythtv.org/trac/raw-attachment/ticket/3327/icons4.zip
# unzip icons\?.zip -d /usr/share/mythtv/themes/default

Once you've got mythweather-revamp installed you're probably going to want to check the weather!? :wink:

I've now created a Perl script to pull XML data from weather.com which I've added to SVN ticket 3337 (someone else had already created a PHP script to do the same but Perl seems more appropriate and fits in with existing scripts).
Code:
# cd /tmp/
# wget http://svn.mythtv.org/trac/raw-attachment/ticket/3337/weathercomXML.2.pl
# cp weathercomXML.2.pl /usr/share/mythtv/mythweather/scripts/weathercomXML.pl
# chmod +x /usr/share/mythtv/mythweather/scripts/weathercomXML.pl

Now you're ready to check the weather which will prompt you to set it up if using (mythweather-revamp) for the first time.

Note that these instructions are for getting mythweather-revamp working and are not for fixing the problem with MythWeather/MythWeb pulling data from MSNBC.com.

HTH

Simon

Edited as forgot to say weathercomXML.pl needs making executable
Further edit as discovered one of MW's scripts isn't executable so Animated Map screen won't configure and can't be used


Last edited by simonflood on Mon Apr 30, 2007 3:39 pm, edited 3 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 8:54 am 
Offline
Joined: Fri Jul 29, 2005 1:22 am
Posts: 232
Location: SF East Bay, CA
BluesBrian wrote:
Yep. "2.41" fixed up my mythweather as well.. I'm currently on R5C7.

One glitch .. that might just go away.. the weather map flashes between a few good frames of good map image and a "Map Unavailable" screen.

My MythWeb Weather is also "toast".. but I do have one frame of the weather Map. (ok, for the curious, it's one of the frames that I do get on mythweather.. of course, that would be strange if it was the missing frame!)

Thanks, simonflood, for working up the fix for us! :D


Saying again.. the Message Posted: Mon Apr 23, 2007 2:41 am fixes mythweather frontend on R5C7 .. except that the weather map page flashes between a stale map and "Map Unavailable".

I attempted to apply the fix detailed on Message Posted: Mon Apr 23, 2007 1:23 am (the actual MythWeb Weather fix) and it had a couple of problems during the application.

1. at the middle of the script ..
Code:
cd /usr/share/mythtv/mythweb/modules/weather/tmpl/default/
.. fails (the directories do not exist .. so I
Code:
cd /usr/share/mythtv/mythweb/modules/weather
mkdir tmpl
mkdir tmpl/default
.. and the failed "cd" command will work. The
Code:
mv weather.php weather.php.orig
will, of course, fail, since the original does not exist.. so continue without it.

2. the last "unzip" command fails, as directories don't exist. I create them, and re-run the unzip and the command works. (note: if you have rebooted in between... the /tmp directory gets wiped out, so you have to wget again.. one step forward, six steps back!)

MythWeb Weather still fails.

    Error at /usr/share/mythtv/mythweb/modules/weather/handler.php, line 33:
    file(modules_path/module/weathertypes.dat): failed to open stream: No such file or directory
    Details:
    datetime: 2007-04-25 07:47:11 (PDT)
    errornum: 2
    error type: Warning
    error string: file(modules_path/module/weathertypes.dat): failed to open stream: No such file or directory
    filename: /usr/share/mythtv/mythweb/modules/weather/handler.php
    error line: 33
    Error at /usr/share/mythtv/mythweb/modules/weather/handler.php, line 33:
    Invalid argument supplied for foreach()
    Details:
    datetime: 2007-04-25 07:47:11 (PDT)
    errornum: 2
    error type: Warning
    error string: Invalid argument supplied for foreach()
    filename: /usr/share/mythtv/mythweb/modules/weather/handler.php
    error line: 33
    Error at /usr/share/mythtv/mythweb/modules/weather/handler.php, line 70:
    main(tmpl_dirweather.php): failed to open stream: No such file or directory
    Details:
    datetime: 2007-04-25 07:47:13 (PDT)
    errornum: 2
    error type: Warning
    error string: main(tmpl_dirweather.php): failed to open stream: No such file or directory
    filename: /usr/share/mythtv/mythweb/modules/weather/handler.php
    error line: 70
    Fatal error: main(): Failed opening required 'tmpl_dirweather.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/mythtv/mythweb/modules/weather/handler.php on line 70

Ideas?

_________________
// Brian - Hardware:
ASUS P5P800 - P4 3Ghz, 500 GB PATA HD
ASUS P5K-V - P4 Core2 Duo, 500 GB SATA HD
Hauppauge PVR-350, IR Blaster, Comcast Digital Cable
http://tech.groups.yahoo.com/group/KnoppMyth/
KnoppMyth R5F27 >> R5.5


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 9:13 am 
Offline
Joined: Tue May 16, 2006 8:41 am
Posts: 47
Location: United Kingdom
BluesBrian wrote:
the Message Posted: Mon Apr 23, 2007 2:41 am fixes mythweather frontend on R5C7 .. except that the weather map page flashes between a stale map and "Map Unavailable".

I attempted to apply the fix detailed on Message Posted: Mon Apr 23, 2007 1:23 am (the actual MythWeb Weather fix) and it had a couple of problems during the application.

1. at the middle of the script ..
Code:
cd /usr/share/mythtv/mythweb/modules/weather/tmpl/default/
.. fails (the directories do not exist

Sorry but it seems that for some reason you are missing some directories which seems to be the cause of the problems that you're experiencing.

I've seen that my solution works for people using some earlier versions of KM (R5B7 & R5D1) but the only person reporting back on R5C7 is yourself so we'll have to see whether someone else with R5C7 reports back to say whether it works for them or not.

What version of mythTV does R5C7 come with?
Code:
# dpkg -l | grep myth

Looking at KM's changelog it would appear that R5B7 (which apparently works) was updated with 0.19-fixes and R5C7 with unspecified -fixes. I wonder if something got broken with R5C7 ... ? :(

Anyone else out there using R5C7? Does the above path exist? Do my MythWeather/MythWeb fixes work for you?

Simon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 10:18 am 
Offline
Joined: Tue Mar 29, 2005 6:15 pm
Posts: 79
Location: Plymouth, MI
I previously reported that the second fix (second form the last message on the first page, the detailed walk-though) worked on R5B7. I would like to add that I am also seeing the 'one map out of the group missing' issue. I thought it was just a symptom of the data retrieved at the time I tested, so I didn't think anything of it. It's been a day or two, and it's still missing one of the maps. All the other data is present and correct, there's just one map missing. No big deal to me - just wanted to update my statement that 'it worked'.

For what it's worth, I have NOT applied the fixes to the weather on MythWeb - I never use that feature. (Since I'm already using a browser, I just go to weather.com...)

(edited for clarity)

_________________
Running Knoppmyth R5F27 since 09/12/07

Hardware Specs


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 11:01 am 
Offline
Joined: Fri Jul 29, 2005 1:22 am
Posts: 232
Location: SF East Bay, CA
adoute wrote:
I would like to add that I am also seeing the 'one map out of the group missing' issue. I thought it was just a symptom of the data retrieved at the time I tested, so I didn't think anything of it. It's been a day or two, and it's still missing one of the maps. All the other data is present and correct, there's just one map missing. No big deal to me - just wanted to update my statement that 'it worked'.

For what it's worth, I have NOT applied the fixes to the weather on MythWeb - I never use that feature. (Since I'm already using a browser, I just go to weather.com...)

(edited for clarity)

That sounds like the issue that I'm having with the MythWeather frontend.. ( above) .. with a "Map Unavailable" message on the missing page.

In general, I agree with the comment (using a browser, just go to weather.com .. unless you like to see your tax dollars in action.. weather.gov.) but I would like to see if I can get it to work under general principles. I suspect that R5C7 is out-of-sync here, since the folder structures aren't matched up.

_________________
// Brian - Hardware:
ASUS P5P800 - P4 3Ghz, 500 GB PATA HD
ASUS P5K-V - P4 Core2 Duo, 500 GB SATA HD
Hauppauge PVR-350, IR Blaster, Comcast Digital Cable
http://tech.groups.yahoo.com/group/KnoppMyth/
KnoppMyth R5F27 >> R5.5


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 5:29 pm 
Offline
Joined: Sat Dec 24, 2005 11:33 am
Posts: 400
Location: Kitsap Peninsula, Wa., United States
First let me say, I really appreciate all the time being put into fixing the weather. The wife would like it working again.

My KM platfom is fairly stock in the overall scheme of things.
No time to change it and to hesitant since it works so well and meets the waf right now.

Once I see this looks like it is fixed, then probably sometime this weekend I can try to update mine.

I can find a little time here and there to lookup anything you ask if you need something.

It was asked.
Quote:
What version of mythTV does R5C7 come with?


Code:
# dpkg -l | grep myth
ii  bootsplash-the 0.5-5          The bootsplash theme knoppmyth
rc  libmyth-0.15   0.15.1-1       Common library code for MythTV and add-on mo
rc  libmyth-0.16   0.16-1         Common library code for MythTV and add-on mo
rc  libmyth-0.17   0.17-cvs040705 Common library code for MythTV and add-on mo
ic  libmyth-0.18   0.19.0-1_km_i5 Common library code for MythTV and add-on mo
ii  libmyth-0.19   0.19.0-6_km_i6 Common library code for MythTV and add-on mo
ii  libmyth-0.19-d 0.19.0-6_km_i6 Common library code for MythTV and add-on mo
ii  mythburn-ui    i686-2         MythBurn UI
ii  mythplugins    0.19.0-8_km_i6 Plugins for MythTV.
ii  myththemes     0.19svn8516-1  Themes for MythTV.  Includes the Retro theme
ii  mythtv         0.19.0-6_km_i6 A personal video recorder application (clien
ii  mythtv-backend 0.19.0-6_km_i6 A personal video recorder application (serve
ii  mythtv-common  0.19.0-6_km_i6 A personal video recorder application (commo
ii  mythtv-databas 0.19.0-6_km_i6 A personal video recorder application (datab
ii  mythtv-debug   0.19.0-6_km_i6 Debugging symbols for MythTV
ii  mythtv-doc     0.19.0-6_km_i6 A personal video recorder application (docum
ii  mythtv-fronten 0.19.0-6_km_i6 A personal video recorder application (clien
rc  mythweb        0.17-3         Web interface add-on module for MythTV


Also it was asked if some directories are missing.

Code:
cd /usr/share/mythtv/mythweb/modules/weather/tmpl/default/
bash: cd: /usr/share/mythtv/mythweb/modules/weather/tmpl/default/: No such file or directory



I haven't attempted the Mythweather change yet.
My http://mythbox/mythweb/weather used to work and it now just gives me this.
Error at /usr/share/mythtv/mythweb/modules/weather/handler.php, line 94:

The Frontend Weather only gives me a map everything else is just icons as if there were data.

To Reiterate I haven't made any of the changes outlined in this thread yet.
You asked what a stock R5C7 system looks like. Anything else I can add?

TIA


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2007 5:32 pm 
Offline
Joined: Wed Apr 25, 2007 1:13 pm
Posts: 21
I followed the instructions outlined in this thread to fix MythWeather. Now when I select Weather in MythTV, I get the following:

The mythweather plugin was compiled against libmyth version: 0.20.20070327-1, but the installed libmyth is at version: 0.20.20060828-3. You probably want to recompile the mythweather plugin after doing a make distclean.

Did I miss a step? I am not terribly adept at Linux yet. Any help is appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 2:56 am 
Offline
Joined: Tue May 16, 2006 8:41 am
Posts: 47
Location: United Kingdom
jpitlick wrote:
The mythweather plugin was compiled against libmyth version: 0.20.20070327-1, but the installed libmyth is at version: 0.20.20060828-3. You probably want to recompile the mythweather plugin after doing a make distclean.

Which version of KM are you running? What does the following report?
Code:
# dpkg -l | grep myth

Simon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 3:07 am 
Offline
Joined: Tue May 16, 2006 8:41 am
Posts: 47
Location: United Kingdom
bigbro wrote:
My KM platfom is fairly stock in the overall scheme of things.

Are these R5C7 new installs or were they upgraded from a previous version?

Unfortunately I run R5E50 so I can only report what works for me. If it then works for other versions then that's great (for those users). If it doesn't then others will need to help out (whilst I have the inclination to help I don't have the time or resources).

Simon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 6:32 am 
Offline
Joined: Wed Apr 25, 2007 1:13 pm
Posts: 21
I am running KM version R5E50. The dpkg -l | grep myth command reports:

ii bootsplash-theme-knoppmyth 0.5-5 The bootsplash theme knoppmyth
rc libmyth-0.20 0.20-0.3 Common library code for MythTV and add-on mo
ii mythplugins 0.20-13 All the official MythTV Plugins.
ii mythstreamtv 1.10-1 Stream MPEG-2 encoded videos via HTTP.
ii mythtv 0.20-17 MythTV, the mythical convergence box.
rc mythtv-backend 0.20-0.3 A personal video recorder application (serve
rc mythtv-common 0.20-0.3 A personal video recorder application (commo
rc mythtv-database 0.20-0.3 A personal video recorder application (datab
rc mythtv-frontend 0.20-0.3 A personal video recorder application (clien
rc mythweb 0.20-0.7 Web interface add-on module for MythTV

What next? Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 6:52 am 
Offline
Joined: Tue May 16, 2006 8:41 am
Posts: 47
Location: United Kingdom
jpitlick wrote:
I am running KM version R5E50. The dpkg -l | grep myth command reports:

ii bootsplash-theme-knoppmyth 0.5-5 The bootsplash theme knoppmyth
rc libmyth-0.20 0.20-0.3 Common library code for MythTV and add-on mo
ii mythplugins 0.20-13 All the official MythTV Plugins.
ii mythstreamtv 1.10-1 Stream MPEG-2 encoded videos via HTTP.
ii mythtv 0.20-17 MythTV, the mythical convergence box.
rc mythtv-backend 0.20-0.3 A personal video recorder application (serve
rc mythtv-common 0.20-0.3 A personal video recorder application (commo
rc mythtv-database 0.20-0.3 A personal video recorder application (datab
rc mythtv-frontend 0.20-0.3 A personal video recorder application (clien
rc mythweb 0.20-0.7 Web interface add-on module for MythTV

What next? Thanks.

Hmm same results as for my development KM R5E50 installed as a VMware guest (not surprising really!).

OK what size is your compiled libmythweather.so module?
Code:
# ls -la /usr/lib/mythtv/plugins/libmythweather.so

Mine is (well was, I'm now using mythweather-revamp) 225716.

Assuming that you'll have the same file size what have you done to your system since first installing KM R5E50? In particular what packages have been installed/updated?

Simon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 7:34 am 
Offline
Joined: Wed Apr 25, 2007 1:13 pm
Posts: 21
My compiled libmythweather.so is the same size as yours.

I had attempted to update MythTV, Mythplugins, and Myththemes to the latest SVN version, but they didn't seem to take. Other than that, I fixed Mythweb weather. That's it.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 7:56 am 
Offline
Joined: Tue May 16, 2006 8:41 am
Posts: 47
Location: United Kingdom
jpitlick wrote:
I had attempted to update MythTV, Mythplugins, and Myththemes to the latest SVN version, but they didn't seem to take. Other than that, I fixed Mythweb weather. That's it.

Hmm this explains a lot and I suspect that one (or more) of the above updates did take (probably MythTV as I think that provides libmyth).

As far as KnoppMyth, or in particular dpkg, is concerned you're still running the original version but really you're not.
jpitlick wrote:
The mythweather plugin was compiled against libmyth version: 0.20.20070327-1, but the installed libmyth is at version: 0.20.20060828-3. You probably want to recompile the mythweather plugin after doing a make distclean.

I don't suppose 27 Mar 2007 now rings a bell as the date you updated via SVN?

I'm not sure where to go from here but re-reading the above error message it sounds like you're building against the SVN source and not what KM installed.

Simon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 8:08 am 
Offline
Joined: Wed Apr 25, 2007 1:13 pm
Posts: 21
I definitely updated via SVN more recently than 3/27, like within the last week. Perhaps, the SVN build is dated 3/27.

I am not adverse to reinstalling KnoppMyth from scratch. If I do that and then follow your instructions in this thread, do you think that will work? Thanks for the help.

Josh


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 8:19 pm 
Offline
Joined: Wed Mar 07, 2007 9:51 am
Posts: 173
Location: Uniontown, PA
simon,

Installed the revamp updates as you said (on R5E50), and even got to select location...but now when I try to start mythweather, Myth crashes, and I get dumped back to X. :( I'm looking through logs to see where I went wrong.

Edit: I found this is the user.log:

GConf server not in use, shutting down.

Any idea on what I fubar'ed?


Last edited by larrybpsu on Fri Apr 27, 2007 8:47 pm, edited 1 time in total.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 72 posts ] 
Go to page Previous  1, 2, 3, 4, 5  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu