mirror of
https://github.com/KevinMidboe/Node-Com-Handler.git
synced 2026-01-30 21:25:51 +00:00
Added v1 uptime to statushandler
This commit is contained in:
@@ -16,6 +16,8 @@ from unicodedata import normalize
|
||||
from subprocess import *
|
||||
from socket import *
|
||||
|
||||
from v1/uptime.py import timeSinceBoot
|
||||
|
||||
# Define the socket communicating will transfered
|
||||
serverSocket = socket(AF_INET, SOCK_DGRAM)
|
||||
serverSocket.bind(('', 12000))
|
||||
@@ -184,7 +186,7 @@ while True:
|
||||
if (message == 'temp'):
|
||||
return_message = temp()
|
||||
elif (message == 'up'):
|
||||
return_message = uptime()
|
||||
return_message = timeSinceBoot()
|
||||
elif (message == 'plex'):
|
||||
return_message = plex()
|
||||
elif (message.find('space') != -1):
|
||||
|
||||
Reference in New Issue
Block a user