Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget showing wrong color #1613

Open
JorgeAlberto91MS opened this issue Feb 6, 2025 · 1 comment
Open

Widget showing wrong color #1613

JorgeAlberto91MS opened this issue Feb 6, 2025 · 1 comment
Labels
bug Something isn't working needs-triage Needs looking at to decide what to do

Comments

@JorgeAlberto91MS
Copy link

Current Behavior

Widget is configured as a determinated color X, but now is not showing X, but black color

Image

Expected Behavior

Show X Color in both zones

Steps To Reproduce

Not sure,

Environment

  • Dashboard version: 1.22.1
  • Node-RED version: 4.0.0
  • Node.js version: v22.4.1
  • npm version: 10.8.1
  • Platform/OS: Ubuntu / macOS
  • Browser: Chromium / Chrome / Safari

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

@JorgeAlberto91MS JorgeAlberto91MS added bug Something isn't working needs-triage Needs looking at to decide what to do labels Feb 6, 2025
@Paul-Reed
Copy link
Contributor

Paul-Reed commented Feb 12, 2025

I'm not sure that I fully understand your issue, but I've created the flow below to demonstrate the widget working as expected.
Please try the flow, and let me know if it works for you & clarifies the configuration.
If not, please upload a simple flow to display the problem, and maybe tell us a little more of about your issue.

[{"id":"a852d7f92900e42e","type":"ui-gauge","z":"59e13ebc8d9ca735","name":"Test","group":"e1a1d1d0f2c36e60","order":0,"width":3,"height":3,"gtype":"gauge-half","gstyle":"needle","title":"Test","units":"Watts","icon":"","prefix":"","suffix":"","segments":[{"from":"0","color":"#5cd65c"},{"from":"2000","color":"#ffc800"},{"from":"4000","color":"#ea5353"},{"from":"6000","color":"#4936d3"}],"min":0,"max":"8000","sizeThickness":16,"sizeGap":4,"sizeKeyThickness":8,"styleRounded":true,"styleGlow":false,"className":"","x":415,"y":145,"wires":[]},{"id":"3a2c547b975504c8","type":"inject","z":"59e13ebc8d9ca735","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1.5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":115,"y":145,"wires":[["e995f2b5ed29d6df"]]},{"id":"e995f2b5ed29d6df","type":"function","z":"59e13ebc8d9ca735","name":"random number","func":"msg.payload = Math.floor(Math.random() * 8000) + 1\n\nreturn msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":265,"y":145,"wires":[["a852d7f92900e42e"]]},{"id":"e1a1d1d0f2c36e60","type":"ui-group","name":"Group Name","page":"b058f57aa8133a26","width":"6","height":"1","order":1,"showTitle":true,"className":"","visible":"true","disabled":"false","groupType":"default"},{"id":"b058f57aa8133a26","type":"ui-page","name":"Page Name","ui":"8c151b59721a8d9a","path":"/page2","icon":"home","layout":"grid","theme":"6a4b46dde830beb1","breakpoints":[{"name":"Default","px":"0","cols":"3"},{"name":"Tablet","px":"576","cols":"6"},{"name":"Small Desktop","px":"768","cols":"9"},{"name":"Desktop","px":"1024","cols":"12"}],"order":1,"className":"","visible":"true","disabled":"false"},{"id":"8c151b59721a8d9a","type":"ui-base","name":"Homeserver","path":"/dashboard","appIcon":"https://homeserver.forest-bicolor.ts.net/icon","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false,"navigationStyle":"default","titleBarStyle":"default","showReconnectNotification":true,"notificationDisplayTime":"1","showDisconnectNotification":true},{"id":"6a4b46dde830beb1","type":"ui-theme","name":"Default Theme","colors":{"surface":"#ffffff","primary":"#0094CE","bgPage":"#eeeeee","groupBg":"#ffffff","groupOutline":"#cccccc"},"sizes":{"density":"default","pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}}]

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Needs looking at to decide what to do
Projects
Status: Backlog
Development

No branches or pull requests

2 participants