@@ -5,16 +5,16 @@ Based on <https://quantumleap.readthedocs.io/>.
55Start the show:
66
77``` shell name=start
8- docker compose pull
9- docker compose up --detach --wait
8+ task compose -- pull
9+ task compose -- up --detach --wait
1010
1111open https://orion.quantumleap.local.itkdev.dk
1212open https://grafana.quantumleap.local.itkdev.dk
1313```
1414
1515``` shell name=orion-subscription-create
1616# https://quantumleap.readthedocs.io/en/latest/user/using/#orion-subscription
17- docker compose exec --no-TTY orion curl --silent --show-error localhost:1026/v2/subscriptions --header ' content-type: application/json' --data @- << EOF
17+ task compose -- exec --no-TTY orion curl --silent --show-error localhost:1026/v2/subscriptions --header ' content-type: application/json' --data @- << EOF
1818{
1919 "description": "Test subscription",
2020 "subject": {
3737```
3838
3939``` shell name=orion-subscriptions-get
40- docker compose exec --no-TTY orion curl --silent --show-error localhost:1026/v2/subscriptions | jq
40+ task compose -- exec --no-TTY orion curl --silent --show-error localhost:1026/v2/subscriptions | jq
4141```
4242
4343``` shell name=orion-entity-create
4444# https://fiware-orion.readthedocs.io/en/master/user/walkthrough_apiv2.html#entity-creation
45- docker compose exec --no-TTY orion curl --silent --show-error localhost:1026/v2/entities --header ' content-type: application/json' --data @- << EOF
45+ task compose -- exec --no-TTY orion curl --silent --show-error localhost:1026/v2/entities --header ' content-type: application/json' --data @- << EOF
4646{
4747 "id": "Room1",
4848 "type": "Room",
6161
6262``` shell name=orion-entity-update substitutions="{«temperature.value»: 87, «pressure.value»: 42}"
6363# https://fiware-orion.readthedocs.io/en/master/user/walkthrough_apiv2.html#update-entity
64- docker compose exec --no-TTY orion curl --silent --show-error localhost:1026/v2/entities/Room1/attrs --header ' content-type: application/json' --data @- << EOF
64+ task compose -- exec --no-TTY orion curl --silent --show-error localhost:1026/v2/entities/Room1/attrs --header ' content-type: application/json' --data @- << EOF
6565{
6666 "temperature": {
6767 "value": «temperature.value»,
7878Talk to the timescale database:
7979
8080``` shell name=timescale-query
81- docker compose exec timescale psql quantumleap quantumleap --command ' \dt'
82- docker compose exec timescale psql quantumleap quantumleap --command ' SELECT * FROM etroom'
81+ task compose -- exec timescale psql quantumleap quantumleap --command ' \dt'
82+ task compose -- exec timescale psql quantumleap quantumleap --command ' SELECT * FROM etroom'
8383```
8484
8585Generate some random data:
0 commit comments