diff --git a/machines/agb01/script.py b/machines/agb01/script.py index bb77dfa..3a9a17c 100644 --- a/machines/agb01/script.py +++ b/machines/agb01/script.py @@ -1,4 +1,3 @@ -#!/nix/store/z46wvcd15152qnsry80p8ricxya2n2lr-python3-3.11.7-env/bin/python import json import logging import sys @@ -76,9 +75,10 @@ def run(): logging.debug(line) if line.startswith("data:"): dataStr = line[5:] - logging.debug(f"Received: {dataStr}") + logging.info(f"Received: {dataStr}") data = json.loads(dataStr) - update_light(data["address"], **data["value"]) + if data["type"] == "Color": + update_light(data["address"], **data["value"]) run() diff --git a/pkgs/pyjecteur.nix b/pkgs/pyjecteur.nix index b4b74e6..191025b 100644 --- a/pkgs/pyjecteur.nix +++ b/pkgs/pyjecteur.nix @@ -6,8 +6,8 @@ let doCheck = false; src = fetchgit { url = "https://git.dgnum.eu/HackENS/pyjecteur.git"; - rev = "28759972328c2774b3ab571440051bd97ca35bcc"; - hash = "sha256-xlLS7Hrh1FrBnW7ASfYz42+pguHCbn3Z1k7X3uQseHQ="; + rev = "HEAD"; + hash = "sha256-s4sXW4mYnmVn1yfeRv1vu3+WH3Aq8Y5OXcupfEp7c/k="; } ; passthru = { wheel = buildPythonPackage (attrs // {