Are there any examples for tables used in Webserver Plug-in?
Posted: Mon Apr 27, 2015 7:19 pm
Assuming that it's possible, of course. I have a bunch of tables in EG that keeps track of temperatures from the sensors in the house. So the rooms are numbered from 1-13 (plus a few sensors in the refridgerator, the walk in-refridgerator and the freezer), and I have a HTML table that shows each room, the current temp, the time this temp came in, signal of the sensor, the heater status (on/off), the set temperature that I'm trying to keep in that room (where half a degree above turns off the heater, and half a degree below turns it on), and finally the alarm temperature (frost guard for regular rooms, high temp for frezer and fridges). In addition to that I have a couple of frames with the weather forecast for the next 24 hours and the next 7 days. The code is something like this:
So I have this chunk of code for every room. Is it possible to make this into a dynamic table created by the EG webserver, so I can only define the line, and then the different variables are filled for all the rooms that are in the table?
Code: Select all
<tr>
<td align="left" nowrap><span style="font-family:arial;font-size:200%;color:black;text-align:left"> <a href="http://my_website_for_climate-reports.com/indoors.html">{{eg.globals.Rom[1]}}</a></span></td>
<td align="center" nowrap><div align="center"><span style="font-family:arial;font-size:200%;color:black;text-align:left">{{eg.globals.Romtemperatur['1']}}</span></div></td>
<td nowrap><span style="font-family:arial;font-size:200%;color:black;text-align:left"> {{eg.globals.Tid['1']}}</span></td>
<td align="center"><div align="center"><span style="font-family:arial;font-size:200%;color:black;text-align:left">{{eg.globals.Signal['1']}}</span></div></td>
<td align="center"><span style="font-family:arial;font-size:200%;color:black;text-align:left"><img src="{{eg.globals.NettsideOvn['1']}}" alt="" width="25" height="25"></span></td>
<td align="center"><span style="font-family:arial;font-size:200%;color:black;text-align:left">{{eg.globals.Termostatemperatur['1']}}</span></td>
<td align="center"><span style="font-family:arial;font-size:200%;color:black;text-align:left">{{eg.globals.Alarmtemperatur1['1']}}</span></td>
</tr>