diff --git a/coderbot/api.py b/coderbot/api.py index 0b452f6..8a355b7 100644 --- a/coderbot/api.py +++ b/coderbot/api.py @@ -56,8 +56,8 @@ def get_status(): (Cached method) """ - temp = str(CPUTemperature().temperature) - uptime = uptime.uptime() + a_temp = str(CPUTemperature().temperature) + a_uptime = uptime.uptime() internet_status = False try: @@ -67,8 +67,8 @@ def get_status(): pass return {'internet_status': internet_status, - 'temp': temp, - 'uptime': uptime} + 'temp': a_temp, + 'uptime': a_uptime} def get_info(): """ diff --git a/docker/start.sh b/docker/start.sh index 2b6539f..180bed7 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -6,6 +6,7 @@ # enable i2c driver modprobe i2c-dev # detect camerq +/usr/bin/entry.sh udevadm control --reload # set home cd /coderbot