The dweet integration service configuration is found in the chapter14/dweet_integration_service/config.py file. There are a number of configuration options relating to how the service works, and the defaults will be adequate for running this service locally on your Raspberry Pi where you also have your Mosquitto MQTT broker running. The configuration parameters are well commented in this file; however, I will make mention of the ACTION_TOPIC_MAPPINGS and TOPIC_RETAIN_MESSAGE parameters:
ACTION_TOPIC_MAPPINGS = {
"clear": "tree/lights/clear",
"push": "tree/lights/push",
... truncated ...
}
The dweet integration service maps dweeted commands into MQTT topics. It's the ACTION_TOPIC_MAPPINGS configuration parameter that determines how commands are mapped into MQTT topics. We'll discuss this idea of commands in the next section.