Weather via wxer.pl - Weather conditions

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

This may be a dumb questions, but does this wxer.pl require the underground.pm script??

Thanks
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

Does it generally take a while to populate the data part of the graphs, I get the Underground.pm file, i can run perl against it for my zip, i get data back, but have yet to se that data reflected on the grpahs, still says nan.

Any ideas?

Spoon
anderiv
Posts: 11
Joined: Wed Sep 08, 2004 3:11 pm
Location: Blaine, MN
Contact:

Post by anderiv »

Hello there - thanks for the work on this script...it works great from the CLI:

Code: Select all

$ juke scripts # ./wxer.pl 55434
wx_temp_f:57 wx_wind_speed:4 wx_pressure:29.82 wx_humidity:67 wx_wind_chill_f:
However, when I try and add it as a data imput method and add a input field , I get this:

Code: Select all

Error: This script appears to have no input values, therefore there is nothing to add.
Any ideas?
hypatia
Posts: 17
Joined: Mon Jan 03, 2005 1:28 pm

Post by hypatia »

I've made a couple small modifications to the script to handle a couple anomolies in the Weather Undergound data.

Code: Select all

   # If there is no windchill, set it to the same as temperature
   if ($arrayref->[0]->{windchill_fahrenheit} == '') {
      $arrayref->[0]->{windchill_fahrenheit} = $arrayref->[0]->{temperature_fahrenheit}
   }
   
   # If the Wind is "Calm", set it to 0.
   if ($wx_wind_speed == "Calm") {
      $wx_wind_speed = '0'
   }
I inserted that just above the "# print output" comment.
jcotton
Posts: 27
Joined: Mon Jun 27, 2005 3:58 pm
Contact:

Post by jcotton »

Everything is working. Except for some strange reason, I have no scale on the y-axis in the Barometer graphs. The value is being returned and plotted. Any ideas anyone?
Attachments
barom1.JPG
barom1.JPG (23.01 KiB) Viewed 12307 times
Alives
Cacti User
Posts: 103
Joined: Mon Jul 11, 2005 11:39 am

Post by Alives »

I just finished another weatherbug script. i didnt like the weatherbug module, so i just did an html scraper on my own. i have addressed the wind chill/heat index problem so that shouldnt be a problem now.

let me know if you want any changes made.

script and templates are here: http://forums.cacti.net/viewtopic.php?t ... highlight=
User avatar
hbokh
Posts: 40
Joined: Thu Feb 24, 2005 4:29 pm
Location: Groningen, NL

Post by hbokh »

Seems to me that the script stopped working last night / today... :-?
Something must have changed at "Weather Underground" 'cause even with different placenames I get:

Code: Select all

Error, calling get_weather() failed: No matching places found
Anyone having the same..?
This is my sick nature...
Supernico
Posts: 2
Joined: Mon Jul 11, 2005 4:31 pm

Post by Supernico »

hbokh wrote:Seems to me that the script stopped working last night / today... :-?
Something must have changed at "Weather Underground" 'cause even with different placenames I get:

Code: Select all

Error, calling get_weather() failed: No matching places found
Anyone having the same..?
Same here :(
User avatar
hbokh
Posts: 40
Joined: Thu Feb 24, 2005 4:29 pm
Location: Groningen, NL

Post by hbokh »

Supernico wrote:Same here :(
Bummer..!
Well, in the meantime I've dropped wxer.pl and started using the WeatherBug.pl-script for www.aws.com. That one works (for now).
This is my sick nature...
jarosoup
Posts: 13
Joined: Mon Jan 17, 2005 9:20 pm

Post by jarosoup »

Seems to me that the script stopped working last night / today...
Something must have changed at "Weather Underground" 'cause even with different placenames I get:

Code: Select all

Error, calling get_weather() failed: No matching places found 
Anyone having the same..?
Yep, me too, since Sept 6. :-?
User avatar
Wernicke
Cacti User
Posts: 61
Joined: Tue Jun 08, 2004 3:07 am
Location: Bodø, Norway
Contact:

Post by Wernicke »

Sigh. Same here :|
theph1th
Posts: 7
Joined: Thu Jul 14, 2005 3:18 am

Post by theph1th »

Gone for me on the 6th at about 9pm GMT.
Seems to be totally not talking to wunderground.
Any tips to mod it to work again or best to switch to another script?

Great while it lasted...
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

is it possible to make graph from my own weather station ?, the weather data are on a html page...
Thanks
Visit my web site: http://www.websat-telecom.com
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You would have to utilize the wget command I think. Need a custom script that emulates that of the current output format with some input information. Pretty simple, just need to research. I hope someone has the time.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
hipsterdoofus
Cacti User
Posts: 87
Joined: Fri Mar 09, 2007 12:35 pm

Post by hipsterdoofus »

I'd like to use this info as the weatherbug page doesn't update enough to use the weatherbug plugin...I find that with personal weatherstations and such you can get a lot more results with weather underground; however, there does not seem to be a way to get a windchill/heat index value as shown in examples here.

Anyone have any tips?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests