Read the statement by Michael Teeuw here.
MMM-Sunrise-Sunset
-
@pugsly not in config… you have to edit the actual module code
-
@sdetweil Not sure I know what you mean. When I put this in my config the screen is all blank:
{ module: "MMM-Sunrise-Sunset", position: "top_right", header: "Sunrise", config: { latitude: "39.2907", longitude: "-75.6344", apikey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", layout: "inline" } },
-
@pugsly open the developers window on your blank screen MM, using ctrl-shift-i on the keyboard… select the tab labeled console and scroll up to find any errors
-
Uncaught ReferenceError: $ is not defined
at Class.updateSun (MMM-Sunrise-Sunset.js:33)
at Class.start (MMM-Sunrise-Sunset.js:12)
at startModules (loader.js:55)
at loader.js:40
at HTMLLinkElement.stylesheet.onload (loader.js:200) -
@pugsly said in MMM-Sunrise-Sunset:
Uncaught ReferenceError: $ is not defined
this module depends on jquery library being installed for this module, but its not…,
I am working on instructions for you… hang on
do
cd ~/MagicMirror/modules/MMM-Sunrise-Sunset npm install jquery # note the trailing dot (.) on the next line cp node_modules/jquery/dist/jquery.js .
then start your mirror again
-
@sdetweil said in MMM-Sunrise-Sunset:
cp node_modules/jquery/dist/jquery.js .
Slightly better, its displaying now but just says ‘Loading’
-
@pugsly ok, open the developers window again
this usually means that the api key is wrong … the api isn’t returning data
-
@sdetweil
Its not passing the API key in the HTML request.https://api.ipgeolocation.io/astronomy?apiKey=&lang=en&lat=39.2907&long=-75.6344 401
-
@pugsly said in MMM-Sunrise-Sunset:
apikey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
yep, case sensitive, it apiKey
-
@pugsly NVM… the K in apiKey is a capital. Its working now.