[mythtv-users] Mythweb weather 0.19

Ben Dash ben_dash at yahoo.com
Wed Jun 28 03:14:38 UTC 2006


I am trying to use mythweb/weather in 0.19, however,
when I click on the link (mythweb/weather.php) it just
hangs for a while until:

Error at
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php,
line 199:
file(http://w3.weather.com/weather/map/USTX0630?from=LAPmaps&setcookie=1)
[function.file]: failed to open stream: Connection
timed out
Details:

    datetime:  2006-06-27 21:58:25 (CDT)
    errornum:  2
  error type:  Warning
error string: 
file(http://w3.weather.com/weather/map/USTX0630?from=LAPmaps&setcookie=1)
[<a href='function.file'>function.file</a>]: failed to
open stream: Connection timed out
    filename: 
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php
  error line:  199

Error at
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php,
line 200:
Invalid argument supplied for foreach()
Details:

    datetime:  2006-06-27 21:58:25 (CDT)
    errornum:  2
  error type:  Warning
error string:  Invalid argument supplied for foreach()
    filename: 
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php
  error line:  200

Error at
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php,
line 210:
Invalid argument supplied for foreach()
Details:

    datetime:  2006-06-27 21:58:25 (CDT)
    errornum:  2
  error type:  Warning
error string:  Invalid argument supplied for foreach()
    filename: 
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php
  error line:  210

Error at
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php,
line 209:
file(http://w3.weather.com/maps/local/local/us_close_dfw_ultra_dfw_metro_dfw/1b/index_large.html)
[function.file]: failed to open stream: Connection
timed out
Details:

    datetime:  2006-06-27 21:59:48 (CDT)
    errornum:  2
  error type:  Warning
error string: 
file(http://w3.weather.com/maps/local/local/us_close_dfw_ultra_dfw_metro_dfw/1b/index_large.html)
[<a href='function.file'>function.file</a>]: failed to
open stream: Connection timed out
    filename: 
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php
  error line:  209

Error at
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php,
line 210:
Invalid argument supplied for foreach()
Details:

    datetime:  2006-06-27 21:59:48 (CDT)
    errornum:  2
  error type:  Warning
error string:  Invalid argument supplied for foreach()
    filename: 
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php
  error line:  210

Error at
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php,
line 209:
file(http://w3.weather.com/maps/local/local/us_close_dfw_ultra_dfw_metro_dfw/1b/index_large.html)
[function.file]: failed to open stream: Connection
timed out
Details:

    datetime:  2006-06-27 22:00:49 (CDT)
    errornum:  2
  error type:  Warning
error string: 
file(http://w3.weather.com/maps/local/local/us_close_dfw_ultra_dfw_metro_dfw/1b/index_large.html)
[<a href='function.file'>function.file</a>]: failed to
open stream: Connection timed out
    filename: 
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php
  error line:  209

Error at
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php,
line 210:
Invalid argument supplied for foreach()
Details:

    datetime:  2006-06-27 22:00:49 (CDT)
    errornum:  2
  error type:  Warning
error string:  Invalid argument supplied for foreach()
    filename: 
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php
  error line:  210


And then I get a partial weather screen.

Sure enough:

http://w3.weather.com/weather/map/USTX0630?from=LAPmaps&amp;setcookie=1

Is not there.  Hmmm... Line 199 of
/var/www/localhost/htdocs/mythweb/modules/weather/handler.php:

$data = file("http://w3.weather.com/weather/map/" .
$this->acid . "?from=LAPmaps&setcookie=1");

Is $this->acid correct?  It works fine in
mythfrontend.

Any ideas?

Thanks!

Ben


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the mythtv-users mailing list