MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

hourlyforecast


  • Module Developer

    https://github.com/hangorazvan/hourlyforecast

    After more tests without success on weatherforecast, I found this solution for hourly forecast.

    Duplicate weatherforecast from module/default folder to module folder,

    change weatherforecast.js to hourlyforecast.js, same for css file,

    change inside js file

    Module.register("weatherforecast", to Module.register("hourlyforecast",
    
    forecastEndpoint: "forecast/daily" to forecastEndpoint: "forecast", 
    
    day = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").format("ddd"); to day = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").format("HH:mm");
    

    Then put in config.js

    {
         module: "hourlyforecast",
         position: "top_right",
         config: {
               // See 'Configuration options' for more information.
         }
    }
    


  • This post is deleted!

Log in to reply