[mythtv-commits] Ticket #3303: Mythweb Weather throws error when MSNBC unavailable
MythTV
mythtv at cvs.mythtv.org
Thu Apr 19 13:29:27 UTC 2007
#3303: Mythweb Weather throws error when MSNBC unavailable
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: xris
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythweb | Version: head
Severity: low | Resolution:
-----------------------+----------------------------------------------------
Comment(by simonflood):
Replying to [comment:8 simonflood]:
> I get the following error when I access /mythweb/weather having replaced
handler.php with this kludged version.
>
> Fatal error: Call to undefined function: stripos() in
/usr/share/mythtv/mythweb/modules/weather/handler.php on line 154
>
> The stripos function is not defined within the old handler.php either.
To answer my own report changing stripos to strpos fixes this error.
However be aware that Yahoo Weather uses different numbering for the
weather types so weathertypes.dat needs re-doing. See
http://developer.yahoo.com/weather/#codes for Yahoo's codes. Of course
the conditions don't match those for MSNBC!
Also with this kludged script, visibility is already supplied in km
(metric) in the XML feed so it doesn't need converting to imperial (and in
fact needs converting to imperial if not metric).
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3303#comment:15>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list