hotNipi / node-red-contrib-ui-level

A linear level type widget to the Node-RED dashboard
MIT License
27 stars 6 forks source link

Requirements Question #16

Closed Digital-Thor closed 4 years ago

Digital-Thor commented 4 years ago

Hello. Thanks for this cool bar-graphing display for node-red! I'm having some troubles getting it working. I can see a bit of a scale and a number that changes to match my slider, but no segments of the bar-graph (see screenshot). My system and startup info is below. Any suggestions?

cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" VERSION_CODENAME=stretch ID=raspbian ID_LIKE=debian

Node-RED version: v0.20.8 Node.js version: v8.16.2 Linux 4.19.66-v7+ arm LE Dashboard version 2.17.1 started at /ui Context store : 'default' [module=memory]

image

Digital-Thor commented 4 years ago

I figured out the problem. It seems to be dependent on the dashboard "1x1 Widget Size". This setting is found in the right side panel dashboard tab, with Site sub-tab. The Node-Red default is 48 x 48. Mine was at 24 x 24 for tighter layout purposes, but I'm okay with 48 x 48. Working great now!

image

hotNipi commented 4 years ago

That is actully something I should mention somehow at info page. I need to figure out minimum 1x1 widget size where it still working.

Thank you for report.

hotNipi commented 4 years ago

Version 0.1.21 may be slightly better in terms of supporting smaller 1x1 unit sizes. There will be some disadvantages as you can not use intermediate ticks with single horizontal layout as there is not much space to place the value field then (or vice versa). But default works and you actually can take advantage of small widget sizes. I think that's all I can do about it.

Digital-Thor commented 4 years ago

Much better. Thank you @hotNipi. Here's what it looks like at:

image