# Python shell to msg.Topic for OPCUA client

**URL:** <https://discourse.nodered.org/t/python-shell-to-msg-topic-for-opcua-client/48040>\
**Category:** General\
**Created:** [5 July 2021 09:13 UTC](https://discourse.nodered.org/t/python-shell-to-msg-topic-for-opcua-client/48040 "2021-07-05T09:13:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niente](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@Niente](https://discourse.nodered.org/u/Niente)\
**Post date:** [5 July 2021 09:13 UTC](https://discourse.nodered.org/t/python-shell-to-msg-topic-for-opcua-client/48040/1 "2021-07-05T09:13:56Z")

</div>

Hello,  
I am experimenting a little with OPCUA in Node Red and would like to read a variable from a Python script in Node Red and transfer it to the OPCUA client in order to write a variable on the OPC server. I know how to do this with a dashboard switch, there is an entry for msg.Topic, where the name of the server variable to be written is entered. I also know how to read in a variable from a python script using the python-shell node. But how can I pass the variable to the OPCUA-Client Node and define which server variable is to be written?

---

<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:** [3 September 2021 09:14 UTC](https://discourse.nodered.org/t/python-shell-to-msg-topic-for-opcua-client/48040/2 "2021-09-03T09:14:35Z")

</div>

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