Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 26, 2019 5:21 pm

All times are UTC - 5 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 90 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: WeatherBug script & templates
PostPosted: Tue Aug 09, 2005 1:51 am 
Offline
Cacti User

Joined: Mon Jul 11, 2005 11:39 am
Posts: 103
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


Attachments:
WeatherBug.pl.txt [1.21 KiB]
Downloaded 3925 times
cacti_host_template_weatherbug.xml [37 KiB]
Downloaded 3697 times
wbug.png
wbug.png [ 30.92 KiB | Viewed 63552 times ]


Last edited by Alives on Tue Aug 07, 2007 12:03 pm, edited 4 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 1:55 pm 
Offline
Cacti User

Joined: Wed Jun 01, 2005 2:00 pm
Posts: 87
Location: Seattle
looks nice! where are you that its 106 deg? its only 60 here!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 2:00 pm 
Offline
Cacti User

Joined: Mon Jul 11, 2005 11:39 am
Posts: 103
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 6:30 pm 
Offline
Cacti User

Joined: Wed Aug 10, 2005 6:29 pm
Posts: 55
Could someone explain in further detail on how to install this script in a cacti n00b and this is exactly what im looking for


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 11, 2005 10:26 am 
Offline

Joined: Thu Aug 11, 2005 10:22 am
Posts: 2
Have you considered the WB module on CPAN. It gives access to all their variables.

http://search.cpan.org/~rosulek/Weather ... her/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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 11, 2005 11:01 am 
Offline
Cacti User

Joined: Mon Jul 11, 2005 11:39 am
Posts: 103
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 19, 2005 11:50 am 
Offline
Cacti User

Joined: Wed Aug 10, 2005 6:29 pm
Posts: 55
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 !!!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 6:17 pm 
Offline
Cacti User

Joined: Wed Aug 10, 2005 6:29 pm
Posts: 55
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 !!!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 6:46 am 
Offline
User avatar

Joined: Thu Feb 24, 2005 4:29 pm
Posts: 40
Location: Groningen, NL
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!

_________________
This is my sick nature...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 8:14 am 
Offline
User avatar

Joined: Thu Jun 23, 2005 9:38 am
Posts: 18
Location: Germany
I tried to import the template with 0.8.6e but get this:

Error: XML: Hash version does not exist.

--Sven


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 9:26 am 
Offline
Cacti User
User avatar

Joined: Wed Jan 14, 2004 3:23 am
Posts: 256
Location: Germany
Alives,

where can I found the special code on http://www.aws.com/aws_2001/asp/getLive ... .asp?msg=1 ?

Pumpi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 9:53 am 
Offline

Joined: Tue Aug 30, 2005 4:05 pm
Posts: 9
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?


Top
 Profile  
 
 Post subject: XML error went away
PostPosted: Thu Sep 08, 2005 10:00 am 
Offline
User avatar

Joined: Thu Jun 23, 2005 9:38 am
Posts: 18
Location: Germany
after upgrading to the cacti-f version - sorry!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 10, 2005 3:15 am 
Offline
User avatar

Joined: Thu Feb 24, 2005 4:29 pm
Posts: 40
Location: Groningen, NL
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?

_________________
This is my sick nature...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 10, 2005 6:39 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
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

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 90 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group