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

Update config values to include warm up and command wait #34

Merged
merged 2 commits into from
Apr 23, 2023

Conversation

TimOrme
Copy link
Owner

@TimOrme TimOrme commented Apr 23, 2023

Closes #33
Closes #32

@TimOrme TimOrme requested a review from inactivist April 23, 2023 19:15
@@ -52,8 +54,11 @@ def get_config_from_env() -> Config:
retention_minutes=int(os.environ.get("AQIMON_RETENTION_MINUTES", DEFAULT_CONFIG.retention_minutes)),
reader_type=os.environ.get("AQIMON_READER_TYPE", DEFAULT_CONFIG.reader_type),
usb_path=os.environ.get("AQIMON_USB_PATH", DEFAULT_CONFIG.usb_path),
usb_sleep_time_sec=int(os.environ.get("AQIMON_USB_SLEEP_TIME_SEC", DEFAULT_CONFIG.usb_sleep_time_sec)),
sleep_sec_between_reads=int(
os.environ.get("AQIMON_SLEEP_SEC_BETWEEN_READS", DEFAULT_CONFIG.sleep_sec_between_reads)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is renamed, so its a breaking change. Possible you set this to do local dev.

@TimOrme TimOrme merged commit d10ce05 into main Apr 23, 2023
@TimOrme TimOrme deleted the update_config_values branch April 23, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make device command wait configurable Document Warm Up Period Config
1 participant