Author Topic: Ajaxeline AJAX and PHP template. Beta release available.  (Read 112396 times)

batr3a

  • Gentle Breeze
  • **
  • Posts: 12
    • DW5790
    • KMEPARSO2
    • Weather at Maple Trees
  • Station Details: Dedicated Mac Mini, OSX 10.6.8, Davis Vantage Vue, WeatherCat
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #90 on: June 06, 2012, 02:36:43 PM »
I believe the animated radar using the wunderground API code is no longer working as you folks who are using this feature in their template will notice. Here is the error I get:

invalidimage   29   2012-06-06   2   6   /api/MY API/animatedradar/q/43.6950,-70.9000.gif?newmaps=1&timelabel=1&timelabel.y=10&num=10&delay=50&width=900&height=480

Any ideas on how we can correct the code?

Thanks,

Bryant

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1555
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #91 on: June 06, 2012, 03:04:43 PM »
I don't see an error message on Safari, but I'm not getting the radar image to load, either. Thanks for the note, as I don't always look at each page.

Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

batr3a

  • Gentle Breeze
  • **
  • Posts: 12
    • DW5790
    • KMEPARSO2
    • Weather at Maple Trees
  • Station Details: Dedicated Mac Mini, OSX 10.6.8, Davis Vantage Vue, WeatherCat
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #92 on: June 06, 2012, 03:17:03 PM »
Steve and others,

If you want to see your API errors, go to http://www.wunderground.com/weather/api/

Cheers,
Bryant

P.S. - After 12 hours is appears to have cleared itself. Must have been a Wunderground SNAFU.

nowait

  • Strong Breeze
  • ***
  • Posts: 133
  • Station Details: Davis Vantage Pro 2 Wireless (Heated) on a Snow Leopard Mac Mini
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #93 on: June 14, 2012, 03:11:25 AM »
I getting a strange error after my attempt at setting up the templates.  Is it messing up the template with my subdomain redirect?

I get the following when I try hitting my test folder : http://test.nowaitweather.com (nowaitweather.com/test)...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Warning: file_get_contents(http://api.wunderground.com/api/MyAPIKey/geolookup/alerts/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 4

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #94 on: June 15, 2012, 03:08:56 AM »
I getting a strange error after my attempt at setting up the templates.  Is it messing up the template with my subdomain redirect?

I get the following when I try hitting my test folder : http://test.nowaitweather.com (nowaitweather.com/test)...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Warning: file_get_contents(http://api.wunderground.com/api/MyAPIKey/geolookup/alerts/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 4

Yeah, that's due to a configuration setting by your hosting company. Please replace your alerts.php with the file I've attached here and see if it works. If so, I'll roll this into the main template.


nowait

  • Strong Breeze
  • ***
  • Posts: 133
  • Station Details: Davis Vantage Pro 2 Wireless (Heated) on a Snow Leopard Mac Mini
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #95 on: June 15, 2012, 12:21:58 PM »
I uploaded the new alerts.php file and now I see a bunch more of the data (as text) that is being sent by weather cat but at the bottom I get the black graphic with this message instead:

L$


Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 15

my test page is http://test.nowaitweather.com

I can't hardly wait to get this working!  Thanks for your help.

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #96 on: June 16, 2012, 02:14:31 AM »
I uploaded the new alerts.php file and now I see a bunch more of the data (as text) that is being sent by weather cat but at the bottom I get the black graphic with this message instead:

L$


Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 15

my test page is http://test.nowaitweather.com

I can't hardly wait to get this working!  Thanks for your help.

Hmmm. Looks like your PHP install doesn't have the json_decode() function installed. Can you upload this file to your server and post either a link or a screenshot of its output? Also, who's your hosting company?

There's workarounds for it but I'd like to see what your server is capable of before I get to modifying things too extensively.

Also, what happens if you open header.php and delete the line that says

Code: [Select]
<?php include("alerts.php");?>

This will remove the WX alert function from the template. If that lets the rest of the template work, then that's at least a start.

Thanks.

nowait

  • Strong Breeze
  • ***
  • Posts: 133
  • Station Details: Davis Vantage Pro 2 Wireless (Heated) on a Snow Leopard Mac Mini
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #97 on: June 16, 2012, 02:31:41 AM »
My web host is GoDaddy Linux hosting.

http://test.nowaitweather.com

I have put the phpinfo.php file in place for you -: http://test.nowaitweather.com/phpinfo.php

Taking the alert line out of the header.php file produces most of the first screen but still with errors and A lot of data (text) that starts at the top of the page and at the bottom the weather page is shown...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Warning: file_get_contents(http://api.wunderground.com/api/7524fdd0a96bd397/geolookup/forecast/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/forecast.php on line 3

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #98 on: June 16, 2012, 02:37:53 AM »
My web host is GoDaddy Linux hosting.

http://test.nowaitweather.com

I have put the phpinfo.php file in place for you -: http://test.nowaitweather.com/phpinfo.php

Taking the alert line out of the header.php file produces most of the first screen but still with errors and A lot of data (text) that starts at the top of the page and at the bottom the weather page is shown...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Warning: file_get_contents(http://api.wunderground.com/api/7524fdd0a96bd397/geolookup/forecast/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/forecast.php on line 3

Oh boy. You've got PHP4 there but the template needs PHP5. Looks like it may be possible to upgrade to PHP5 though. Take a look at http://support.godaddy.com/help/article/3937/viewing-or-changing-your-php-language-version and see if you can update your PHP to 5. PHP4 is getting pretty long in the tooth these days.

nowait

  • Strong Breeze
  • ***
  • Posts: 133
  • Station Details: Davis Vantage Pro 2 Wireless (Heated) on a Snow Leopard Mac Mini
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #99 on: June 16, 2012, 03:07:20 AM »
Good Catch. I am now upgraded to PHP 5.3 and most of the page shows up.  I put your original header.php back in place.
There are some values that are not resolved (like stats for yesterday and yearly stats.  I don't understand all the weather station text that fills the top of the page... Is this debug information?

Thanks

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #100 on: June 16, 2012, 03:44:25 AM »
Good Catch. I am now upgraded to PHP 5.3 and most of the page shows up.  I put your original header.php back in place.
There are some values that are not resolved (like stats for yesterday and yearly stats.  I don't understand all the weather station text that fills the top of the page... Is this debug information?

Thanks

No that shouldn't be showing like that. It looks like something is still amiss with the wctags.php file.I'm not at the computer right now but I'll take a closer look tomorrow.

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #101 on: June 16, 2012, 07:36:08 PM »
Good Catch. I am now upgraded to PHP 5.3 and most of the page shows up.  I put your original header.php back in place.
There are some values that are not resolved (like stats for yesterday and yearly stats.  I don't understand all the weather station text that fills the top of the page... Is this debug information?

Thanks

I think your wctags.php file is messed up somehow. Replace your wctags.php with the one attached here and let weathercat process and upload it to your site. Hopefully that'll get the rest of these errors fixed.

nowait

  • Strong Breeze
  • ***
  • Posts: 133
  • Station Details: Davis Vantage Pro 2 Wireless (Heated) on a Snow Leopard Mac Mini
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #102 on: June 16, 2012, 08:23:47 PM »
That seemed to be the ticket!

Now to do some customization....  I need to add my graphs in.

Thanks for all your patience and help.

nowair

tigers

  • Gentle Breeze
  • **
  • Posts: 79
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #103 on: June 16, 2012, 08:30:04 PM »
That seemed to be the ticket!

Now to do some customization....  I need to add my graphs in.

Thanks for all your patience and help.

nowair

Cool, glad it's working now. Hope you enjoy it.

xtommo

  • Gentle Breeze
  • **
  • Posts: 48
  • Station Details: LaCrosse WS2355 on iMac 2.66GHz Intel Core 2 Duo
Re: Ajaxeline AJAX and PHP template. Beta release available.
« Reply #104 on: June 29, 2012, 06:45:10 AM »
is there a way to make the page just display the heat index and windchill thats calculated by weathercat? there are tags to display heat index and wind chill in the wctags.php but im not sure how to use them instead of the calculated values. i have never had anything dosplay for those, its always reading N/A