Skip to content
Snippets Groups Projects
Commit afe36610 authored by Joost Hemmen's avatar Joost Hemmen :basketball:
Browse files

Apply 4 suggestion(s) to 4 file(s)

parent ac4f8c89
No related branches found
No related tags found
1 merge request!240[cron] inform downstream service about new parsed data
Pipeline #485893 passed
......@@ -109,7 +109,7 @@ def main(thing_uuid, parameters, target_uri):
f"Successfully inserted {len(parsed_observations['observations'])} "
f"observations for thing {thing_uuid} from Bosch API into TimeIO DB"
)
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing": thing_uuid}))
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing_uuid": thing_uuid}))
if __name__ == "__main__":
......
......@@ -105,7 +105,7 @@ def main(thing_uuid, parameters, target_uri):
f"Successfully inserted {len(parsed_observations['observations'])} "
f"observations for thing {thing_uuid} from DWD API into TimeIO DB"
)
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing": thing_uuid}))
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing_uuid": thing_uuid}))
if __name__ == "__main__":
......
......@@ -126,7 +126,7 @@ def main(thing_uuid: str, parameters: str, target_uri: str):
f"Successfully inserted {len(parsed_observations['observations'])} "
f"observations for thing {thing_uuid} from NM API into TimeIO DB"
)
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing": thing_uuid}))
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing_uuid": thing_uuid}))
if __name__ == "__main__":
......
......@@ -74,7 +74,7 @@ def main(thing_uuid: str, parameters: str, target_uri: str):
f"Successfully inserted {len(post_data['observations'])} "
f"observations for thing {thing_uuid} from TTN API into TimeIO DB"
)
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing": thing_uuid}))
mqtt.send_mqtt_info("data_parsed", json.dumps({"thing_uuid": thing_uuid}))
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment