$ cp .env.example .env
$ make run_all
Utilize the GQL mutation request below at the graph endpoint
$ docker-compose run -ti backend /bin/bash
app# python manage.py createsuperuser --noinput --username adminuser --email [email protected]
View the admin portal here
Get current temperature
query {
currentTemperature {
timestamp
value
}
}
Get min and max temperatures for time period
query {
temperatureStatistics(after: "2020-12-06T12:00:00+00:00", before: "2020-12-07T12:00:00+00:00") {
min
max
}
}
Toggle the temperature feed
mutation {
toggleFeed(input: {status: "on"}) {
status
}
}