|
|
| Author |
Message |
nedo Cacti User
Joined: 16 Nov 2006 Posts: 60
|
Posted: Tue Jan 30, 2007 10:22 am Post subject: Tiles weathermap ? |
|
|
Ok has this been done or did anyone write a patch where you can split up the weathermap into tiles and then have the zoom capability into each tile and perhaps so that i can write a small script where the internet explorer would switch every 15 sec between screens
I have about 120 devices and i am monitoring it on a 74 inch screen and the map is so small and i cant hire the resollution
I am sure its possible maybe a hint would be a start
thanks
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Tue Jan 30, 2007 11:12 am Post subject: |
|
|
| The version of Weathermap that comes with CactiEZ .2 has the ability to scan through your maps on varying intervals. You could create submaps of each area and have it display each one in any order you select.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Jan 30, 2007 11:44 am Post subject: Re: Tiles weathermap ? |
|
|
| nedo wrote: | Ok has this been done or did anyone write a patch where you can split up the weathermap into tiles and then have the zoom capability into each tile and perhaps so that i can write a small script where the internet explorer would switch every 15 sec between screens
I have about 120 devices and i am monitoring it on a 74 inch screen and the map is so small and i cant hire the resollution
I am sure its possible maybe a hint would be a start
thanks |
What would the zoom do?
Making the tiles of a larger map is not too hard, but it seems to me that if you can't see the whole map, then what's the point in having it all in one map like that? You'll just get arrows disappearing off the side of the screen to 'somewhere or other'...
As streaker69 says, you can make seperate maps and cycle between them every 15 seconds already.
|
|
| Back to top |
|
 |
nedo Cacti User
Joined: 16 Nov 2006 Posts: 60
|
Posted: Tue Jan 30, 2007 1:53 pm Post subject: |
|
|
Here the thing i am running weathermap 0.82 i have a huge map and a huge tv monitor like 74 inch insane ..anyways i would like to separeate them into multiple tiles so i can display the them in a rotating matter the doesnt have to have a zoom but its like a zoom when you click on onbe of the tiles
Do you know where i can edit this or a have a template to make this thing work also do you have to restart the server itself where cacti is running when you add a background image or icon in the shared images of weathermap ??
thanks
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Jan 30, 2007 5:32 pm Post subject: |
|
|
| nedo wrote: | Do you know where i can edit this or a have a template to make this thing work also do you have to restart the server itself where cacti is running when you add a background image or icon in the shared images of weathermap ??
|
Sure, you just make the smaller maps - limit the size to the native resolution of your projector. Then you can click on the Weathermap tab in Cacti and then on 'automatically cycle between full-size maps' in the top-right corner. If you want them to cycle more quickly, go to the Cacti Settings menu (bottom of the left-hand menu) and then the Misc tab, where you can change the cycle time.
There isn't a magic 'split this map into lots of smaller maps' option though, if that's what you mean.
Images for background and icons should work without a restart. Don't forget that the maps are only regenerated every poller cycle, so if you refer to the icon in a map, it may take up to five minutes for the redraw to happen. If the icon still doesn't show up, check that the file is readable by whichever user runs the poller process, and if it still doesn't show up, have a look in the Cacti log for lines starting WEATHERMAP, which should help you figure out what is wrong.
|
|
| Back to top |
|
 |
nedo Cacti User
Joined: 16 Nov 2006 Posts: 60
|
Posted: Sat Feb 03, 2007 3:14 pm Post subject: |
|
|
"Sure, you just make the smaller maps"
How do you make smaller maps i am creating maps in editor.php web interface unless i have to create multiple maps redo everything over again seperate my orginal map into 4 smaller maps created in plugins/weathermap/editor.php and then turn on the automatic cycle each map which is prrtty cool by the way.
is that about right ??
where else would you create these maps
also for adding my background weathermap image there is a bunch of sample images in image folder i copied it into simple.cfg file with BACKGROUND image file which is y the way png image and it still doesnt appear?? i also decrease the poller time for automatic but still no image appears
thanks
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Feb 05, 2007 10:30 am Post subject: |
|
|
| nedo wrote: | "Sure, you just make the smaller maps"
How do you make smaller maps i am creating maps in editor.php web interface unless i have to create multiple maps redo everything over again seperate my orginal map into 4 smaller maps created in plugins/weathermap/editor.php and then turn on the automatic cycle each map which is prrtty cool by the way.
is that about right ??
where else would you create these maps
also for adding my background weathermap image there is a bunch of sample images in image folder i copied it into simple.cfg file with BACKGROUND image file which is y the way png image and it still doesnt appear?? i also decrease the poller time for automatic but still no image appears
thanks |
Yes, use the editor to recreate your one big map into 4 individual maps.
Howie, would it be possible to code something like this into the new version? Where you could create an endpoint that's clickable to take you to next map in the line?
| Description: |
|
| Filesize: |
15.97 KB |
| Viewed: |
2684 Time(s) |

|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Feb 05, 2007 11:51 am Post subject: |
|
|
| nedo wrote: |
How do you make smaller maps i am creating maps in editor.php web interface unless i have to create multiple maps redo everything over again seperate my orginal map into 4 smaller maps created in plugins/weathermap/editor.php and then turn on the automatic cycle each map which is prrtty cool by the way.
is that about right ??
|
Yes, that is what I meant.
| nedo wrote: |
where else would you create these maps
|
Actually, I have made a special script to do this job today, just because it sounded interesting to do. I've attached it to this post. To use it, you need to edit the first few lines and change the name of the config file you want to split, and then what size you want the pieces to be (i.e your screen resolution). Save the script to the weathermap directory (it uses other parts of weathermap code) and rename it without the .txt, then open a shell window in that directory and run php split-maps.php, and it will produce a series of smaller map config files for you (you might be able to run it by going to http://your.server/cacti/plugins/weathermap/split-map.php in a web browser, but I haven't tried that).
It will remove any background image (it's the wrong size), and any links that cross between maps (because the node at one end is deleted now). It doesn't change KEYPOS. It does save most of the work though.
| nedo wrote: |
also for adding my background weathermap image there is a bunch of sample images in image folder i copied it into simple.cfg file with BACKGROUND image file which is y the way png image and it still doesnt appear?? i also decrease the poller time for automatic but still no image appears |
OK - the 'automatic' thing is nothing to do with how fast maps are recalculated - it ONLY affected the 'cycle maps' page reloading. Maps are always recalculated at the same time that Cacti polls for data (usually every 5 minutes).
The Background problem: what does the BACKGROUND line look like your map config file? Have you looked in the Cacti log for any errors? If you put the background image into the images/ directory, then your BACKGROUND line should look like:
| Code: | | BACKGROUND images/mybackground.png |
| Description: |
|
 Download |
| Filename: |
map-split.php.txt |
| Filesize: |
2.28 KB |
| Downloaded: |
182 Time(s) |
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Feb 05, 2007 11:55 am Post subject: |
|
|
| streaker69 wrote: | | Howie, would it be possible to code something like this into the new version? Where you could create an endpoint that's clickable to take you to next map in the line? |
You can do it right now. Just set the INFOURL to be the page for the other map:
| Code: |
NODE nextmap
LABEL Next Map
INFOURL weathermap-cacti-plugin.php?action=viewmap&id=10
|
(or whatever ID map you want)
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Feb 05, 2007 12:02 pm Post subject: |
|
|
| Howie wrote: | | streaker69 wrote: | | Howie, would it be possible to code something like this into the new version? Where you could create an endpoint that's clickable to take you to next map in the line? |
You can do it right now. Just set the INFOURL to be the page for the other map:
| Code: |
NODE nextmap
LABEL Next Map
INFOURL weathermap-cacti-plugin.php?action=viewmap&id=10
|
(or whatever ID map you want) |
I was working with it, and figured it was the INFOURL but I couldn't figure out the URL to use to pull up the map.
|
|
| Back to top |
|
 |
nedo Cacti User
Joined: 16 Nov 2006 Posts: 60
|
Posted: Fri Feb 16, 2007 12:29 pm Post subject: |
|
|
Hey people that is a pretty usefull info about the tiles you gave me but the problem is that i dont have and i dont know where all my objects are located should be in weathermap-0.82/something but its not i have weathermap running i just dont know where the file is located on the server on cacti its probebly s plugin on cacti when i initally installed it but cant find the files to see all the nodes i added on editor
please does anyone know how i can serach this
thanks
|
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Fri Feb 16, 2007 3:44 pm Post subject: |
|
|
| nedo wrote: | Hey people that is a pretty usefull info about the tiles you gave me but the problem is that i dont have and i dont know where all my objects are located should be in weathermap-0.82/something but its not i have weathermap running i just dont know where the file is located on the server on cacti its probebly s plugin on cacti when i initally installed it but cant find the files to see all the nodes i added on editor
please does anyone know how i can serach this
thanks |
Config files for Weathermap are normally under /plugins/weathermap/configs.
You can open the editor at
http://<yourserver>/plugins/weathermap/editor.php
If they're not there, then try using the locate command.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Fri Feb 16, 2007 5:11 pm Post subject: |
|
|
| streaker69 wrote: | | nedo wrote: | Hey people that is a pretty usefull info about the tiles you gave me but the problem is that i dont have and i dont know where all my objects are located should be in weathermap-0.82/something but its not i have weathermap running i just dont know where the file is located on the server on cacti its probebly s plugin on cacti when i initally installed it but cant find the files to see all the nodes i added on editor
please does anyone know how i can serach this
thanks |
Config files for Weathermap are normally under /plugins/weathermap/configs.
You can open the editor at
http://<yourserver>/plugins/weathermap/editor.php
If they're not there, then try using the locate command. |
Also, if you can load the config file in the editor, then there is a button at the bottom in the yellow debug section that lets you get a copy of the config file. You still need to know where they live to put the split copies back though.
|
|
| Back to top |
|
 |
nedo Cacti User
Joined: 16 Nov 2006 Posts: 60
|
Posted: Sat Feb 17, 2007 12:32 am Post subject: |
|
|
ok i found where the config file where thanks it was in some wired place
Problem with cycling weathermap--
But my original file ends in index.php and the rest sub maps are .conf i go into wmap tab on cacti hit the automatical cycle but the weathermap all the weathermap display on one page thats not what i want, i thought it would cycle every 30 sec cause thats what i set the poller to. How do i set so that one map is being dispalyed on cacti and would change to another map after the poller cycle i dont know if the extension are disabling me to do this should i name each map extension with .php
Also the image background file example they have in example subfolder i set as background but its not fully dislpayed it cuts my weathermap in half i tryed changing the width and length of the png file but no luck
i dont know if the background pic is too small or??
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Feb 20, 2007 8:18 am Post subject: |
|
|
| nedo wrote: |
Problem with cycling weathermap--
But my original file ends in index.php and the rest sub maps are .conf i go into wmap tab on cacti hit the automatical cycle but the weathermap all the weathermap display on one page thats not what i want, i thought it would cycle every 30 sec cause thats what i set the poller to. How do i set so that one map is being dispalyed on cacti and would change to another map after the poller cycle i dont know if the extension are disabling me to do this should i name each map extension with .php
|
I don't understand what you mean about index.php... You go to Weathermaps, then click on Automatically Cycle maps. If the maps are being generated properly (no 'Not Yet Created') then that should just work, with full sized maps.
It is not the poller cycle you need to change. It is
Console->Settings->Misc->Map Rendering Interval
Changing the poller interval will cause problems with your Cacti, if you are not careful.
| nedo wrote: |
Also the image background file example they have in example subfolder i set as background but its not fully dislpayed it cuts my weathermap in half i tryed changing the width and length of the png file but no luck
i dont know if the background pic is too small or?? |
You can't specify a WIDTH and HEIGHT for the map if there is a BACKGROUND. If you have a background image, your map will always be the same size as the background image. If the background isn't big enough, get a bigger image, or resize it in GIMP/Photoshop/whatever, or take the background out, and use WIDTH/HEIGHT to size the map.
|
|
| Back to top |
|
 |
|