Weatherbug XML API script and templates

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

Moderators: Developers, Moderators

Un4Seen
Posts: 8
Joined: Sat Dec 08, 2012 7:57 pm
Contact:

Re: Weatherbug XML API script and templates

Post by Un4Seen »

Well, I'm afraid I'm not a Cacti expert on that level, but it makes sense to have the bad (imperial) values in the past, since they were collected with the wrong script. Cacti always collects values in the present, what it shows in the past was already collected with those values, so there's not way to change those :)
Y0d4
Posts: 7
Joined: Mon Sep 03, 2012 7:49 am

Re: Weatherbug XML API script and templates

Post by Y0d4 »

ah agree, well i add new "device" :)
And old will hold for records.

Thank you, now is ok! :)
Un4Seen
Posts: 8
Joined: Sat Dec 08, 2012 7:57 pm
Contact:

Re: Weatherbug XML API script and templates

Post by Un4Seen »

Something easier would be great :) But I can't see your images...
groovezog
Posts: 1
Joined: Mon Feb 11, 2013 11:46 pm

Re: Weatherbug XML API script and templates

Post by groovezog »

unforgiven_soldier wrote:Gents, I have mod'd the wbugxml.php to the following (works like a charm)
unforgiven_soldier's code works great, except I can't figure out how to display the text (or icon) from current condition.
Any help would be great.
This doesn't work:

Code: Select all

$out_string .= "currentcondition:" . $stat->{'current-condition'} . " ";
I've done a lot of searching and tried many different versions. I think it has something to do with differentiating between the text contained and the icon attribute....
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests