update host in .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
2
.env
@@ -1,2 +1,2 @@
|
||||
MONGO_SERVER=nuc.home
|
||||
MONGO_SERVER=server.home
|
||||
MONGO_DB=sensor_data
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user