diff --git a/.gitignore b/.gitignore index 82a584dc4bc3fb94377d8251b253f87a9029aafc..fb7edd9a55cf5f33d7d3061bf38c9febb267645e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ skyglow.log moon?* README.html +__pycache__ \ No newline at end of file diff --git a/skyglow.py b/skyglow.py index d5d66e5a71bfb87b18e0e903f3c1f408b23c4a18..72e7a4b3b5171d3d514f7e487d838d9caa20dc5e 100755 --- a/skyglow.py +++ b/skyglow.py @@ -60,8 +60,7 @@ skyglow = [ 15, # one 0.08 NUM_ECO_UNITS = len(skyglow) sunrise = 0 sunset = 0 -#datetime.now(timezone.utc) #create aware! -#utcnow() / utcfromtimestamp() +#UTC: utcfromtimestamp() / datetime.now(timezone.utc) now = dt.utcnow().replace(second=0, microsecond=0) # ignore seconds and microseconds #mlx (idx is also dmx-byte value) @@ -306,7 +305,7 @@ def main(args=""): client = wrapper.Client() # send 1 dmx frame with values for channels 1-3 for all ecounits client.SendDmx(UNIVERSE, data, dmxSent) - client.RegisterUniverse(UNIVERSE, client.REGISTER, dmxReceive) + client.RegisterUniverse(UNIVERSE, client.REGISTER, dmxReceive) wrapper.Run() except Exception as e: error(FAIL_DMX,e)