Hi,
I tried to follow the template script tutorial, where you could specify an item and then tell it to be Celcius or to change the background color. I'm guessing that the issue is my item names.
In one table they are like this:
data = [
{
"Sijainti": "Yläkerran vuokratila",
"Tila": ylakerta.tila,
"Lämpötila": ylakerta.temp,
"kosteus": ylakerta.rh,
"aikaleima": ylakerta.time,
"Paristo": ylakerta.batt
},
{
"Sijainti": "Kellari",
"Tila": kellari.tila,
"Lämpötila": kellari.temp,
"kosteus": kellari.rh,
"aikaleima": kellari.time,
"Paristo": kellari.batt
}
]
Lämpötila = temperature . On the second table the data is like this:
data = [
{
"Piiri": "Patterikierto",
"tila": POL368.HMI1tila,
[POL368.HMI03100Read[1][15]]: POL368.HMI03100Read[0][15],
[POL368.HMI03100Read[1][10]]: POL368.HMI03100Read[0][10],
[POL368.HMI03100Read[1][20]]: POL368.HMI03100Read[0][20],
[POL368.HMI03100Read[1][21]]: POL368.HMI03100Read[0][21]
},
{
"Piiri": "Puhallinkierto",
"tila": POL368.HMI2tila,
[POL368.HMI03200Read[1][15]]: POL368.HMI03200Read[0][15],
[POL368.HMI03200Read[1][10]]: POL368.HMI03200Read[0][10],
[POL368.HMI03200Read[1][20]]: POL368.HMI03200Read[0][20],
[POL368.HMI03200Read[1][21]]: POL368.HMI03200Read[0][21]
},
{
"Piiri": "Käyttövesi",
"tila": POL368.HMI3tila,
[POL368.HMI03200Read[1][15]]: POL368.HMI04100Read[0][6],
[POL368.HMI03200Read[1][10]]: POL368.HMI04100Read[0][7],
[POL368.HMI03200Read[1][20]]: POL368.HMI04100Read[0][9],
[POL368.HMI03200Read[1][21]]: POL368.HMI04100Read[0][10]
}
]
Here the name is taken from an array. Again, how would I reference that item or a row?