Fix MythWeb’s Weather page (partially)

mythweb weatherJust installed Mythbuntu and was playing around with the MythWeb feature, really sweet. But, the weather page was only showing a horizontal rule.

Did some poking around with the module code. In the file /var/www/mythweb/modules/weather/handler.php It read:

// Get configured WeatherScreens from the database
$sh = $db->query(’SELECT screen_id, draworder
FROM weatherscreens
WHERE hostname=?’,
$_SESSION['settings']['host']);

Changing the last line to the following like I found in a similar section in init.php to:

hostname);

actually showed me my current conditions and three day forcast… the doppler radar image is missing though.

Hope it helps someone out there.

Leave a Reply