Skip to content
Snippets Groups Projects
Commit 0884ffb4 authored by am0ebe's avatar am0ebe
Browse files

rm tmp py dir and update gitignore

parent 8e11c79a
Branches
No related tags found
No related merge requests found
skyglow.log skyglow.log
moon?* moon?*
README.html README.html
__pycache__
\ No newline at end of file
...@@ -60,8 +60,7 @@ skyglow = [ 15, # one 0.08 ...@@ -60,8 +60,7 @@ skyglow = [ 15, # one 0.08
NUM_ECO_UNITS = len(skyglow) NUM_ECO_UNITS = len(skyglow)
sunrise = 0 sunrise = 0
sunset = 0 sunset = 0
#datetime.now(timezone.utc) #create aware! #UTC: utcfromtimestamp() / datetime.now(timezone.utc)
#utcnow() / utcfromtimestamp()
now = dt.utcnow().replace(second=0, microsecond=0) # ignore seconds and microseconds now = dt.utcnow().replace(second=0, microsecond=0) # ignore seconds and microseconds
#mlx (idx is also dmx-byte value) #mlx (idx is also dmx-byte value)
...@@ -306,7 +305,7 @@ def main(args=""): ...@@ -306,7 +305,7 @@ def main(args=""):
client = wrapper.Client() client = wrapper.Client()
# send 1 dmx frame with values for channels 1-3 for all ecounits # send 1 dmx frame with values for channels 1-3 for all ecounits
client.SendDmx(UNIVERSE, data, dmxSent) client.SendDmx(UNIVERSE, data, dmxSent)
client.RegisterUniverse(UNIVERSE, client.REGISTER, dmxReceive) client.RegisterUniverse(UNIVERSE, client.REGISTER, dmxReceive)
wrapper.Run() wrapper.Run()
except Exception as e: except Exception as e:
error(FAIL_DMX,e) error(FAIL_DMX,e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment