Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculated Field Missing for Burt158_boiler_gas #1

Closed
alanmitchell opened this issue Nov 14, 2014 · 2 comments
Closed

Calculated Field Missing for Burt158_boiler_gas #1

alanmitchell opened this issue Nov 14, 2014 · 2 comments
Labels

Comments

@alanmitchell
Copy link
Owner

The Burt158_boiler_gas calculated sensor is a linear calculation off of the Burt158_firing_rate sensor. There are periods (e.g. Nov 5 - 9, 2014) where the source sensor readings (firing rate) were present, but the calculated values are not showing in the database. Need to check to see if this occurs for other calculated values as well.

@alanmitchell
Copy link
Owner Author

It is likely that this occurs during periods when the data collector cannot reach the BMON Internet site and the readings are queued up locally. When the readings do get posted in bulk, the calculated readings only go back a certain amount of time. So, if Internet outage was longer than this, the calculated readings will not fill in the gap.

I determined this by looking at the Burt158_firing_rate data and the Bur158_boiler_gas data. See the IPython notebook C:\Users\Alan\Dropbox\AHFC\BMS-3\data_analysis\calc_field_problems.ipynb. I noticed that during periods when the calculated field was missing, the firing_rate field was not evenly spaced in time, indicating that a reboot was occurring periodically. The reboot was occurring because it couldn't reach the Internet. This was clearly verified by looking at the cron_15m log file: http://www.analysisnorth.com/marie/files/Burt158_2014-11-12-0646_pi_cron.log

One solution to this is to have the calculated field process go back further in time so that is likely to fill a large gap of missed readings. Fix that in this file:
https://github.com/alanmitchell/bmon/blob/master/bmsapp/scripts/calc_readings.py
by changing the 3rd parameter to the calcreadings.CalculateReadings() call.

@alanmitchell
Copy link
Owner Author

This also indicates that Burt158, at a minimum, is experiencing long periods without Internet connectivity. The cron_15m log files shows the Pi trying to restart the cellular network and then rebooting the computer about once per hour, to no avail for a number of days. Should try to figure out whether this signal strength or some other issue. And, reboots do not seem to solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant