Skip to content
This repository was archived by the owner on Aug 3, 2020. It is now read-only.
This repository was archived by the owner on Aug 3, 2020. It is now read-only.

Can't display values #14

@Geoffibs

Description

@Geoffibs

Firstly, thank you for your help earlier in the year with multiple sources. Illness had prevented me from trying but a lot better now so dragged my MM out to play with again.

I have the latest version of MMM-json-feed and my issue is that I can't display individual values that worked previously. If I leave the "values:" out of config, it displays the json contents fine so I'm sure it's me just being daft but I just cannot get the right format it needs. I've not tried the earlier versions as I like the new one with multiple URL's so I can get my data from different devices.

I have attached the json data it gets.

I've tried playing around with the array function and just a plain values: ["Temperature", Humidity","Pressure"]

But I either get nothing displaying (other than the title) or "Error fetching data".

I do appreciate you are onto other things so if you have a quick moment to look at it I would be really grateful.

Thank you.

This is the config that displays the full json data. (the values are correct, it's very wet and very cold here in the UK!)

            {
                    module: "MMM-json-feed",
                    position: "top_left",
                    config: {
                    urls: [
                            "http://192.168.0.121/json?tasknr=1"
                            ],
                    title: "Rear Garden",
                    values: [
                            ]
                     }
            },

This is the result:

{
"TaskValues": [
{"ValueNumber":1,
"Name":"Temperature",
"NrDecimals":2,
"Value":0.96
},
{"ValueNumber":2,
"Name":"Humidity",
"NrDecimals":2,
"Value":100.00
},
{"ValueNumber":3,
"Name":"Pressure",
"NrDecimals":2,
"Value":1016.90
}],
"TTL":60000,
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"false"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":60,
"Type":"Environment - BMx280",
"TaskName":"rrenv",
"TaskEnabled":"true",
"TaskNumber":1
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions