# Send message alternatig to two different outputs (display the time on Wled Matrix with blinking dots)

**URL:** <https://discourse.nodered.org/t/send-message-alternatig-to-two-different-outputs-display-the-time-on-wled-matrix-with-blinking-dots/76941>\
**Category:** General\
**Created:** [25 March 2023 20:15 UTC](https://discourse.nodered.org/t/send-message-alternatig-to-two-different-outputs-display-the-time-on-wled-matrix-with-blinking-dots/76941 "2023-03-25T20:15:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BernardS](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@BernardS](https://discourse.nodered.org/u/BernardS)\
**Post date:** [25 March 2023 20:15 UTC](https://discourse.nodered.org/t/send-message-alternatig-to-two-different-outputs-display-the-time-on-wled-matrix-with-blinking-dots/76941/1 "2023-03-25T20:15:54Z")

</div>

Hello Dear Node Red users,

I need again your help, I'm trining to figure it out since yesterday without any luck (no code writing experience).

I want to send a time stamp to a node, each second, the output should toggle, the timestamp should be once diverted to Output 1, second time to Output 2, and than again to Output 1.

I share with you what I want to achive. Maybe there is a even more neater solution.

I want to use a 8x32 Led Martix with Wled to display a stationary clock with blinking dots.  
As default Wled can only display HH:MM:SS in a scrolling form. I don't need the seconds, don't want to have the time scrolling.

The only solution which I have found, is to send the time in text format to WLED, once with dots 23:12, once without 23 12. In this way the dots are blinking and I know that my server is allive. I'm using a really dirty solution whith 2 gates which are toggled alternativelly. The problem is by interupting this flow, both gates will toggle in the same status. I would need to interlock them somehow, but have no ideea.

Help is apreciated.

Have a great evening,

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d09d43fade8e0a3a6cc672feab7bb496e3bfbf7.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [25 March 2023 21:03 UTC](https://discourse.nodered.org/t/send-message-alternatig-to-two-different-outputs-display-the-time-on-wled-matrix-with-blinking-dots/76941/2 "2023-03-25T21:03:13Z")

</div>

Try this

```auto
[{"id":"2755fd85aca0cdfe","type":"inject","z":"65617ffeb779f51c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":3600,"wires":[["abb631d039e735bc"]]},{"id":"abb631d039e735bc","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment().format(\"HH\" & ($round($$.payload / 1000) % 2 = 0 ? \":\" : \" \") & \"mm\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":3620,"wires":[["096da5809c5ea86c"]]},{"id":"096da5809c5ea86c","type":"debug","z":"65617ffeb779f51c","name":"debug 252","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":510,"y":3560,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![BernardS](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@BernardS](https://discourse.nodered.org/u/BernardS)\
**Post date:** [25 March 2023 21:28 UTC](https://discourse.nodered.org/t/send-message-alternatig-to-two-different-outputs-display-the-time-on-wled-matrix-with-blinking-dots/76941/3 "2023-03-25T21:28:19Z")

</div>

Thanks again E1cid! It works great!

---

<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:** [8 April 2023 21:29 UTC](https://discourse.nodered.org/t/send-message-alternatig-to-two-different-outputs-display-the-time-on-wled-matrix-with-blinking-dots/76941/4 "2023-04-08T21:29:17Z")

</div>

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