Commit graph

9 commits

Author SHA1 Message Date
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
Daniel Collin
e9d32dcc30 Implemented HalSensorController and HalSensorData RPiPowerConsumptionSensor
+ Added RPiTemperatureSensor
+ Updated pi4j-1.0 to pi4j-1.1-SNAPSHOT that includes support for 1-Wire communication and various sensors.


Former-commit-id: 6db4193283bf3fc604fcf250d7a321ba8b70b6a4
2016-01-19 13:53:54 +01:00
Daniel Collin
fa719a8b18 Resolved bug where external sensors data were deleted
Former-commit-id: 64ef329e3f1924629fe760cc3df8f324f67c04a9
2016-01-18 15:07:05 +01:00
Daniel Collin
41d704ad73 refactor and bug fix
- Introduced sensor type specific aggregation logic in DataAggregationDeamon (sum/avg)
- Renamed TimeConstants class to TimeUtility.
- DataAggregationDeamon::getTimestampPeriodStart did not calculate days correctly.
- Moved getTimestampPeriodStart to TimeUtility class.


Former-commit-id: c3db0dba990f1091b249fcdd4b5c3e78999cd456
2015-12-14 13:14:44 +01:00
Daniel Collin
400c8ec2a4 Added a hacked sqlite lib for Raspberry Pi (armhf)
Former-commit-id: 167b9272e4d6873170071f5646b836cc6d2b0c3b
2015-12-10 09:11:16 +01:00
Daniel Collin
0954e9c0c5 Preventing SQL-injection with PreparedStatement
Former-commit-id: 9954c913f528fa40be32b328b3ea1dad8ece8888
2015-12-08 17:12:36 +01:00
Daniel Collin
46728b4768 added null points in charts
Former-commit-id: 5d9a57b107ed55133634aa7549b57efe30ba5e2e
2015-12-07 17:59:01 +01:00
Daniel Collin
4c05900dfc adding ant build script
Former-commit-id: 47153bf95c1f09c1119a11c95f1188d8beca0113
2015-12-04 12:18:45 +01:00
dcollin
adf49efc9a Added 5 min agrigator daemon
Former-commit-id: 5c8aa100b93911cee525a31ed090906752b2b3c6
2015-12-03 20:27:34 +01:00