Read the statement by Michael Teeuw here.
MMM-Sunrise-Sunset
-
@vbloke i changed the config file to lowercase,that fixed the layout
as for the api?not sure what the options are,i’ll see if i can an alternative,
thanks for your help -
@mrdenmark the API returns all dates in UTC, so I may look at putting a time zone offset option in the config, or if you feel confident doing that yourself, feel free to try.
-
would it be possible to add a line with the day length?i’m not sure how to go about adding a time offset,i’ll do some research
-
@mrdenmark if you update the module now, it should account for the timezone if you set it in your config. From your latitude/longitude, yours (I think) would be “Pacific/Auckland”.
Try this:
{ module: "MMM-Sunrise-Sunset", position: "top_left", config: { latitude: "-44.57", longitude: "168.50", timezone: "Pacific/Auckland", layout: "list" } },
-
worked,cheers!
-
-
https://github.com/prydonian/MMM-Sunrise-Sunset
Made a fairly big update using a different API that needs a free key.
https://ipgeolocation.io/signup.htmlIt now gives you moonrise and moonset times and day length.
-
I tried this module but activating this causes my MM to show nothing. I had no error messages on MM logs (in my case, a docker server-only instance) and nor on my Chrome console.
In other words it looks that the IPGeo free key expires in 1 day…
-
@henry2man the API is limited to 1000 calls per day. It doesn’t appear to expire after a day.
Can you post the config for the module?
it should look like this:
{ module: "MMM-Sunrise-Sunset", position: "bottom_bar", config: { apiKey: "API_KEY", latitude: "123.123", longitude: "23.456", layout: "inline" } },
-
I removed the config but seemed like yours. I followed the README from master. I’ll try again later, but also I’ve reviewed this API
https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400&formatted=0
It has enough information and seems to be free.
What do you think?