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

Improvements #23

Merged
merged 21 commits into from
Aug 18, 2020
Merged

Improvements #23

merged 21 commits into from
Aug 18, 2020

Conversation

BabyCakes13
Copy link
Member

Restructured the probing and sensors part of the project, as follows:

top_level_architecture

Instead of having classes based on the physical sensors, we rather work with types of collected values.
This also helps with plugin mechanism design.
Added support for temperature, altitude, humidity and pressure collected by the BoschBME280 module.
The only difference between the two is that the 680 one also has the gas value.

Signed-off-by: Maria-Minerva Vonica <[email protected]>
The sensor name was passed through all the code, even though it already existed where it was needed. I removed it since it was an unnecessary second argument needing to be passed.
@BabyCakes13 BabyCakes13 self-assigned this Aug 18, 2020
@BabyCakes13 BabyCakes13 added the enhancement New feature or request label Aug 18, 2020
The collected list was not updated after each send, resulting in an overpopulation of the collected data. BAD BUG.
homesensorhub/sensors/types/pressure.py Outdated Show resolved Hide resolved
homesensorhub/sensors/types/temperature.py Outdated Show resolved Hide resolved
homesensorhub/sensors/types/light.py Outdated Show resolved Hide resolved
homesensorhub/sensors/types/humidity.py Outdated Show resolved Hide resolved
homesensorhub/sensors/types/gas.py Outdated Show resolved Hide resolved
homesensorhub/sensors/types/altitude.py Outdated Show resolved Hide resolved
The types were copy pasted and there was an excess of files.
Rather than having packages of type, probing, have a sensor which has its probe, type and probing.
@BabyCakes13 BabyCakes13 merged commit eee93ab into master Aug 18, 2020
@BabyCakes13 BabyCakes13 deleted the improvements branch August 18, 2020 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants