# Multi-site MQTT Topic

**URL:** <https://discourse.nodered.org/t/multi-site-mqtt-topic/63532>\
**Category:** General\
**Tags:** mqtt\
**Created:** [6 June 2022 19:50 UTC](https://discourse.nodered.org/t/multi-site-mqtt-topic/63532 "2022-06-06T19:50:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LinkView\_Maze](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@LinkView\_Maze](https://discourse.nodered.org/u/LinkView_Maze)\
**Post date:** [6 June 2022 19:50 UTC](https://discourse.nodered.org/t/multi-site-mqtt-topic/63532/1 "2022-06-06T19:50:33Z")

</div>

hello  
I plan to deploy several raspberries with node red and an MQTT broker to monitor in a "PCVUE" hypervisor.  
Each site has a 4-digit number in a text file in /home/pi/Documents/sitenumber.txt .

My node-red has a lot of in or out topics, I would like to be able to modify all the topics by modifying the text file.

example topic: /site n°/bedroom/temp

Thank you for your help

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 June 2022 20:03 UTC](https://discourse.nodered.org/t/multi-site-mqtt-topic/63532/2 "2022-06-06T20:03:14Z")

</div>

In Node-RED version 2.1.1, the mqtt node allows dynamic subscriptions. Take a look on the 'Help' tab when hi-liting the mqtt node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 August 2022 20:03 UTC](https://discourse.nodered.org/t/multi-site-mqtt-topic/63532/3 "2022-08-05T20:03:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
