Code: Select all
['15', 'Temp', 'cell7', 'Outside Temp', 'outTemp'],
Moderator: leecollings
Code: Select all
['15', 'Temp', 'cell7', 'Outside Temp', 'outTemp'],
Same here.leecollings wrote:I don't know if I'm doing something wrong, but I can't see how I can add the donut displays? I can show the data from an outside temperature.. but it doesn't show any donut chart, just the readout.That's what's set in settings.js, but it just shows the data readout in the lower half of the long box.Code: Select all
['15', 'Temp', 'cell7', 'Outside Temp', 'outTemp'],
Code: Select all
['785', 'Temp', 'cell10', 'Temperatuur Garage', 'buiten', '#C0382B'],
['785', 'LastUpdate', 'cell100', 'Temperatuur Garage'],
I was wonderding the same thing, after some getto coding got it workingwoody4165 wrote:Hicodesnipper wrote:I added code for data from Netatmo and other devices that give multiple results in one string - eg. "20 C, 45 %, 1234 hPA". Code strips this data, and data's labels ( "Temp + Humidity + Barometer") from json and give each one in this form:
<div class="Temp">20*C</div>
...
I am getting mad on how to define and pass multiple data like in the example above.
Starting from default, I have some questions...
should I change the frontpage.html to create a special cell?
How can I modify the image (like the megaphone one) to have others?
In the settings.js how should I pass the multiple value to be in the same cell?
is there a place in the code where it put hPa if type is Barometer, % if Humidity and so on?
I read the 3d but I haven't find it.
Thanks
Woody
Code: Select all
['20', 'Data', 'cell91', 'Netatmo'], // Temp + Humidity + Baro
['21', 'Data', 'cell92', 'Netatmo'], // Air Quality
['22', 'Data', 'cell93', 'Netatmo'], // Db
['20', 'LastUpdate', 'cell94', 'Netatmo'], // Updated
Code: Select all
<div class="col-sm-3 col-lg-3">
<div class="dash-unit">
<dtitle id="desc_cell91"></dtitle>
<hr>
<div class="info-user">
<span aria-hidden="true" class="info-user"></span>
</div>
<div style="text-align:center;font-size: 20px" id="cell91"></div>
<!--<br/>-->
<div style="text-align:center;font-size: 20px" id="cell92"></div>
<div style="text-align:center;font-size: 20px" id="cell93"></div>
<br/>
<div class="text" id="cell94" style="float:right;padding-right:10px;font-size: 10px;color: #9E9E9E;" /></div>
</div>
Code: Select all
['1', 'counter&method=1', 'day', 'cell7', 'Zonnepanelen (Watt)', 'graph100', '#2980B9', 'v'],
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "80108.641",
"CounterToday" : "9.587 kWh",
"CustomImage" : 0,
"Data" : "80108.641 kWh 767 Watt",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "kw/h uless",
"HardwareType" : "YouLess Meter with LAN interface",
"HardwareTypeVal" : 6,
"HaveTimeout" : false,
"ID" : "80",
"LastUpdate" : "2016-06-27 21:56:11",
"Name" : "Youless kw/h",
"Notifications" : "false",
"PlanID" : "9",
"PlanIDs" : [ 9 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "YouLess counter",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "YouLess Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "767 Watt",
"Used" : 1,
"ValueQuantity" : "",
"ValueUnits" : "",
"XOffset" : "301",
"YOffset" : "89",
"idx" : "1"
},
Code: Select all
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "RFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0F7E8A2",
"Image" : "Light",
"IsSubDevice" : true,
"LastUpdate" : "2016-10-04 13:08:46",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "Block",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "13"
Code: Select all
['13', 'Data', 'cell1', 'Block', 'onbutton'],//onbutton = only push on
Code: Select all
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 100,
"CustomImage" : 0,
"Data" : "8.3 C",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "RFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveTimeout" : false,
"ID" : "8800",
"LastUpdate" : "2016-10-04 15:42:02",
"Name" : "Outer_temp",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 7,
"SubType" : "Viking 02811/02813, Proove TSS330",
"Temp" : 8.300000000000001,
"Timers" : "false",
"Type" : "Temp",
"TypeImg" : "temperature",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "12"
Code: Select all
['12', 'Temp', 'cell10', 'Ulkolampo', 'Ulko', '#C0382B'],
Users browsing this forum: No registered users and 1 guest