„README.md“ ändern

This commit is contained in:
Mario Voigt 2019-04-26 20:57:36 +02:00
parent 6e996f341d
commit 20d8d2c8f0

View File

@ -192,6 +192,7 @@ CREATE TABLE IF NOT EXISTS BridgeInfo
`appVersion` VARCHAR(24), `appVersion` VARCHAR(24),
`bridgeType` SMALLINT NOT NULL, `bridgeType` SMALLINT NOT NULL,
`currentTime` DATETIME NOT NULL, `currentTime` DATETIME NOT NULL,
`deviceType` INT NOT NULL,
`firmwareVersion` VARCHAR(24), `firmwareVersion` VARCHAR(24),
`hardwareId` VARCHAR(24), `hardwareId` VARCHAR(24),
`name` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL,
@ -208,6 +209,7 @@ CREATE TABLE IF NOT EXISTS BridgeInfo
CREATE TABLE IF NOT EXISTS BridgeList CREATE TABLE IF NOT EXISTS BridgeList
( (
`batteryCritical` BOOLEAN NOT NULL, `batteryCritical` BOOLEAN NOT NULL,
`mode` INT NOT NULL,
`name` SMALLINT NOT NULL, `name` SMALLINT NOT NULL,
`nukiId` VARCHAR(9) NOT NULL PRIMARY KEY, /*primary key = unique!*/ `nukiId` VARCHAR(9) NOT NULL PRIMARY KEY, /*primary key = unique!*/
`state` SMALLINT NOT NULL, `state` SMALLINT NOT NULL,
@ -220,6 +222,7 @@ CREATE TABLE IF NOT EXISTS BridgeList
CREATE TABLE IF NOT EXISTS BridgeLockState CREATE TABLE IF NOT EXISTS BridgeLockState
( (
`batteryCritical` BOOLEAN NOT NULL, `batteryCritical` BOOLEAN NOT NULL,
`mode` INT NOT NULL,
`nukiId` VARCHAR(9) NOT NULL PRIMARY KEY, /*primary key = unique!*/ `nukiId` VARCHAR(9) NOT NULL PRIMARY KEY, /*primary key = unique!*/
`state` SMALLINT NOT NULL, `state` SMALLINT NOT NULL,
`stateName` VARCHAR(24) NOT NULL, `stateName` VARCHAR(24) NOT NULL,
@ -565,7 +568,7 @@ https://grafana.com/dashboards/7628/ or https://leyghis.fablabchemnitz.de:8444/M
* Bridge provides timestamp but no timezoneOffset → SQL statements were written to use the timezoneOffset of Smartlock instead → works, but dirty * Bridge provides timestamp but no timezoneOffset → SQL statements were written to use the timezoneOffset of Smartlock instead → works, but dirty
* replace TRUNCATE statements with "INSERT ON DUPLICATE KEY UPDATE" to leave old data but import new data * replace TRUNCATE statements with "INSERT ON DUPLICATE KEY UPDATE" to leave old data but import new data
* to implement: * to implement:
* make us of fields `keypadPaired` `lastAction` `doorState` `homekitState` `timezoneId` `accountUserId` * make us of fields `keypadPaired` `lastAction` `doorState` `homekitState` `timezoneId` `accountUserId` `mode` (Bridge) `deviceType` (Bridge)
* build up some check script to make proof of correct count of columns and column order of the csv files * build up some check script to make proof of correct count of columns and column order of the csv files
* collect data with time history (maybe with triggers): * collect data with time history (maybe with triggers):
* BridgeFirmwareHistory: BridgeId, date, BridgeFirmware, BridgeWifiFirmware,BridgeAppVersion * BridgeFirmwareHistory: BridgeId, date, BridgeFirmware, BridgeWifiFirmware,BridgeAppVersion