Skip to content

Commit

Permalink
Version 1.9.3 Final
Browse files Browse the repository at this point in the history
  • Loading branch information
alaudet committed Aug 3, 2023
1 parent c255953 commit 30c781c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Version 1.9.3rc5
Version 1.9.3
44 changes: 22 additions & 22 deletions bin/rsump.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
configs = config_values.configuration()
reading_interval = configs["reading_interval"]

if reading_interval == 0:
try:
reading.water_depth()
except RuntimeError:
print(
"ERROR -- Cannot Access gpio pins. Make sure user is part of the gpio group."
)
log.log_event(
"error_log",
"GPIO ERROR -- Cannot Access gpio pins. Make sure user is part of the gpio group.",
)
else:
while True:

def handle_gpio_error():
error_message = "ERROR -- Cannot access gpio pins. Make sure the user is part of the gpio group."
print(error_message)
log.log_event("error_log", error_message)


def main():
if reading_interval == 0:
try:
reading.water_depth()
time.sleep(reading_interval)
except RuntimeError:
print(
"ERROR -- Cannot Access gpio pins. Make sure user is part of the gpio group."
)
log.log_event(
"error_log",
"GPIO ERROR -- Cannot Access gpio pins. Make sure user is part of the gpio group.",
)
exit(0)
handle_gpio_error()
else:
while True:
try:
reading.water_depth()
time.sleep(reading_interval)
except RuntimeError:
handle_gpio_error()
exit(0)


if __name__ == "__main__":
main()
4 changes: 3 additions & 1 deletion bin/rsumpmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def main():

if __name__ == "__main__":
print("rsumpmonitor.py is depracated. Switch to systemd.")
print("https://github.com/alaudet/raspi-sump/blob/master/docs/upgrade_systemd.md")
print(
"https://github.com/alaudet/raspi-sump/blob/master/docs/upgrade_to_version_1.9.md"
)
log.log_event(
"info_log",
"Deprecation Warning - rsumpmonitor.py is depracated. Switch to systemd",
Expand Down
2 changes: 1 addition & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Version 1.9.3

- Added rsumpsupport which creates a trace file of the user environment to help troubleshoot issues
- Added rsumpsupport script which creates a trace file of the application environment to help troubleshoot issues

Version 1.9.2

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup
import os

version = "1.9.3rc5"
version = "1.9.3"
user = os.getlogin()


Expand Down

0 comments on commit 30c781c

Please sign in to comment.