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
|
name: default
|
||||||
|
|
||||||
server:
|
server:
|
||||||
host: nuc.home
|
host: server.home
|
||||||
user: marco
|
user: marco
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
@@ -26,7 +26,7 @@ steps:
|
|||||||
- name: deploy
|
- name: deploy
|
||||||
commands:
|
commands:
|
||||||
- cd /home/marco/containers
|
- cd /home/marco/containers
|
||||||
- docker-compose up --build -d sensor-web-v2
|
- docker compose up --build -d sensor-web-v2
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
2
.env
2
.env
@@ -1,2 +1,2 @@
|
|||||||
MONGO_SERVER=nuc.home
|
MONGO_SERVER=server.home
|
||||||
MONGO_DB=sensor_data
|
MONGO_DB=sensor_data
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ async def get_sensor_data(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{"type": type},
|
{"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)]
|
docs = [doc async for doc in collection.aggregate(pipeline)]
|
||||||
|
print(docs)
|
||||||
return json.loads(json_util.dumps(docs))
|
return json.loads(json_util.dumps(docs))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user