# I am trying to program a traffic light that is powered by OPC UA Data

**URL:** <https://discourse.nodered.org/t/i-am-trying-to-program-a-traffic-light-that-is-powered-by-opc-ua-data/50207>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [26 August 2021 12:16 UTC](https://discourse.nodered.org/t/i-am-trying-to-program-a-traffic-light-that-is-powered-by-opc-ua-data/50207 "2021-08-26T12:16:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [26 August 2021 12:25 UTC](https://discourse.nodered.org/t/i-am-trying-to-program-a-traffic-light-that-is-powered-by-opc-ua-data/50207/2 "2021-08-26T12:25:00Z")

</div>

Hello and welcome to the Node-RED forum.

I think you need to give us a bit more information and post your flow so people can help you.  
Also are you talking about a real bulb or a virtual bulb??

PS:  
I know nothing about OPCUA - but assume you are checking if an output is between a certain range of values to decide which bulb to illuminate?

PPS:  
You can read how to post a flow here...

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

---

_[View the full topic](https://discourse.nodered.org/t/i-am-trying-to-program-a-traffic-light-that-is-powered-by-opc-ua-data/50207)._
