Admin web app available on: http://178.62.31.177:8000 (open)
Flower monitoring dashboard available on: http://178.62.31.177:8888 (protected)
Warning
GitHub will automatically deploy the latest version of the main branch into the production environment on every push,
thus it is important to keep the main branch in a production ready state at all times.
- Ensure Docker is installed
- Clone the repo
- Navigate to the project root in a terminal window
- Run the command
docker compose --env-file /path/to/env/file -f docker-compose-test-env.yml up -d
- Wait until Docker builds and deploys containers.
- Flower monitoring dashboard available on
http://0.0.0.0:8888
- Influx DB available on
http://0.0.0.0:8086
- Either
plume
,zephyr
orsensor_community
buckets can be queried through the API end point available onhttp://0.0.0.0:8000
- POST
http://0.0.0.0:8000/api/tasks/create/{sensor}
, where{sensor}
is one of the above-mentioned buckets, include astart
andend
timestamp in the request payload - A task id will be returned in the following json format;
{"task_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}
- GET
http://0.0.0.0:8000/api/tasks/{task_id}
wheretask_id
is the task id returned from the previous POST - A status and result will be returned in the following json
format;
{"task_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "task_status": {status}, task_result: {task_result}}
- The
{status}
will either beSUCESS
,PENDING
orFAILED
- If
PENDING
the GET can be re-requested to check the status until the back end task reports a success or failure {task_result}
will be populated when the task succeeds in the following json format;[{"sensor_id": {sensor_id}, "header": {header}, "rows": [rows]}]