Dashboard 2.6.0 now out

979 views
Skip to first unread message

Dave C-J

unread,
Oct 30, 2017, 5:53:08 PM10/30/17
to Node-RED
Hi,

I have published Node-RED Dashboard 2.6.0

Enhancements

  • Let widgets have properties set by msg.ui_control object - see config-fields.md - Issue #235
  • Let charts lines have gaps by sending null as payload.

Fixes

  • Fix TTS to pick correct voice at start - Issue #291
  • Fix TTS to try to select similar voice across different browsers - Issue #292
  • Fix chart colours to re-initialise correctly on refresh - Issue #296

The key enhancement is the ability for many widget to now be more configured by  msg.ui_control  messages 
which allows you to control things like the segment sizes of gauges, thickness of the gauge, and pointer, change chart ranges , wave gauge colours and styles, dynamically set mins and maxes

Note: anything set this way is dynamic... and won't be saved - so will need to be re-set / re-sent on restarts.



Dave C-J

unread,
Oct 30, 2017, 6:11:27 PM10/30/17
to Node-RED
A couple of quick examples

 
Message has been deleted

gainestr

unread,
Oct 30, 2017, 9:30:03 PM10/30/17
to Node-RED
I'm getting "Connection Lost" status messages when I type in the dashboard UI URL in the browser.  I either have to refresh or wait for the UI to reload.  Using RaspberryPi and Safari.  Has also been tested with Chrome browser.

mike7

unread,
Oct 31, 2017, 4:56:09 AM10/31/17
to Node-RED


On Tuesday, 31 October 2017 04:30:03 UTC+3, gainestr wrote:
I'm getting "Connection Lost" status messages when I type in the dashboard UI URL in the browser.  I either have to refresh or wait for the UI to reload.  Using RaspberryPi and Safari.  Has also been tested with Chrome browser.

I've got the same issue with anonymous access, if previously logged in Node-RED there is no issue.

Dave C-J

unread,
Oct 31, 2017, 1:03:26 PM10/31/17
to node...@googlegroups.com
Thanks for spotting that - 2.6.1 pushed to fix it.

gainestr

unread,
Oct 31, 2017, 10:42:58 PM10/31/17
to Node-RED
Thanks for the fix.  Works as expected now.

wku...@gmail.com

unread,
Nov 3, 2017, 4:48:14 PM11/3/17
to Node-RED
What is the recommended procedure to upgrade from an older version?
I'm pretty new to node-red, nodejs, and npm, but finding it potentially more useful with each new tidbit I learn about!


I've already made a very useful flow to turn a cheap Android phone into an SMS message sender via MQTT using node-red installed in termux with termux:api
Works great, but certain android auto updates seem to kill the termux process, doesn't happen often, haven't figured the exact conditions out yet, but I get an MQTT "will message" when the termux flow quits and loses the broker connection.  Then another part of the system sends me an Email telling me the Android flow has died. I'd been doing this for the past few years using an Adafruit "Fona" GSM modem programmed in C, but its only gen 2 which is getting shutdown and having significant periods of "no signal".  A cheap Android phone is less expensive than the new Fona upgraded to gen 3, which I expect will start shutting down in a few more years.


I've also made a very useful "presence detector" running node-red on a Raspberry PiZero-W with Radius BLE Key Fob Beacons.  Works great, except the beacons keep randomly turning themselves off (intervals from days to hours) and eventually losing their settings.  Radius Networks is sending me some new beacons to try and sort things out.

Dave C-J

unread,
Nov 4, 2017, 6:58:27 AM11/4/17
to node...@googlegroups.com
simplest way (for me at least :-).... is to go to your Node-RED user directory - normally ~/.node-red
then run
    npm i node-red-dashboard
then stop and restart Node-RED and check the log - it should show the version in the log as it starts.

wku...@gmail.com

unread,
Nov 5, 2017, 9:42:50 AM11/5/17
to Node-RED
So is this generally true for node-red, just install again over the previous version?

I actually think this is a fine way to do things.

Thanks!

Jamie Abbott

unread,
Nov 6, 2017, 7:10:07 AM11/6/17
to Node-RED
I stumbled upon a new? feature a few days ago. Under Settings (User Settings) > Palette you can click to upgrade any package that is out of date.
 


Cheers,Jamie

Dave C-J

unread,
Nov 10, 2017, 10:35:46 AM11/10/17
to Node-RED
And pushed out 2.6.2 with a few more wrinkles ironed out

Fixes

 - Fix problem with partial deploy. If set for only modified nodes then a changed chart could mess everything else up.. - Issue #279
 - Remove `msg.` option from Button as makes no sense without any node context - Issue #301
 - Better handling of empty data series in chart data (if for some reason series "0" was empty set then the rest would not plot as the axes would fail to compute correct;y

Enhancements

 - Add time field type options to text input widget.
 - Let colour picker optionally send outputs as they change = flashy LED nonsense ahoy - Issue #299


wku...@gmail.com

unread,
Nov 13, 2017, 12:06:57 PM11/13/17
to Node-RED
Thanks for pointing this out!
It'll help me a lot as I have a hard time keeping up with all the rapid development changes.

Toshi Bass

unread,
Nov 15, 2017, 12:27:49 PM11/15/17
to Node-RED
I notice Dashboard 2.6.0 does not pass through input to output correctly on colour picker as it did before now it appears to add an extra #     see attached

Top is msg.payload through color picker

Bottom is msg.payload direct 
Capture.JPG

Toshi Bass

unread,
Nov 15, 2017, 2:11:07 PM11/15/17
to Node-RED
hmmm   I appear to have solved my issue   if I choose to send payload as a Object it works correctly but adds the extra # if I send payload as a String,  I am pretty sure this was not the case prior to 2.6.0 as I didn't change anything in my flow and it was working prior to updating,   unless the node default changed from send Object to send String I suppose !

Dave C-J

unread,
Nov 15, 2017, 2:17:20 PM11/15/17
to node...@googlegroups.com
I think it's a bug
--
Sent from phone.

Dave C-J

unread,
Nov 15, 2017, 2:38:07 PM11/15/17
to node...@googlegroups.com
can you raise an issue with a small example to clarify if possible - thanks

Toshi Bass

unread,
Nov 16, 2017, 4:48:16 AM11/16/17
to Node-RED
ok done, but be advised this issue is on Dashboard 2.6.2 not Dashboard 2.6.0 as previously stated in my post (sorry).

M Lugo

unread,
Nov 21, 2017, 8:55:25 PM11/21/17
to Node-RED
Hi,
I using dashboard 2.1.0 with node-red 0.17.5
 I have been trying to update to 2.6.0 with the command npm i node-red-dashboard  but when I run node-red I see the old version
Gratefull if anyone can help providing a procedure to update to dashboard versio 2.6.0.

Thanks you

Julian Knight

unread,
Nov 22, 2017, 3:40:57 AM11/22/17
to Node-RED
Where are you in the filing system when you try to run that? You need to be in your userDir which is normally ~/.node-red
Message has been deleted

Joel Wakefield

unread,
Nov 28, 2017, 5:46:54 AM11/28/17
to Node-RED
Dave CJ,
Could you please post this flow? I would like to create something similar in my dashboard.

Thanks for your contribution! NR and NR Dashboard is great!

Dave C-J

unread,
Nov 28, 2017, 6:35:56 AM11/28/17
to node...@googlegroups.com
Hi
Which flow ?
--
Sent from phone.
Message has been deleted

Joel Wakefield

unread,
Nov 28, 2017, 7:54:51 PM11/28/17
to Node-RED
Dave CJ,

I was hoping to take a look at your flows (Posted in this thread on Oct. 30) to figure out what I am doing wrong in trying to modify the format of a fill gauge type dashboard icon.  I suspect my "msg.ui_config" syntax is off, but i'm not very sure how to correct it.  Here is my flow:

[{"id":"4b6a5a4d.72c91c","type":"ui_gauge","z":"3778552e.a5b92a","name":"Water Level","group":"9250f352.dd0a8","order":0,"width":0,"height":0,"gtype":"wave","title":"Water Level","label":"","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":817,"y":560,"wires":[]},{"id":"343b6afc.c1d346","type":"random","z":"3778552e.a5b92a","name":"","low":"0","high":"100","inte":"true","x":427,"y":560,"wires":[["a1a7d761.7b9628"]]},{"id":"a1a7d761.7b9628","type":"change","z":"3778552e.a5b92a","name":"Gauge format","rules":[{"t":"set","p":"ui_control","pt":"msg","to":" {\"options\":{\"waveCount\":5}}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":607,"y":560,"wires":[["4b6a5a4d.72c91c","bd51e6a9.51a41"]]},{"id":"bd51e6a9.51a41","type":"debug","z":"3778552e.a5b92a","name":"","active":true,"console":"false","complete":"true","x":797,"y":599,"wires":[]},{"id":"66251d52.cb1c84","type":"inject","z":"3778552e.a5b92a","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"x":190,"y":560,"wires":[["343b6afc.c1d346"]]},{"id":"9250f352.dd0a8","type":"ui_group","z":"","name":"System Status","tab":"ad770e7a.839b48","order":1,"disp":true,"width":"4"},{"id":"ad770e7a.839b48","type":"ui_tab","z":"","name":"SmartGarage","icon":"dashboard","order":1}]

Thanks again!

Dave C-J

unread,
Nov 29, 2017, 10:38:15 AM11/29/17
to node...@googlegroups.com
only bit you missed is that the change node needs to set the type to be a json message

Inline images 1

Dj Jastrzębowski

unread,
Dec 5, 2017, 4:06:12 AM12/5/17
to Node-RED
Nice Work :-)

 
I have questions from beginer how to inject msg.payload to JSON ?


{
    "options": {
        "min": 0,
        "max": "msg.payload"
    }

?

Dj Jastrzębowski

unread,
Dec 5, 2017, 8:05:42 AM12/5/17
to Node-RED
I have solution maybe need sombady in future
[{"id":"a0462ee5.430c9","type":"function","z":"e2b997af.cc6188","name":"","func":"var min     = 0; \nvar max   = msg.payload;\nmsg.topic=\"ui_control\";\nmsg.ui_control = {\n  \"min\": min,\n  \"max\": max \n}\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":1140,"wires":[["98039598.178798"]]},{"id":"90996ee6.e08b2","type":"inject","z":"e2b997af.cc6188","name":"","topic":"","payload":"123","payloadType":"str","repeat":"","crontab":"","once":false,"x":70,"y":1140,"wires":[["a0462ee5.430c9"]]},{"id":"98039598.178798","type":"json","z":"e2b997af.cc6188","name":"","pretty":false,"x":430,"y":1140,"wires":[["9f630f8e.941f6"]]},{"id":"9f630f8e.941f6","type":"change","z":"e2b997af.cc6188","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":1140,"wires":[["2e67a55d.b7d0ca","bac2c411.e4a4e"]]}]
Reply all
Reply to author
Forward
0 new messages