MariusHerget/MMM-HASS-Chart

Can not get it to display

Opened this issue · 1 comments

Hello, I have been messing around with this for about 4 or 5 hours now. I have followed your examples and some examples on the MMM-Charts project to figure out how to get this to display. I seen that it has to have the "name" option added to the "config" section so I can add the .my_chart_name to custon.css file to get it to display as you suggested. But I have not been able to get it to display anything. The base layout shows, but no actual chart or any of my data. You don't really have any examples of where the the HASS token has to go to so I added the "token:" to the config section. Is that correct? Here is a snippet of my code, am I missing something that is causing it to not display anything?

`
config: {

            name: "temperature",
            host: "IP_Address",
            port: "8123",
            https: false,
            token: "some_long_token",
            start_days: "7",
            end_days: "0",
            groupBy: "byHour",
            chartType: "line",

`

As for my charts section, I just updated the entity name to be mine. and the other sections that you have in your example, I just copied and left alone as well. Any help would be greatly appreciated. Thank you.

I was able to finally get it to display the data. It was reading the token: variable in the config, so I googled how to set the process.env variable. I couldn't figure that out either, but I found in the node_helper.js file the "(process.env.HASSIO_TOKEN ? process.env.HASSIO_TOKEN : config.token)" section and deleted that and added my HASS token and now it works.