Commit graph

18 commits

Author SHA1 Message Date
c3731ca4b4 Cleanup of property names 2020-07-24 00:25:58 +02:00
dc829b9487 Added the ability to enable or disable plugins on startup 2020-06-25 23:36:37 +02:00
60e5131850 Added description for flows and turn on and off option 2018-02-26 23:17:03 +01:00
5170a151c8 Some more work on Triggers. issue 6 2017-02-09 17:03:40 +01:00
4b24615f4f Implementation of DB read and store procedures for Actions and triggers(not tested). issue 6 2017-01-16 17:10:11 +01:00
0d0f0a4044 bugfix, forgot to add email column into deafult db 2016-11-19 18:14:18 +01:00
23f0645581 Fixed bug where local data was only cleared for the first sensor 2016-10-04 22:08:44 +02:00
5df0bd1f28 Fixed issue 33 where confidence index was throwing off the average calculations 2016-10-04 21:56:56 +02:00
3fd3b0430f Updated plugin files and added Upgrade post work 2016-08-24 17:27:16 +02:00
c5b0b501ae Map shows actual data and device positions are saved in DB 2016-07-02 00:12:07 +02:00
c2c5935284 Fixed so that UPS data is konverted to kwh instead of only being watts 2016-06-04 14:58:09 +02:00
Daniel Collin
ea5c991824 Optimized data aggregation.
- All aggregation use only the raw data as input.
- Only produce aggregated data that will show in a chart (less work after clearing the sensor_data_aggr table).
- Adding version handling of data aggregation to secure that the peer has up to date data.
- New db version: 6 - Adding sensor.aggr_version(int, default=1), will clear sensor_data_aggr for local sensors


Former-commit-id: cbf5a890a5058791b443e975048db13f6ac4c9fe
2016-02-02 14:26:16 +01:00
2c59ae5693 Added event table and added ignored table to DB upgrade
Former-commit-id: 9237a2457630ac5fa1e41c7e6b16214ca24cba08
2016-01-04 19:21:26 +01:00
Daniel Collin
275ffd97c2 Adding logic to the batabase upgrade.
1. Introduced a new db table "db_version_history" to hal-default.db. The table contains a list of db version. Every version has some parameters:
- 'db-version' (int) - A db version number. table 'conf', key 'db_version' points to this.
- 'force-upgrade' (default:0) - If 1 then force the upgrade to this version
- 'clear-internal-aggr-data' (default:0) - If 1 then clear all internal aggr data before upgrade.
- 'clear-external-aggr-data' (defualt:0) - If 1 then clear all external aggr data before upgrade.
The db table 'conf', key 'db_version' has to point to the db version to upgrad to. Only forward upgrades are supported.

2. Modified HalContext to act accoring to the parameters in the new db table.


Former-commit-id: 19bd87ade3129f3fc0c51f0e1b94f71dc854d792
2015-12-21 14:09:51 +01:00
046aea1a2c External sensors are editable from web
Former-commit-id: 64343310cae1cbd1b14343f170ea7adc66d11671
2015-12-12 00:27:23 +01:00
3c763dbc2b DB upgrade implemented
Former-commit-id: 351a040593e4ddab880d517d9e0854d8c8815fb5
2015-12-08 22:25:14 +01:00
Ziver Koc
4ff6ae2b4c Added DB initialization logic and upgrade needed detection
Former-commit-id: 7a8b4d8157529a10c242ea995c0d2a4939b4d142
2015-12-07 22:42:55 +01:00
Ziver Koc
fdc9183c0c Changed DB access to a getter
Former-commit-id: 0eb743932c1bcd1e4fe9eba1d8485a54ae0b9db6
2015-12-07 21:48:13 +01:00