cloudy

Author Topic: NEW Air Quality Script for Carterlake Template (RSS Version)  (Read 7601 times)

0 Members and 1 Guest are viewing this topic.

Offline minglegs

  • Bob
  • Posts: 34
  • Sandown, NH
    • Sandown Weather
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #90 on: February 21, 2011, 02:05:56 PM »
I just tried pushing it up 'out of the box' - no changes.
Then commented out all of the 'requires' and 'includes' with the same result
The new file is at: http://sandownweather.com/wxaqirssTest.php

Not beign very familiar with PHP I'm not sure how much I can remove without disaster (although, I suppose I'm already there   :( )

I've attached the modified file.
Thanks for the help! I really appreciate it!



Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #91 on: February 23, 2011, 12:20:52 PM »
Minglegs,

I see you've got it sorted in the "other" forum, so I've deleted my assistance posts as they would've not contributed to anyone else.

Michael
Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com


Offline minglegs

  • Bob
  • Posts: 34
  • Sandown, NH
    • Sandown Weather
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #92 on: February 23, 2011, 10:36:30 PM »
Hey Michael,
Thanks for getting back to me and I'm sorry for not getting back to you.
Yes! I got it working....was a PHP5 thing. I'm still a newbe and am just learning PHP so had no idea! Enabling PHP5 with my provider (1and1) did the trick!
Of course, in retrospect, it makes sense now that others were able to use my script unchanged and it worked perfectly  #-o

Being new at this, I'm also trying to figure out the forums....both have been extremely helpful and it is difficult to know which one to go to with a problem / question.
As I mentioned to Ken from Saratoga all you guys do a great job bringing newbes like me along. Makes it a much more enjoyable trip!

....and the scripts etc. you guys develop / share are awesome. I'm hoping to be able to contribute some of my own after I've developed the experience!
Thanks Again!
Bob





Offline mth

  • Posts: 1,438
  • Baltimore, Maryland
    • Relay, Maryland Weather Source
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #93 on: February 23, 2011, 10:44:39 PM »
Bob,

Not a problem, I just wanted to be sure I didn't create any confusion with my posts... :)

I'm glad you got it sorted! 

Regards,
Michael
Michael Holden
Relay, Maryland Weather Station
http://www.relayweather.com


Offline n7xrd

  • Posts: 777
  • Steve
  • Renton,Wa.
    • Renton,Wa. Weather
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #94 on: December 04, 2011, 03:03:33 PM »
Im getting an error I need help with??

PHP Notice: Use of undefined constant imagesDir - assumed 'imagesDir' in C:\Server\wdisplay\web\wxaqirss.php on line 351(Resolved)
needed to change all these tags from ${imagesDir} this to this  ${"imagesDir"}
« Last Edit: December 04, 2011, 11:20:16 PM by n7xrd »

Offline tman1991

  • Posts: 404
  • Tucson, AZ (US)
    • Countryside Manor
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #95 on: December 24, 2011, 11:13:02 PM »
Class 'DOMDocument' not found  error????  Did something change?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #96 on: December 25, 2011, 12:03:49 AM »
Does your server have DOM/XML enabled ? You should see that in phpinfo(). 

Offline tman1991

  • Posts: 404
  • Tucson, AZ (US)
    • Countryside Manor
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #97 on: December 25, 2011, 12:07:54 AM »
I have no idea.. i dont have a telnet ability.. so i've sent an email.

« Last Edit: December 25, 2011, 12:29:39 AM by tman1991 »

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #98 on: December 25, 2011, 12:11:57 AM »
Run this

<?php
phpinfo();
?>

You should see a DOM section

Offline tman1991

  • Posts: 404
  • Tucson, AZ (US)
    • Countryside Manor
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #99 on: December 25, 2011, 12:29:01 AM »
yeah no DOM section
« Last Edit: December 25, 2011, 01:48:05 AM by tman1991 »

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #100 on: December 25, 2011, 12:38:13 AM »
Check your PM

Offline Matthew Conklin

  • Signature 1
  • Posts: 50
  • South Turner, Maine
    • South Turner Maine Weather
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #101 on: December 26, 2011, 07:27:58 PM »
Hey Guys, I am having issues getting the get_aqi_rss.php to run correctly to put it on my dashboard. I am using the Alternative Dashboard newest version and i can see that it is there and showing but i can not get the get_aqi_rss.php to run is there anything that i am doing wrong?

Matt
Matthew Conklin
Robert Conklin
Webmasters
www.southturnermaineweather.com
CoCoRAHS
SkyWarn observer
Weather Display Ver. 10.37 b51

Offline tman1991

  • Posts: 404
  • Tucson, AZ (US)
    • Countryside Manor
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #102 on: December 26, 2011, 07:47:34 PM »
the "get" script actually doesnt do anything visible, it just makes calls..  if you want to see something visible u need to run wxaqirss.php or call it out like in the dashboard is doing..

Offline Matthew Conklin

  • Signature 1
  • Posts: 50
  • South Turner, Maine
    • South Turner Maine Weather
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #103 on: December 26, 2011, 07:49:14 PM »
I got it to show on the dashboard. the get script was wrong so i had to get a newer one.
Matthew Conklin
Robert Conklin
Webmasters
www.southturnermaineweather.com
CoCoRAHS
SkyWarn observer
Weather Display Ver. 10.37 b51

Offline tman1991

  • Posts: 404
  • Tucson, AZ (US)
    • Countryside Manor
Re: NEW Air Quality Script for Carterlake Template (RSS Version)
« Reply #104 on: December 26, 2011, 07:54:34 PM »
i have 2 versions also..  not sure which one is correct since my webserver is working on getting XML-DOM installed for me..    the difference is this code:

if ($realValue1) {
   $dashbrdAQI = "<span style=\"font-size: 100%; color: black; font-weight:bold;\">Current AQI</span>
               <span style=\"font-size: 125%; color: black; font-weight:bold;\"><br /><br />" .$realValue1."</span>
   <br />";
   $showGI = 1;   
}
else {
   $dashbrdAQI = "<span style=\"font-size: 100%; color: black;\">Data Not<br />Available</span>";
   $showGI = '';   
}


not sure if its needed or not.