jbrusey / cogent-house

Cogent House is a system for sensing temperature, humidity, CO2, Air Quality, VOC, hot water consumption, and electricity consumption within the home. It has been developed by the [http://cogentcomputing.org Cogent Computing Applied Research Centre] at Coventry University. Cogent House is developed using TinyOS and Python.
4 stars 2 forks source link

duplicate entries in low yield report #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. currently showing for ch-eti where node 327 is repeated 

What is the expected output? What do you see instead?
expect only one line; three lines showing 327 instead

Original issue reported on code.google.com by james.br...@gmail.com on 28 Feb 2014 at 7:52

GoogleCodeExporter commented 9 years ago
Have been able to reproduce and it appears to be due to multiple NodeState 
entries in the database. This is a problem with BaseLogger rather than the 
packet-yield code. Possibly in this case, there were multiple BaseLogger 
instances running at once. Another possibility is that duplicate packets were 
not being filtered. BaseLogger may need to be altered to check for duplicate 
instances at start-up. Also, NodeState table needs to include LocationId and 
drop the id column. 

Original comment by james.br...@gmail.com on 3 Apr 2014 at 8:38

GoogleCodeExporter commented 9 years ago
Databases on Cogentee moved to the no id in nodestate version.
This should fix this bug.

Original comment by DjGoldsm...@googlemail.com on 25 Apr 2014 at 1:17

GoogleCodeExporter commented 9 years ago
Adding an enhancement request to take care of removal of "id" field from 
NodeState and merging of database schema code between baselogger and web 
interface.

Original comment by james.br...@gmail.com on 25 Apr 2014 at 3:03