Compare commits

..

No commits in common. "faffcb7d5482f3d1079cd40cc76cfcdc5196b60b" and "028b5dc9e829a989a24a22109f17ee06137931d3" have entirely different histories.

2 changed files with 67 additions and 6 deletions

View file

@ -2,6 +2,26 @@
"dynamic": { "dynamic": {
"sensors": { "sensors": {
"temperature": [ "temperature": [
{
"sensor_data": {
"unit": "°C",
"location": "Hauptraum",
"description": "Sensor im Hauptraum"
},
"allowed_credentials": [
"club-assistant"
]
},
{
"sensor_data": {
"unit": "°C",
"location": "Loetschlauch",
"description": "Sensor im Lötschlauch (Teil der Werkstatt)"
},
"allowed_credentials": [
"club-assistant"
]
},
{ {
"sensor_data": { "sensor_data": {
"unit": "°C", "unit": "°C",
@ -14,6 +34,26 @@
} }
], ],
"humidity": [ "humidity": [
{
"sensor_data": {
"unit": "%",
"location": "Hauptraum",
"description": "Sensor im Hauptraum"
},
"allowed_credentials": [
"club-assistant"
]
},
{
"sensor_data": {
"unit": "%",
"location": "Loetschlauch",
"description": "Sensor im Lötschlauch (Teil der Werkstatt)"
},
"allowed_credentials": [
"club-assistant"
]
},
{ {
"sensor_data": { "sensor_data": {
"unit": "%", "unit": "%",
@ -24,6 +64,28 @@
"club-assistant" "club-assistant"
] ]
} }
],
"CO2": [
{
"sensor_data": {
"unit": "ppm",
"location": "Hauptraum",
"description": "Sensor im Hauptraum (Typ: SCD41)"
},
"allowed_credentials": [
"club-assistant"
]
},
{
"sensor_data": {
"unit": "ppm",
"location": "Loetschlauch",
"description": "Sensor im Lötschlauch (Teil der Werkstatt, Typ: SCD41)"
},
"allowed_credentials": [
"club-assistant"
]
}
] ]
}, },
"state": { "state": {

View file

@ -1,20 +1,19 @@
{ pkgs, ... }: { pkgs, ... }:
let let
version = "v0.1.0"; spaceapidSrc = builtins.fetchGit {
spaceapidSrc = pkgs.fetchgit {
url = "https://git.hamburg.ccc.de/CCCHH/spaceapid.git"; url = "https://git.hamburg.ccc.de/CCCHH/spaceapid.git";
rev = version; ref = "main";
hash = "sha256-2SDhliltzyydPPZdNn/htDydiK/SHQcYyG/dQ0EyFrY="; rev = "17753f535c68157e80f30f50deb488133cc98258";
}; };
spaceapid = pkgs.buildGoModule rec { spaceapid = pkgs.buildGoModule rec {
pname = "spaceapid"; pname = "spaceapid";
inherit version; version = "main";
src = spaceapidSrc; src = spaceapidSrc;
ldflags = [ ldflags = [
"-X main.version=${version}" "-X main.version=${version}-${spaceapidSrc.rev}"
]; ];
# Since spaceapid doesn't have any dependencies, we can set this to null and # Since spaceapid doesn't have any dependencies, we can set this to null and