Our dweet integration service works by receiving dweets in a predefined format and turns them into MQTT topics and messages as per the configuration parameters we discussed in the previous section. We'll discuss this dweet format shortly as we run and test the dweet integration service. Here are the steps we need to follow:
- Firstly, make sure you have the Tree MQTT service program from the previous section running in a terminal. It is the Tree MQTT service that will receive and process the MQTT messages published by the dweet integration service.
- Next, navigate to the chapter14/dweet_integration_service folder in a new terminal and start the main.py program, as shown (remember your thing name will be different):
(venv) $ cd dweet_service
(venv) $ python main.py
INFO:DweetListener:Created new thing name ab5f2504
INFO:DweetListener:Dweet Listener initialized. Publish command dweets to 'https://dweet.io/dweet/for...