Page 1 of 1

Wind direction string in Dial

Posted: Monday 27 March 2023 14:16
by onkelgeorg
Hi all,

after creating my dashboard without asking here, but reading carefully, I came around a problem which may have not been addressed before:

I want to show the wind direction string in my wind dial, but it doesn't work no matter what I try.

The string is present in the json output:

Code: Select all

sorry, I tried to post the json output here, but phpBB denied to do so

And it appears with the 'normal' data display but not shown in the dial after I switch to 'values'

For the screenshot I added the numbers instead of the string, but if I change it to "DirectionStr" or "Data1" it remains empty.

Any help is highly appreciated

Cheers,
Joerg

Re: Wind direction string in Dial

Posted: Saturday 04 November 2023 14:35
by willemd
Found it.
If you add the following to the dial definition, it will show the direction as text (short):

Code: Select all

    
    values: [
        {
            value: 'DirectionStr',
            label: 'From',
            type: 'text',
        },
    ],
specifically the line "type: 'text'" solves the issue

Re: Wind direction string in Dial

Posted: Friday 09 February 2024 9:04
by onkelgeorg
Yes, you are the greatest! It works perfectly.

Thanks a lot for sharing 👍