Wind direction string in Dial

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
onkelgeorg
Posts: 2
Joined: Monday 27 March 2023 12:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Contact:

Wind direction string in Dial

Post 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
Attachments
json.png
json.png (30.11 KiB) Viewed 1298 times
dial.png
dial.png (146.23 KiB) Viewed 1298 times
willemd
Posts: 630
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Wind direction string in Dial

Post 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
onkelgeorg
Posts: 2
Joined: Monday 27 March 2023 12:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Contact:

Re: Wind direction string in Dial

Post by onkelgeorg »

Yes, you are the greatest! It works perfectly.

Thanks a lot for sharing 👍
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests