jharttech / MMM-weatherforecast

Custom weather module based off of the MagicMirror default weatherforecast module. This edit allows the days to be shown across the screen with added icons.
GNU General Public License v3.0
10 stars 11 forks source link

Undefined #2

Open Banhammer1919 opened 5 years ago

Banhammer1919 commented 5 years ago

In my weatherforecast there is always a undefined in front of the city and the country. How can I get rid of it or did I forget something?

My config.js:

{
        module: "MMM-weatherforecast",
        position: "bottom_bar", // This can be any of the regions.
                    // Best results in bottom_bar region due to horizontal default layout and icon sizes.
        config: {
            // See 'Configuration options' for more information.
            location: "Hamburg",
            locationID: "2950265", //Location ID from http://openweathermap.org/help/city_list.txt
            appid: "5e8c8959418ac4c5a7d42f602xxxxxx" //openweathermap.org API key.
        }
    },

2019-09-09-154916_1920x1080_scrot

schrom commented 5 years ago

Simply add the header configuration to the module definition. This value will be prepended to the city. E.g.

{
        module: "MMM-weatherforecast",
                header: "Das Wetter in ",
        position: "bottom_bar", // This can be any of the regions.
                    // Best results in bottom_bar region due to horizontal default layout and icon sizes.
        config: {

will yield "Das Wetter in Hamburg" in your example.

MajorC1983 commented 3 years ago

Or use appendLocationNameToHeader: false, in your config to get rid of the header.