Embed Iframe in weathmap area to show without hovering

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
frostyritz
Posts: 23
Joined: Wed Apr 03, 2013 8:17 pm

Embed Iframe in weathmap area to show without hovering

Post by frostyritz »

I was trying to find a way to embed a HTML section on the page like a live dashboard/realtime stats With the weathermap already there like a iframe of little realtime graphs to show throughput.


thanks
frostyritz
Posts: 23
Joined: Wed Apr 03, 2013 8:17 pm

Re: dashboard Embed Iframe in a weathmap page

Post by frostyritz »

Im trying to do something more like every 10 seconds auto refresh some data to have more Realtime effect.

But instead of NOTES XXXX (iframe hover over as i saw from another post) could I do something like embed the same jquery Iframe concept for LABEL or ICON.

kinda like this
ICON /<iframe width=\"400px\" height=\"350px\" src=\"/plugins/weathermap/realtimedata.php?node={node:this:cactiid}\"> </iframe>

first i thought maybe iframe this
http://1.1.1.1/cacti/plugins/realtime/g ... h_id=24741

But then i was thinking to get more creative with a realtime data since i need to aggregate traffic/stats/healthchecks not exactly this one but something similar.
http://www.jqueryflottutorial.com/tester-10.html

I did something like this to convert a script and go to png and then weathermap. (an cron script but thats only 5 min for stats)

ifconfig | convert -background black -fill white \
-font Helvetica -pointsize 14 \
label:@- cmd.png

though what if i also did somehow built a gif image somehow. Would it show a gif image or is it purely static thumbnail that weathermap shows.

Thanks
frostyritz
Posts: 23
Joined: Wed Apr 03, 2013 8:17 pm

Re: Embed Iframe in weathmap area to show without hovering

Post by frostyritz »

or could there be a way to update weathermaps faster then 5 min like once every minute to refrence some static images that i can change every 45 seconds though it would be cool to throw a GIF that might change too.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Embed Iframe in weathmap area to show without hovering

Post by Howie »

I decided it might be interesting to apporach this from the other direction, instead of adding very specific extras to weathermap. So I started writing a jquery app that lets you position stuff on the page using the CSS, and then reloads each element periodically, according to the periods and URLs that you set. I'll update if I get it working!

I created a repo here for it: https://github.com/howardjones/simple-js-dashboard

Note: it will only update from the same server (say the Cacti server) where the script was originally fetched from, without some server-side proxy script in PHP or similar.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Embed Iframe in weathmap area to show without hovering

Post by Howie »

I got this working today. I'll do a proper write-up and a download for it later, but in this attachment, the two graphs and the uptime are overlaid in other img or div tags, and the javascript reloads each according to its own schedule. Limitations:
1) It all has to come from the same server, unless you write a proxy script for the 'long distance' links
2) For a realtime graph overlay to work, the realtime popup window must remain open, or the realtime poller process doesn't update the data.
3) You can't just use the realtime popup's url as a source URL. That gets you a validation error from cacti. You might be able to have the script load an iframe, but you could do that without the script anyway.

The way I'd use this is as a content page in Superlinks, personally, because that should mean that the Cacti user stays logged in too.
Attachments
Capture.PNG
Capture.PNG (127.53 KiB) Viewed 3969 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
frostyritz
Posts: 23
Joined: Wed Apr 03, 2013 8:17 pm

Re: Embed Iframe in weathmap area to show without hovering

Post by frostyritz »

OH haha i thought of actually using superlinks to embed a page of some sort but love the weathermap organizaion of node/links that i generate since i built only 1 master template i call it and then i plug in the data to my script and poll all diffect RRDs/Links etc etc with it

oh so we cant just embed directly in a NODE/ICON . Cool ill see about trying that out might be kinda interesting if i place it i have 8 graphs on one page so maybe iframes hehe but easier to control on that scenario.
vomijwlm
Posts: 5
Joined: Thu Oct 21, 2010 12:55 am

Gif can be moved in weatermap !!

Post by vomijwlm »

:P
Gif can be moved in weatermap .
Attachments
Honeycam 2017-04-08 10-35-11.gif
Honeycam 2017-04-08 10-35-11.gif (1.21 MiB) Viewed 2817 times
Honeycam 2017-04-08 10-32-03.gif
Honeycam 2017-04-08 10-32-03.gif (550.34 KiB) Viewed 2817 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests