Weatherbug XML API (tweaked)

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

Moderators: Developers, Moderators

Post Reply
MaffooClock
Posts: 17
Joined: Wed Jul 12, 2006 11:25 pm

Weatherbug XML API (tweaked)

Post by MaffooClock »

This is a set of templates based on the project from this post:
http://forums.cacti.net/viewtopic.php?p=94468

I edited the php script to gather additional data, and modified the graph templates to match. The original author had a graph called "Various", and I didn't like it, so I separated them all out to separate graphs.

Live demo:
http://webservices.divergentsystems.com ... &tree_id=5
Attachments
wxbugapi.tar.gz
(12.92 KiB) Downloaded 277 times
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

This has the data that i am looking for. two questions. should i uninstall the existing Weatherbug stuff that i have?

Also, what do i do with the key that they sent me? where do i use that?

app

****EDIT****
I deleted the old WeatherBug stuff anyway. I am trying to import the cacti_graph_template_weatherbug_api_temperature.xml and I am getting an XML Parse Error, any thoughts on what is creating that?

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
zaman
Posts: 18
Joined: Fri Oct 07, 2005 1:33 pm

Post by zaman »

Hi,

Seems Temperature template is not working. It returns XML Perse Error while trying to import it. All other templates were imported successfully.

Could you please re-export and post temperature template?

Thanks
paulbeard206
Cacti User
Posts: 150
Joined: Sat Jul 30, 2005 2:15 pm

Post by paulbeard206 »

zaman wrote:Hi,

Seems Temperature template is not working. It returns XML Perse Error while trying to import it. All other templates were imported successfully.

Could you please re-export and post temperature template?

Thanks
The error I found was on line 36. Looks like an infinity symbol before the F. See if that fixes it for you.
paulbeard206
Cacti User
Posts: 150
Joined: Sat Jul 30, 2005 2:15 pm

Re: Weatherbug XML API (tweaked)

Post by paulbeard206 »

MaffooClock wrote:This is a set of templates based on the project from this post:
http://forums.cacti.net/viewtopic.php?p=94468

I edited the php script to gather additional data, and modified the graph templates to match. The original author had a graph called "Various", and I didn't like it, so I separated them all out to separate graphs.

Live demo:
http://webservices.divergentsystems.com ... &tree_id=5
The live demo isn't any longer. and I don't really know how to use these templates. they all imported fine, once I fixed the bug in the temperature one (there was also a glitch on the php script). But my previous weather monitoring system just used a dummy host as placeholder for the graph. How does your system work? I don't have a "WeatherBug" host type to use.
Attachments
patch.zip
The attached patch should help.
(694 Bytes) Downloaded 167 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests