guardamos también en el InfluxDB las lecturas de luz

This commit is contained in:
Sergio Álvarez 2016-03-12 15:43:15 +01:00
parent 355ae6d159
commit 7f842cca8f
1 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,17 @@ while True:
"real": float(parts[2][2:]),
"sensacion": float(parts[3][2:])
}
},
{
"measurement": "luminosidad",
"tags": {
"location": "home"
},
"fields": {
"avg": float(parts[4][3:]),
"min": float(parts[5][3:]),
"max": float(parts[6][3:])
}
}
])