frangoteam / FUXA

Web-based Process Visualization (SCADA/HMI/Dashboard) software
https://frangoteam.org
MIT License
2.73k stars 804 forks source link

[BUG]The component color cannot be displayed correctly when blink stops. #1260

Closed wyplzx closed 1 month ago

wyplzx commented 3 months ago

Describe the bug There are two fields, VALUE and ERR. The field of VALUE controls the display color of components (such as rectangles), and the field of ERR controls the blink action of the components. When its VALUE=0, set the color of the component to green. When its VALUE=1, set the color of the component to red. When its ERR=1, set the component to blink, the blink color is between yellow and blue.

To Reproduce Steps to reproduce the behavior:

  1. set VALUE=0 and ERR=0. the color of the component is green, and the component does not blink. 01-01

  2. set VALUE=0 and ERR=1. the component blinks. 02-01 02-03

  3. set VALUE=1 and ERR=0. the component stops blink, but the color of the component is green, not red. 03-01

  4. See error

Expected behavior at step of No.3. when set VALUE=1 and ERR=0. the component stops blink, the color of the component should be red.

Screenshots If applicable, add screenshots to help explain your problem.

Environment

unocelli commented 2 months ago

Hi, can you share a project example please?

Pelikan-71-57-1 commented 2 months ago

Does this help you (got more or less the same Problem) if you have Questions I will try to help

you can see the Problem in the 0_0_0_Main_Screen window the tiles Schlafzimmer and ROBO should change color when you click on them it was working in the Previous Version fuxa-project(1).json

wyplzx commented 2 months ago

It uses fuxa server variables as test parameters. Because fuxa server parameters cannot modify two field variables at the same time. Reproduce using the same ERR parameter in the test demo. For component color settings: ERR=0: Display in green. ERR=1: Display red and provide flashing (alternating yellow/blue colors). Reproduction process:

  1. When setting ERR=0, green is displayed. (Normal)
  2. When setting ERR=1, it flashes. (Normal)
  3. When setting ERR=0, stop flashing. But it shows red instead of green. test_fuxa-project.json pictures: (1).Initial Screen 01 (2). set initial value: (OUT=0, ERR=0) 03 (3).set ERR=1: The shape turns the color red, then blinks. 04 05 (4).reset ERR=0: the shape does not blink, but the color is red, not green. 06
unocelli commented 2 months ago

Hi, Thanks for the report. we fix it as soon as possible

wyplzx commented 2 months ago

hi, @unocelli @Pelikan-71-57-1, Thank you very much. Good job. Looking forward to the release of the new repaired version.

unocelli commented 1 month ago

I’m going to close this as resolved. let me know if you have any issues.

wyplzx commented 3 weeks ago

hi, @unocelli Which version branch this bug has been merged and resolved to? I upgrade my environment to FUXA V.1.2.0-1815 (install by docker. ) After checking, the fault seems still exist. Thank you.. QQ20240905-172001