I search script & template for weather graph
Moderators: Developers, Moderators
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
I search script & template for weather graph
Hi
i just finished to install cacti, the graphs work well (memory,network...), i search a script and a template who can make graphs from a .txt file, the data on the file are simple, for example weather.txt:
52,72,1080,15
52 is for temperature, 72 is for humidity, 1080 is for pressure...
the data are from a weather station, if someone can help me.
thanks
i just finished to install cacti, the graphs work well (memory,network...), i search a script and a template who can make graphs from a .txt file, the data on the file are simple, for example weather.txt:
52,72,1080,15
52 is for temperature, 72 is for humidity, 1080 is for pressure...
the data are from a weather station, if someone can help me.
thanks
if on a linux box you can use a bash script and awk the file.
This bash script can be used as the data input method on cacti.
It is quite easy to create a data template and graphs from there onwards.
If you are looking into creating weather graphs why dont yu use the following:
I use this and lot of others are successfully using this.
http://forums.cacti.net/viewtopic.php?t ... ccuWeather
u can also modify the whole thing for u liking
This bash script can be used as the data input method on cacti.
It is quite easy to create a data template and graphs from there onwards.
If you are looking into creating weather graphs why dont yu use the following:
I use this and lot of others are successfully using this.
http://forums.cacti.net/viewtopic.php?t ... ccuWeather
u can also modify the whole thing for u liking
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
the weather data are in the .txt file, i also create a spread sheet doc who explain what are the data:
http://spreadsheets.google.com/pub?key= ... HBITm9h0JQ
http://spreadsheets.google.com/pub?key= ... HBITm9h0JQ
- Attachments
-
- weather-data-cacti.txt
- (28 Bytes) Downloaded 147 times
i had a look at ur data:
"15,10,72,1023,28,36,5,500,14"
do you want all these data to be present on the same graph or seperate ones?
I think you should put them on separate graphs to look it nice, also you can put them on the same graph later on as well.
I can create some templates for this. i am assuming that the data file will be updated via another *external* script.
"15,10,72,1023,28,36,5,500,14"
do you want all these data to be present on the same graph or seperate ones?
I think you should put them on separate graphs to look it nice, also you can put them on the same graph later on as well.
I can create some templates for this. i am assuming that the data file will be updated via another *external* script.
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
ok here it is.
I am posting the weather_scripts.rar file.
Import the XML files using the import feature of cacti.
modify the bash script "print.sh" - with the exact path of ur cacti installation.
and put that script into the scripts dir of cacti.
Also i am attaching sample graphs as well .... Enjoy with a glass of champagne
I am posting the weather_scripts.rar file.
Import the XML files using the import feature of cacti.
modify the bash script "print.sh" - with the exact path of ur cacti installation.
and put that script into the scripts dir of cacti.
Also i am attaching sample graphs as well .... Enjoy with a glass of champagne
- Attachments
-
- weather_scripts.rar
- (26.44 KiB) Downloaded 165 times
-
- graph_image.php.png (17.56 KiB) Viewed 4860 times
-
- graph_image2.php.png (18.75 KiB) Viewed 4860 times
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
-
- Posts: 8
- Joined: Sat Mar 29, 2008 6:34 am
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest