added templating to google gadget xml file in monitor-server; previously it
[monitor.git] / web / MonitorWeb / monitorweb / static / xml / gadget.xml.in
diff --git a/web/MonitorWeb/monitorweb/static/xml/gadget.xml.in b/web/MonitorWeb/monitorweb/static/xml/gadget.xml.in
new file mode 100644 (file)
index 0000000..66ec12e
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Module>
+<ModulePrefs title="MyOps Summary PLC_NAME" title_url="http://PLC_WWW_HOSTNAME">
+<Require feature="dynamic-height"/>
+</ModulePrefs>
+<Content type="html"><![CDATA[
+<div id="content_div"></div>
+<script type="text/javascript">
+var displaycontent = function (responseText) {
+       _gel('content_div').innerHTML = responseText; 
+       _IG_AdjustIFrameHeight();
+};
+_IG_FetchContent('http://MONITOR_HOSTNAME/monitor/summary', displaycontent, { refreshInterval: 300 }); 
+</script>
+]]></Content>
+</Module>