update host in .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-20 18:25:40 +02:00
parent 0b0ecc0dc9
commit b2708b6553
3 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ type: ssh
name: default
server:
host: nuc.home
host: server.home
user: marco
ssh_key:
from_secret: ssh_key
@@ -26,7 +26,7 @@ steps:
- name: deploy
commands:
- cd /home/marco/containers
- docker-compose up --build -d sensor-web-v2
- docker compose up --build -d sensor-web-v2
trigger:
branch:

2
.env
View File

@@ -1,2 +1,2 @@
MONGO_SERVER=nuc.home
MONGO_SERVER=server.home
MONGO_DB=sensor_data

View File

@@ -88,7 +88,7 @@ async def get_sensor_data(
}
},
{"type": type},
{"value": {"$ne": "NaN"}},
{"value": {"$ne": float("nan")}},
]
}
},
@@ -122,6 +122,7 @@ async def get_sensor_data(
]
docs = [doc async for doc in collection.aggregate(pipeline)]
print(docs)
return json.loads(json_util.dumps(docs))