egarnel wrote:I am experimenting with the overlibgraph option on the nodes. I want the pop up to display some info about the device in a similar fashion as the monitor plugin. Right now I have it pointing to a static page, but all I see on the overlib popup is a broken graphic and no other info. the overlib works fine on the links. The logs do not indicate anything out of the ordinary.
thanks for your help.
That's because it needs to be an image. Whatever you put in there is put straight into an HTML <IMG SRC="">. When you point it at a static page, your browser tries to figure out what kind of image that is, and gives up.
Right now, you'd need to make some kind of script to produce an image from your information. I
think imagemagick might render a text file to a PNG, so that's a possibilty...
hehe. it does! Try something like:
Code: Select all
convert -trim test.txt public_html/test.png
to get a cropped, black-on-white png of the text in test.txt. I've attached a dummy one. That's almost useable, and it'd be a 10-line shell/awk script to make them.
The real answer is to allow embedable HTML in the overlib stuff, but that means having some kind of HTTP client in weathermap, as well as being sure that the HTML fragments that were fetched are valid. Most things will produce a complete page, which isn't valid.