IsOutside boolean added to config and insertData. Readme updated

This commit is contained in:
2017-08-27 22:04:17 +02:00
parent 27ed59b52f
commit 18c7d610b9
8 changed files with 32 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ Create database: `create database dhtstats;`
Use database: `use dhtstats`
Create new table: `CREATE TABLE stats (id MEDIUMINT NOT NULL AUTO_INCREMENT, node_id int not null, pin int not null, humidity FLOAT NOT NULL, temperature FLOAT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) );`
Create new table: `CREATE TABLE stats (id MEDIUMINT NOT NULL AUTO_INCREMENT, node_id int not null, pin int not null, humidity FLOAT NOT NULL, temperature FLOAT NOT NULL, isoutside int not null, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) );`
Show all entries in table: `select * from stats;`