#!./.venv/bin/python
+
from http.server import HTTPServer, SimpleHTTPRequestHandler
from multiprocessing import Process, Array, Value
+import subprocess
import requests
import time
import sacn
import sys
import os
+# fake GPIO dummy class for debuging
class dummy():
def __init__(self):
self.HIGH = "high"
def cleanup(self): pass
+# use the dummy class as GPIO if the real GPIO module does not exist
try: import RPi.GPIO
except ModuleNotFoundError:
print("RPi.GPIO Not found!\nDefaulting to dummy GPIO...")
GPIO = dummy()
+# main class for handling all clock functions and threads
class clock():
def __init__(self):
# fixed variables
def light(self):
print("starting lighting service...")
+
sender = sacn.sACNsender()
sender.start()
sender.activate_output(2)