Some ESP experiments; Raspi: Only write into the average table if avg values not zero

This commit is contained in:
2017-09-07 22:10:13 +02:00
parent 05415b98ff
commit fc8661a68b
3 changed files with 15 additions and 16 deletions

View File

@@ -27,10 +27,7 @@ and
CREATE TABLE average_stats (id MEDIUMINT NOT NULL AUTO_INCREMENT, humidity FLOAT NOT NULL, temperature FLOAT NOT NULL, gm3 float not null, isoutside int not null, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) );
```
Show all entries in table: `select * from stats;`
Show all entries in table: `select * from stats;` or `select * from average_stats;`
### Compile & Install