Compare commits

...

2 commits

Author SHA1 Message Date
sinavir
6733ec2b77 feat(pkgs/pyjecteur): update 2024-10-13 21:15:02 +02:00
sinavir
3376137ef8 feat(pkgs/ragb): update 2024-10-13 21:15:02 +02:00
4 changed files with 9 additions and 8 deletions

View file

@ -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()

View file

@ -65,7 +65,8 @@
script = ''
export JWT_SECRET=$(cat $CREDENTIALS_DIRECTORY/jwt_secret)
export BK_FILE="$STATE_DIRECTORY/data.json"
# export RUST_LOG=info
export BIND_TCP="10.10.10.1:1235"
export RUST_LOG=debug
${pkgs.ragb-backend}/bin/ragb-backend
'';
serviceConfig = {

View file

@ -69,9 +69,9 @@
"url": "https://git.dgnum.eu/HackENS/ragb"
},
"branch": "main",
"revision": "dfbaf2fd65fe16f5a66b5b16afef83502ea4b237",
"revision": "700d967ff35e86e498cc84595ead2ab0aa0e2bfc",
"url": null,
"hash": "0vjs8cm2q2f2s8a8zqjj159rg1m7q6fzrg269gfpmrmgwpp3wh52"
"hash": "0x32xms9zi6cnblsmfhp0d2jh21xdcn4gqp13i38i0hzqkwxvql1"
}
},
"version": 3

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