Scripts for the measurement data transmission to the SEGuRo platform
pip install .
Either by running:
nix develop
or by installing direnv and running:
direnv allow
Inside the development shell you can directly work on the Python code or use the following commands:
opcua-readout
nix-render-template template.nix < input.json > output.json
villas-generate-gateway-config < gateway.json > villas-node.json
start-vm
Start the VM by running: start-vm
.
Then check the VILLASnode service and its config:
systemctl status villas-node
cat /boot/firmware/gateway.json
cat /boot/firmware/villas-config.json
You can exit the VM console by Ctrl+A + X
.
Build a SD-card image by running:
nix build .#nixosConfigurations.rpi-1.config.system.build.sdImage
or short
nix build .
This will place the generated SD-card image under ./result/sd-image/
.
You can use dd
to copy this image to a real SD-card:
zstd -d ./result/sd-image/*.img.zst | dd of=/dev/sdX bs=4k
pip install -e .