Weather via wxer.pl - Weather conditions
Moderators: Developers, Moderators
Hello there - thanks for the work on this script...it works great from the CLI:
However, when I try and add it as a data imput method and add a input field , I get this:
Any ideas?
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:
Code: Select all
Error: This script appears to have no input values, therefore there is nothing to add.
I've made a couple small modifications to the script to handle a couple anomolies in the Weather Undergound data.
I inserted that just above the "# print output" comment.
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 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=
let me know if you want any changes made.
script and templates are here: http://forums.cacti.net/viewtopic.php?t ... highlight=
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:
Anyone having the same..?
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
This is my sick nature...
Same herehbokh 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:Anyone having the same..?Code: Select all
Error, calling get_weather() failed: No matching places found
Bummer..!Supernico wrote:Same here
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...
Yep, me too, since Sept 6.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:Anyone having the same..?Code: Select all
Error, calling get_weather() failed: No matching places found
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
-
- Cacti User
- Posts: 87
- Joined: Fri Mar 09, 2007 12:35 pm
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?
Anyone have any tips?
Who is online
Users browsing this forum: No registered users and 2 guests