|
|
| Author |
Message |
Alives Cacti User
Joined: 11 Jul 2005 Posts: 103
|
Posted: Tue Aug 09, 2005 1:51 am Post subject: WeatherBug script & templates |
|
|
THIS IS DEPRECATED. NEW THREAD IS HERE:
http://forums.cacti.net/viewtopic.php?t=22691
----------------------------------------------------------------------------
This script monitors 6 different weather variables off the aws weather site. This weather data has thenths of a degree etc and live updates. You must use a special code which can be found from this website: http://www.aws.com/aws_2001/asp/getLiveWeather.asp?msg=1
It is a standard perl html scraper script.
enjoy!
P.S. The results, as you can see, are very accurate. I have another post with AccuWeather scrapes here: http://forums.cacti.net/viewtopic.php?p=38861 which is not as accurate but does have 22 variables.
You need the LWP::Simple perl module installed
| Description: |
|
| Filesize: |
30.92 KB |
| Viewed: |
27674 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
WeatherBug.pl.txt |
| Filesize: |
1.21 KB |
| Downloaded: |
2677 Time(s) |
| Description: |
|
 Download |
| Filename: |
cacti_host_template_weatherbug.xml |
| Filesize: |
37 KB |
| Downloaded: |
2571 Time(s) |
Last edited by Alives on Tue Aug 07, 2007 12:03 pm; edited 4 times in total |
|
| Back to top |
|
 |
mvam Cacti User
Joined: 01 Jun 2005 Posts: 87 Location: Seattle
|
Posted: Tue Aug 09, 2005 1:55 pm Post subject: |
|
|
| looks nice! where are you that its 106 deg? its only 60 here!
|
|
| Back to top |
|
 |
Alives Cacti User
Joined: 11 Jul 2005 Posts: 103
|
Posted: Tue Aug 09, 2005 2:00 pm Post subject: |
|
|
haha... i have it monitoring nyc (where i am), death valley (pictured) and alaska for testing... thats how i caught the wind chill/heat index problem... alaska has wind chill apparently, but death valley has heat index.
I wish weatherbug supplied as much info as accuweather, but im sticking with weatherbug as it has live updates...the graphs look a hell of alot better
|
|
| Back to top |
|
 |
hermatize Cacti User
Joined: 10 Aug 2005 Posts: 55
|
Posted: Wed Aug 10, 2005 6:30 pm Post subject: |
|
|
| Could someone explain in further detail on how to install this script in a cacti n00b and this is exactly what im looking for
|
|
| Back to top |
|
 |
ekgermann
Joined: 11 Aug 2005 Posts: 1
|
Posted: Thu Aug 11, 2005 10:26 am Post subject: |
|
|
Have you considered the WB module on CPAN. It gives access to all their variables.
http://search.cpan.org/~rosulek/Weather-Bug-0.01/lib/Weather/Bug.pm
I've collected about 1.5 years worth of data and it gives you access to just about variable.
One thing to consider on heat index/wc is how to handle a switchover, like here in the midwest where we have both, sometimes in the same week!
Eric
|
|
| Back to top |
|
 |
Alives Cacti User
Joined: 11 Jul 2005 Posts: 103
|
Posted: Thu Aug 11, 2005 11:01 am Post subject: |
|
|
yeah i was originally using that module, but it wasnt giving windchill accurately and seemed to be slightly flawed.
This script pulls exactly what i wanted. im not saying its better. can you post pics of your graphs?
my script handles the switchover by just using that as a 'real feel' temperature. Its all bundled under the heat index title.
|
|
| Back to top |
|
 |
hermatize Cacti User
Joined: 10 Aug 2005 Posts: 55
|
Posted: Fri Aug 19, 2005 11:50 am Post subject: |
|
|
| What do you guys meen when you refer to weather code i have all my graphs up butt no information is polling and the weatherbug device shows down........im a cacti noob i would greatly appreciate some feedback on if im installing this the right way or not. thanks in advance !!!!
|
|
| Back to top |
|
 |
hermatize Cacti User
Joined: 10 Aug 2005 Posts: 55
|
Posted: Thu Sep 01, 2005 6:17 pm Post subject: |
|
|
What do you guys meen by special code could someone give me an example of what they used for input in this section.
Thanks So much in advance !!!!
|
|
| Back to top |
|
 |
hbokh
Joined: 24 Feb 2005 Posts: 37 Location: Groningen, NL
|
Posted: Thu Sep 08, 2005 6:46 am Post subject: |
|
|
| hermatize wrote: | What do you guys meen by special code could someone give me an example of what they used for input in this section.
| You need a so called METAR-code.
Here you can find 3 lists in different formats (clear text, GZ and ZIP - scroll all the way down) --> http://weather.noaa.gov/tg/site.shtml
and search for a place nearby yours inside one of these lists.
As I live in Groningen, Netherlands, my METAR-code would be EHGG, you digg? HTH!
|
|
| Back to top |
|
 |
seveny
Joined: 23 Jun 2005 Posts: 18 Location: Germany
|
Posted: Thu Sep 08, 2005 8:14 am Post subject: |
|
|
I tried to import the template with 0.8.6e but get this:
Error: XML: Hash version does not exist.
--Sven
|
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
|
| Back to top |
|
 |
bendsley
Joined: 30 Aug 2005 Posts: 6
|
Posted: Thu Sep 08, 2005 9:53 am Post subject: |
|
|
Do you add this as a host? If so, what kind?
I have the METAR code, no issue there.
Any directions on how to easily add this info?
|
|
| Back to top |
|
 |
seveny
Joined: 23 Jun 2005 Posts: 18 Location: Germany
|
Posted: Thu Sep 08, 2005 10:00 am Post subject: XML error went away |
|
|
| after upgrading to the cacti-f version - sorry!
|
|
| Back to top |
|
 |
hbokh
Joined: 24 Feb 2005 Posts: 37 Location: Groningen, NL
|
Posted: Sat Sep 10, 2005 3:15 am Post subject: |
|
|
Can somebody confirm that this script can handle negative temperatures in Celsius? I'm using it with the added parameter "Units=1".
Running WeatherBug.pl for 3 days now, every now and then I see it's not getting any data, stopping at the zero-line; what if that same data is e.g. minus 10 degrees Celsius?
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9691 Location: MI, USA
|
Posted: Sat Sep 10, 2005 6:39 am Post subject: |
|
|
You need to modify the template to include a negative minimum value and then "tune" the RRD files. With the "rrdtool tune" function, you can change your existing RRF files MAX and MIN values.
TheWitness
|
|
| Back to top |
|
 |
|