Problem showing maps on LCD TV

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Problem showing maps on LCD TV

Post by juliop »

Hi all, hope someone can help me to solve this.
I am showing a weathermap on the LCD TV in my office so we can take a look on whats going on the network.

Everything goes fine, but after an hour or so the screen scroll up and i have to adjust it again. How can a i fix this ? Im using Firefox to show the wathermaps.
I add some pics to show the problem.

What i see:
problem.JPG
problem.JPG (15.35 KiB) Viewed 3287 times
After an hour this happens:
problem1.JPG
problem1.JPG (20.53 KiB) Viewed 3287 times

Sorry for my english. :oops:

Thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Problem showing maps on LCD TV

Post by Howie »

The tabs are normally missing for you?

I don't understand your pictures...
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!)
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Re: Problem showing maps on LCD TV

Post by juliop »

Sorry, i will try to explain it better:

If i dont manually hide the tabs the maps doesnt fit in the screen well. I take some more pics. I hide tabs using the scroll bar...

Normal view:
DSC00350p.JPG
DSC00350p.JPG (91.78 KiB) Viewed 3282 times


after some page refreshs...
DSC00351p.JPG
DSC00351p.JPG (131.57 KiB) Viewed 3282 times
I didnt know that the normal way to show the maps is including tabs.
tosage
Cacti User
Posts: 164
Joined: Wed Jul 28, 2010 5:05 am
Location: France

Re: Problem showing maps on LCD TV

Post by tosage »

Maybe when the cacti cut your connection and he should connect you with the guest login ?
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Problem showing maps on LCD TV

Post by Howie »

The normal way is including tabs.

I would expect that it would refresh more often than every hour, too.

I will try to add something for the next version to do real full screen maps, for you.
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!)
strikeph
Posts: 1
Joined: Thu May 28, 2009 1:25 pm

Re: Problem showing maps on LCD TV

Post by strikeph »

You've got a lot of space on your page. Maybe you could make the height of your graphic smaller, so the picture and tabs would show, without haveing to tweek it. That's what I've done with mine.
stvlange
Posts: 7
Joined: Tue Sep 20, 2011 11:58 am

Re: Problem showing maps on LCD TV

Post by stvlange »

If you manually run the rebuild php script with:
php weathermap-cacti-rebuild.php

You can see the image files that are generated. Then simply create a symbolic link from the directory to where they are stored and display that image file on your LCD. Takes cacti out of the equation. We use this .php script to cycle between a number of different urls. Work pretty well.

cycle.php code:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title></title>
<style type="text/css">
body, html { background-color:black; margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }
iframe { border: none; }
</style>
<script type="text/javascript">
var Dash = {
    nextIndex: 0,

    dashboards: [
        {url: "http://yourdomain.com/weathermap.png", time: 5},
        {url: "URL-2", time: 10},
        {url: "URL-3", time: 20},
        {url: "UrL-4", time: 5}
    ],

    display: function()
    {
        var dashboard = Dash.dashboards[Dash.nextIndex];
        frames["displayArea"].location.href = dashboard.url;
        Dash.nextIndex = (Dash.nextIndex + 1) % Dash.dashboards.length;
        setTimeout(Dash.display, dashboard.time * 1000);
    }
};

window.onload = Dash.display;
</script>
</head>
<body bgcolor="#000000">
<iframe name="displayArea" width="100%" height="100%"></iframe>
</body>
</html>
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Problem showing maps on LCD TV

Post by Howie »

That will work too! :-)

You might also need to remove/change the .htaccess file in weathermap/output/ directory, depending on which version of weathermap it is. I think some versions might block direct access from the web for that directory.
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!)
jcb
Posts: 29
Joined: Thu May 19, 2011 10:14 pm

Re: Problem showing maps on LCD TV

Post by jcb »

Do not know if it will help, but I had a problem by more or less similar: a large screen (3 x 1.5 m) divided between Weathermap, nagios and google maps. I made a html file and put a refresh in 120 seconds page cacti. The solution works only with Firefox and does not work with IE. When I have a restart then it appears the login screen and the tabs, but soon disappears.
stvlange
Posts: 7
Joined: Tue Sep 20, 2011 11:58 am

Re: Problem showing maps on LCD TV

Post by stvlange »

This is what my symbolic link looks like, I created it in an area that a normal web user could get to.

Code: Select all

lrwxrwxrwx  1 root     root         65 2011-05-13 12:43 fund-util.png -> /var/www/cacti/plugins/weathermap/output/525b5e07e8cdd979fb16.png
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests