Skip to content

Commit

Permalink
fix uptime, add entry.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Jul 3, 2024
1 parent 9672acd commit 1a0c8c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions coderbot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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():
"""
Expand Down
1 change: 1 addition & 0 deletions docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# enable i2c driver
modprobe i2c-dev
# detect camerq
/usr/bin/entry.sh
udevadm control --reload
# set home
cd /coderbot
Expand Down

0 comments on commit 1a0c8c7

Please sign in to comment.