# \[Announce\] node-red-contrib-ui-level 0.1.0

**URL:** <https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584>\
**Category:** Share Your Nodes\
**Created:** [16 September 2019 16:49 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584 "2019-09-16T16:49:44Z")\
**Posts on this page:** 12\
**Page:** 3

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [1 October 2019 20:30 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/41 "2019-10-01T20:30:23Z")

</div>

> [@Paul-Reed](#):
>
> Not a problem though.

Yeah. Maybe. But not practical anyway.  
Try this for negative space

```auto
[{"id":"1c6b12ea.a2349d","type":"ui_level","z":"37e0d918.b92d36","group":"bbab2560.6f8948","order":2,"width":7,"height":1,"name":"","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":100,"segWarn":"","segHigh":"","unit":"units","layout":"sh","channelA":"","channelB":"","decimals":"2","animations":"reactive","shape":"1","colorschema":"fixed","textoptions":"default","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"","colorFromTheme":true,"textAnimations":false,"hideValue":false,"peakmode":true,"peaktime":"2350","x":570,"y":460,"wires":[]},{"id":"a7b5c51f.ca8168","type":"inject","z":"37e0d918.b92d36","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":560,"wires":[["315d72cf.c28d8e"]]},{"id":"73e37ab1.feea34","type":"random","z":"37e0d918.b92d36","name":"","low":"20","high":"100","inte":"false","property":"payload","x":370,"y":460,"wires":[["1c6b12ea.a2349d","8aede00f.93b28"]]},{"id":"a55cc293.063b8","type":"ui_button","z":"37e0d918.b92d36","name":"","group":"bbab2560.6f8948","order":5,"width":0,"height":0,"passthru":false,"label":"change segments","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":670,"wires":[["113e4f26.b8f7c1"]]},{"id":"315d72cf.c28d8e","type":"delay","z":"37e0d918.b92d36","name":"","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"0","randomLast":"650","randomUnits":"milliseconds","drop":false,"x":220,"y":470,"wires":[["73e37ab1.feea34","9adb18b6.e017a8"]]},{"id":"8aede00f.93b28","type":"ui_level","z":"37e0d918.b92d36","group":"bbab2560.6f8948","order":1,"width":3,"height":3,"name":"","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":100,"segWarn":"","segHigh":"","unit":"units","layout":"sv","channelA":"","channelB":"","decimals":"2","animations":"soft","shape":"2","colorschema":"fixed","textoptions":"default","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"","colorFromTheme":true,"textAnimations":false,"hideValue":false,"peakmode":true,"peaktime":"2350","x":570,"y":420,"wires":[]},{"id":"1390c4f7.49f16b","type":"ui_level","z":"37e0d918.b92d36","group":"bbab2560.6f8948","order":3,"width":7,"height":2,"name":"","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":"-90","max":"0","segWarn":"-50","segHigh":"-30","unit":"units","layout":"ph","channelA":"","channelB":"","decimals":"2","animations":"reactive","shape":"3","colorschema":"fixed","textoptions":"default","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"","colorFromTheme":true,"textAnimations":false,"hideValue":false,"peakmode":true,"peaktime":"6543","x":690,"y":570,"wires":[]},{"id":"f00a2ff1.99de","type":"join","z":"37e0d918.b92d36","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":530,"y":560,"wires":[["1390c4f7.49f16b"]]},{"id":"9adb18b6.e017a8","type":"random","z":"37e0d918.b92d36","name":"","low":"-90","high":"0","inte":"false","property":"payload","x":390,"y":560,"wires":[["f00a2ff1.99de"]]},{"id":"113e4f26.b8f7c1","type":"function","z":"37e0d918.b92d36","name":"","func":"msg = {}\nmsg.control = {seg1:-80, seg2:-30};\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":670,"wires":[["1390c4f7.49f16b"]]},{"id":"a79b2a3.6e834d8","type":"function","z":"37e0d918.b92d36","name":"","func":"msg = {}\nmsg.control = {seg1:-60, seg2:-50};\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":710,"wires":[["1390c4f7.49f16b"]]},{"id":"881da415.789fd8","type":"ui_button","z":"37e0d918.b92d36","name":"","group":"bbab2560.6f8948","order":6,"width":0,"height":0,"passthru":false,"label":"change segments","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":300,"y":710,"wires":[["a79b2a3.6e834d8"]]},{"id":"bbab2560.6f8948","type":"ui_group","z":"","name":"G1","tab":"13731dc0.622ff2","disp":true,"width":"10","collapse":false},{"id":"13731dc0.622ff2","type":"ui_tab","z":"","name":"HOME","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [1 October 2019 21:15 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/42 "2019-10-01T21:15:14Z")

</div>

> [@Paul-Reed](#):
>
> I'm not changing the segments, the segments remain a constant

The hard question is - should the node be prepared to deal and still behave nicely with all such non practical and misleading use cases? And what is still nice behavior in this kind of therms? To develop protection against it - at one point there is more dead weight in code than actually needed functionality.  
Is there some sort of scales of reasonability? I'm a little confused.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [1 October 2019 21:29 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/43 "2019-10-01T21:29:43Z")

</div>

> [@hotNipi](#):
>
> with all such non practical and misleading use cases?

I didn't think it was a "non practical and misleading use case", it seems totally natural for flows to be constructed in that manner, but that's maybe because I'm not a proficient coder.  
But if you have a different view, that's fair enough - it's your contrib-node, do as you wish!!

I was only offering my comments for you to consider and hopefully improve the usability of your node from a user perspective, and certainly with no intention to be "misleading"...

I'll leave it at that.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [1 October 2019 21:41 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/44 "2019-10-01T21:41:18Z")

</div>

> [@Paul-Reed](#):
>
> it seems totally natural for flows to be constructed in that manner, but that's maybe because I'm not a proficient coder

This is the point. And your codding skills are not under discussion. You are doing all the best with available tools and the result is perfect. Best feedback ever for my doings. 🙂

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [2 October 2019 06:19 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/45 "2019-10-02T06:19:59Z")

</div>

**v0.1.18** published  
Thank you @Paul-Reed to lead me into this. 🍻

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [3 October 2019 15:30 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/46 "2019-10-03T15:30:24Z")

</div>

**V0.1.19** published  
Fixed bugs:

1. Peak reset not working (0.1.18)
2. Firefox stripe animation starts from low end, not from current position
3. Value text animation does not work on pair layout (only bottom value is animated)

---

<div class="post-metadata">

**Author:** ![realjax](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/realjax/32/895_2.png) [@realjax](https://discourse.nodered.org/u/realjax)\
**Post date:** [8 November 2019 09:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/47 "2019-11-08T09:27:15Z")

</div>

Just upgraded to 0.1.21 ( Still running on nodered 0.20)  
Now none of my levels works anymore and for each I have implemented there is this in the log files:

```auto
TypeError: Converting circular structure to JSON
    at JSON.stringify (<anonymous>)
    at HTML (/home/pi/.node-red/node_modules/node-red-contrib-ui-level/ui-level.js:27:27)
    at new LevelNode (/home/pi/.node-red/node_modules/node-red-contrib-ui-level/ui-level.js:748:16)
    at Object.createNode (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/util.js:483:31)
    at Flow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/Flow.js:162:44)
    at start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:329:33)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

```

---

<div class="post-metadata">

**Author:** ![realjax](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/realjax/32/895_2.png) [@realjax](https://discourse.nodered.org/u/realjax)\
**Post date:** [8 November 2019 09:36 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/48 "2019-11-08T09:36:22Z")

</div>

Just upgraded to Node 1.0.2 . and the problems went away. So ui-level is no longer compatible with older NodeRed versions from the looks of it.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [8 November 2019 10:07 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/49 "2019-11-08T10:07:19Z")

</div>

Glad you mentioned it, sad to hear it.  
Tried to figure out the version where it still working - seems to be Node-RED v0.20.5

---

<div class="post-metadata">

**Author:** ![Allappamp](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Allappamp](https://discourse.nodered.org/u/Allappamp)\
**Post date:** [25 January 2020 18:48 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/50 "2020-01-25T18:48:59Z")

</div>

Hello sir,

I have one problem please help me to solve that  
i have a serial data ex: "Device ID | Device Data" "1|232" and "2|232" and "3|232"  
i want to segregate data and place the data into separate ui text outputs.  
if device ID=1 Data should store in Text1  
if device ID=2 Data should store in Text2

please help me to solve this

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 January 2020 18:58 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/51 "2020-01-25T18:58:01Z")

</div>

@Allappamp is this related to the ui-level node this old topic is discussing? If not, please start a new topic.

---

<div class="post-metadata">

**Author:** ![Allappamp](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Allappamp](https://discourse.nodered.org/u/Allappamp)\
**Post date:** [25 January 2020 19:10 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584/52 "2020-01-25T19:10:03Z")

</div>

Ok I will create new toppic

[Previous page](https://discourse.nodered.org/t/announce-node-red-contrib-ui-level-0-1-0/15584.md?page=2)
