add rssi
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Brunner 2023-01-20 21:45:07 +01:00
parent 9d704ea463
commit d45d5ba2e3
Signed by: tobru
SSH key fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk
4 changed files with 8 additions and 3 deletions

View file

@ -15,6 +15,8 @@ data:
db_type: sqlite3 db_type: sqlite3
db_path: /vol/data/db.sqlite db_path: /vol/data/db.sqlite
private_key_path: /vol/secret/private.key private_key_path: /vol/secret/private.key
noise:
private_key_path: /vol/secret/noise_private.key
derp: derp:
server: server:
enabled: true enabled: true
@ -30,3 +32,4 @@ data:
nameservers: nameservers:
- 9.9.9.9 - 9.9.9.9
base_domain: vpn.tobru.ch base_domain: vpn.tobru.ch
magic_dns: true

View file

@ -17,7 +17,7 @@ spec:
- command: - command:
- headscale - headscale
- serve - serve
image: ghcr.io/juanfont/headscale:0.16.4 image: ghcr.io/juanfont/headscale:0.17.1
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
env: env:
- name: GIN_MODE - name: GIN_MODE

View file

@ -33,6 +33,7 @@ data:
temperature=payload["uplink_message"]["decoded_payload"]["TempC_SHT"], temperature=payload["uplink_message"]["decoded_payload"]["TempC_SHT"],
humidity=payload["uplink_message"]["decoded_payload"]["Hum_SHT"], humidity=payload["uplink_message"]["decoded_payload"]["Hum_SHT"],
consumed_airtime=payload["uplink_message"]["consumed_airtime"].replace("s", ""), consumed_airtime=payload["uplink_message"]["consumed_airtime"].replace("s", ""),
rssi=payload["uplink_message"]["rx_metadata"][0]["rssi"],
gateway_id=payload["uplink_message"]["rx_metadata"][0]["gateway_ids"][ gateway_id=payload["uplink_message"]["rx_metadata"][0]["gateway_ids"][
"gateway_id" "gateway_id"
], ],

View file

@ -1,4 +1,5 @@
http://:8080 { http://:8080 {
header content-type "application/jrd+json; charset=utf-8" reverse_proxy https://social.tobru.ch {
respond "{\"subject\":\"acct:tobru@mstdn.social\",\"aliases\":[\"https://mstdn.social/@tobru\",\"https://mstdn.social/users/tobru\"],\"links\":[{\"rel\":\"http://webfinger.net/rel/profile-page\",\"type\":\"text/html\",\"href\":\"https://mstdn.social/@tobru\"},{\"rel\":\"self\",\"type\":\"application/activity+json\",\"href\":\"https://mstdn.social/users/tobru\"},{\"rel\":\"http://ostatus.org/schema/1.0/subscribe\",\"template\":\"https://mstdn.social/authorize_interaction?uri={uri}\"}]}" header_up Host "social.tobru.ch"
}
} }