MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    OpenWeather hangorazvan / onecall

    Utilities
    troubleshoot hangorazvan onecall
    2
    4
    153
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      N6NG last edited by

      OpenWeather OneCall
      I’m trying to install the OpenWeather OneCall module hangorazvan / onecall
      I had my mirror working just fine but when I add just this much of the module on my mirror all I get is a blank screen when I restart MagicMirror.

      /*
      {
      module: “MMM-OneCallWeather”,
      position: “top_right”, // This can be any of the region
      // Best results in bottom_bar region due to horizontal$
      config: {
      // See ‘Configuration options’ for more information.
      latitude: “37.971”, //Longitude from https://www.latlong.net/
      longitude: “122.398”, //Longitude from https://www.latlong.net/ - is $
      apikey: “425d9f429396abcdeabcdeabcde5b4443bba3” //Not my real apikey of course.
      //openweathermap.org API k$
      },
      },
      */

      Any help

      hango 1 Reply Last reply Reply Quote 0
      • hango
        hango Module Developer @N6NG last edited by hango

        @n6ng read carefully readme.md in my repository, I was as explicit as possible. I don’t know where you got the configuration from. The name of the module and folder must be “onecall” without MMM or other wierd name, it is not mandatory that all modules have MMM as I see most have.

        first you need to put in config.js Onecall API loader

        {
        	module: "onecall/loader",
        	config: {
        		lat: "",	// your location latitude,
        		lon: "", 	// your location longitude,
        		appid: "",	// your Openweathermap appid
        		appid2: "", 	// optional
        		backup: "", 	// optional backup appid
        		dayUpdateInterval: 10 * 60 * 1000, 	// every 10 minutes
        		nightUpdateInterval: 15 * 60 * 1000,	// every 15 minutes
        	}
        },
        

        then put the module instance you need, for current weather

        {
        	module: "onecall",
        	position: "top_right",
        	header: "Current Weather",
        	classes: "current weather",
        	config: {
        		endpointType: "current", 	// "current", "hourly", "daily" or "aqi"
        		oneLoader: true,		// very important for just one API call
        	}
        },
        

        for hourly forecast

        {
        	module: "onecall",
        	position: "top_right",
        	header: "Hourly Weather Forecast",
        	classes: "hourly forecast",
        	config: {
        		maxNumberOfDays: 3,
        		fullday: "HH.mm",	// "HH.mm" for hourly
        		endpointType: "hourly",	// "current", "hourly", "daily" or "aqi"
        		oneLoader: true,	// very important for just one API call
        	}
        },
        

        for daily forecast

        {
        	module: "onecall",
        	position: "top_right",
        	header: "Daily Weather Forecast",
        	classes: "daily forecast",
        	config: {
        		maxNumberOfDays: 6,
        		fullday: "dddd",	// "dddd" for full day name
        		endpointType: "daily",	// "current", "hourly", "daily" or "aqi"
        		oneLoader: true, 	// very important for just one API call
        	}
        },
        

        Check the other settings but do not make any changes in the module, copy what you want to change in config.js to the respective instance of the module. I also mentioned how you can add specific compliments in config.js and styles in custom.css

        1 Reply Last reply Reply Quote 0
        • N
          N6NG last edited by

          So sorry… Your right of course…I don’t know how I got it confused either… I’ll check it again and won’t make that mistake again…
          Again I apologize for the error… I should know better than that and be more careful.
          Thank you for replying.
          Dennis N6NG

          hango 1 Reply Last reply Reply Quote -1
          • hango
            hango Module Developer @N6NG last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy