Nature40 / pysensorproxy

A python tool to schedule, execute and log environmental measurements.
MIT License
0 stars 0 forks source link

Coninuation of "measurement" when energy supply is cut off #4

Closed goergen95 closed 5 years ago

goergen95 commented 5 years ago

https://github.com/Nature40/pysensorproxy/blob/b5444308b89503c9719a57a561fa435af23089c7/sensorproxy/sensors/environment.py#L10

Currently, when the energy supply of the sensor is cut off the program does not throw an error message and the measurment seems to continue with the last recorded value. Could you please fix that?

jonashoechst commented 5 years ago

This seems to be a non-trivial error, caused by the sensor and/or the way we use it.

Possible options to fix:

oxzi commented 5 years ago

We tried to reproduce this issue yesterday on the same setup. The machine ran into a timeout after round about 30 seconds and printed the correct error message. In the meantime the timestamp of the old measurements have not changed. Some of the reporting users said, they have not waited this long. This should not be an issue with the software.