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

Added logging of the current enviro and micropython version #129

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions enviro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,11 @@ def upload_readings():
return True

def startup():
# write startup banner into log file
logging.debug("> performing startup")
import sys

# write startup info into log file
logging.info("> performing startup")
logging.debug(f" - running Enviro {ENVIRO_VERSION}, {sys.version.split('; ')[1]}")

# get the reason we were woken up
reason = get_wake_reason()
Expand Down
3 changes: 3 additions & 0 deletions enviro/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# version
ENVIRO_VERSION = "0.0.9"

# modules
ENVIRO_UNKNOWN = None
ENVIRO_INDOOR = 1
Expand Down