Reader small image

You're reading from  Practical Python Programming for IoT

Product typeBook
Published inNov 2020
Reading LevelIntermediate
PublisherPackt
ISBN-139781838982461
Edition1st Edition
Languages
Right arrow

Running the dweet integration service program

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:

  1. 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.
  2. 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...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Practical Python Programming for IoT
Published in: Nov 2020Publisher: PacktISBN-13: 9781838982461