Skip to content

Latest commit

 

History

History
 
 

hack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hack Scenarios

Required is a MQTT client. I use this: https://github.com/shirou/mqttcli

Shelly (Metric Per Topic)

The scenario is the feature requested by issue hikhvar#26.

To start the scenario run:

docker-compose --env-file shelly.env up

To publish a message run:

mqttcli pub --host localhost -p 1883 -t shellies/living-room/sensor/temperature '15'

DHT22 (Object Per Topic)

The default scenario

To start the scenario run:

docker-compose --env-file dht22.env up

To publish a message run:

mqttcli pub --host localhost -p 1883 -t v1/devices/me/test -m '{"temperature":"12", "humidity":21}'