[mythtv] Re: MythWeather - erratic updates?

Michael Thomson linux at M-Thomson.net
Wed Jul 30 01:10:40 EDT 2003


Me again.

I've been playing around tonight and finally realised I had to turn on
debug=true in weather.cpp (Duh) so now I get the mythweather messages!

It turns out that I do see one weird area - when all works OK, I get *two*
messages about the radar image completing, and when it busy/hangs I get *no*
messages. about the radar map. See below.

Does this mean that there may be two processes/threads deadlocking on
something related to getting the radar image? (Pure guesswork!)

Cheers
Mike

P.S. Looking at Isaac's earlier message, I tried changing the timeoutCounter
stuff to decrement from 4 and test whether it was >0, to avoid the chance
that it was being reset to zero and therefore never getting to 3 so
stopProcessing was never set to true.

This didn't seem to sort things out (though it seems like a good idea?)

**************************

[michthom at mythpc mythweather]$ mythfrontend
MythWeather: Reading InstallPrefix from context.
MythWeather: baseDir = /usr/local
MythWeather: Reading 'locale' from context.
MythWeather: --- Locale: UKXX0025
MythWeather: Reading 'SIUnits' from context.
MythWeather: --- Converting Data
MythWeather: Loading Weather Types.
MythWeather: Setting up timers.
MythWeather: Finish Object Initialization.
MythWeather: update_timeout() : Updating....
MythWeather: First run, reset timer to updateInterval.
MythWeather: COMMS : GetWeatherData() ...
MythWeather: Grabbing Weather From:
http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=UKXX0025
MythWeather: Grabbing Weather Map Link (part 1) From:
http://w3.weather.com/weather/map/UKXX0025?from=LAPmaps&setcookie=1 HTTP/1.1
Connection: close
Host: w3.weather.com



MythWeather: Parse HTML : Looking for: if (isMinNS4) var mapNURL = ", ending
with: ";
MythWeather: Parse HTML : Returning :
/maps/local/local/uk/1b/index_large.html
MythWeather: Grabbing Weather Map Link (part 2) From:
http://w3.weather.com/maps/local/local/uk/1b/index_large.html
MythWeather: Parse HTML : Looking for: <IMG NAME="mapImg"
SRC="http://image.weather.com, ending with: "
MythWeather: Parse HTML : Returning : /images/sat/uksat_720x486.jpg
MythWeather: Map File Prefix: /home/michthom/.mythtv/MythWeather
MythWeather: Copying Map File from Server
(/images/sat/uksat_720x486.jpg)...Done.
MythWeather: Full path to radar image:
/home/michthom/.mythtv/MythWeather/uksat_720x486.jpg
MythWeather: Radar Image Done. (Loading...)
MythWeather: Radar Image Done. (Loading...)

(This worked OK, but why two messages about the Radar Image?)

**************************

[michthom at mythpc mythweather]$ mythfrontend
MythWeather: Reading InstallPrefix from context.
MythWeather: baseDir = /usr/local
MythWeather: Reading 'locale' from context.
MythWeather: --- Locale: UKXX0025
MythWeather: Reading 'SIUnits' from context.
MythWeather: --- Converting Data
MythWeather: Loading Weather Types.
MythWeather: Setting up timers.
MythWeather: Finish Object Initialization.
MythWeather: update_timeout() : Updating....
MythWeather: First run, reset timer to updateInterval.
MythWeather: COMMS : GetWeatherData() ...
MythWeather: Grabbing Weather From:
http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=UKXX0025
MythWeather: Grabbing Weather Map Link (part 1) From:
http://w3.weather.com/weather/map/UKXX0025?from=LAPmaps&setcookie=1 HTTP/1.1
Connection: close
Host: w3.weather.com



MythWeather: Grabbing Weather From:
http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=UKXX0025
MythWeather: Grabbing Weather Map Link (part 1) From:
http://w3.weather.com/weather/map/UKXX0025?from=LAPmaps&setcookie=1 HTTP/1.1
Connection: close
Host: w3.weather.com



MythWeather: Parse HTML : Looking for: if (isMinNS4) var mapNURL = ", ending
with: ";
MythWeather: Parse HTML : Returning :
/maps/local/local/uk/1b/index_large.html
MythWeather: Grabbing Weather Map Link (part 2) From:
http://w3.weather.com/maps/local/local/uk/1b/index_large.html
MythWeather: Parse HTML : Looking for: <IMG NAME="mapImg"
SRC="http://image.weather.com, ending with: "
MythWeather: Parse HTML : Returning : /images/sat/uksat_720x486.jpg
MythWeather: Map File Prefix: /home/michthom/.mythtv/MythWeather
MythWeather: Copying Map File from Server
(/images/sat/uksat_720x486.jpg)...Done.
MythWeather: Full path to radar image:
/home/michthom/.mythtv/MythWeather/uksat_720x486.jpg

(This hung on the initial splashscreen "loading... mythweather [ retrieving
weather data... ] with a 100% busy CPU."



More information about the mythtv-dev mailing list