feat(pkgs/pyjecteur): update

This commit is contained in:
sinavir 2024-10-13 21:12:20 +02:00
parent 3376137ef8
commit 6733ec2b77
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,3 @@
#!/nix/store/z46wvcd15152qnsry80p8ricxya2n2lr-python3-3.11.7-env/bin/python
import json
import logging
import sys
@ -76,8 +75,9 @@ 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)
if data["type"] == "Color":
update_light(data["address"], **data["value"])

View file

@ -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 // {