Read the statement by Michael Teeuw here.
MMM-Lunartic
-
-
@pr05t3n said in MMM-Lunartic:
Something like this?
Well, not really. I don’t think I was clear enough. Yes, these links are to websites that contain pictures of the moon but not directly to the pictures. I did dig into the first site and isolated the url to today’s moon phase picture. Try it.
http://lunaf.com/img/moon/phase-13.png
Tomorrow that url will change, as will the image name.
The API url that is currently being used is static. It never changes. Only the image updates, not the url itself.
So, that’s what we need. A url to a current image of the moon (not a website containing moon pictures) and it has to update just the image. I’ll look when I can. You can still look. :-)
-
This ought to keep @Mykle1 busy for a couple weeks at least: https://www.programmableweb.com/category/astronomy/api
-
@bhepler said in MMM-Lunartic:
This ought to keep @Mykle1 busy for a couple weeks at least
Haha, thanks b! I’ll take a look. :thumbsup:
-
You do realize that I’ve done quite a few of those already? :-)
-
@mykle1 - Yes. Yes, I have. But I’m hoping you have an addiction to catc… er, code 'em all.
-
@bhepler said in MMM-Lunartic:
But I’m hoping you have an addiction
I have several. ;-)
I threw together a companion module to MMM-MARS using one of the API’s from your link. For everyone that needs to know the weather on Mars. (Me). I don’t know how reliable the data is going to be but I learned how to make an array (in the node_helper) and push it to the the module.js. I needed to do that in order to rotate the data. So, the simplest of modules but very rewarding because I learned something new.
https://github.com/mykle1/MMM-MARS-Weather
It’s only the very last line that rotates through 8 objects of data. SolDate, season, min and max air temp, atmospheric conditions (Sunny), min and max ground temp, sunrise and sunset at the rover’s locaton. A little css put it right under MARS
-
@qu1que said in MMM-Lunartic:
I can’t wait for next full moon to hear the wolf audio.
Your wait should be over. MMM-Lunartic just reported a full moon accurately and played the howling wolf sound file as expected.
I forgot I added that and was surprised when the audio played. Fun and pretty cool!
-
Dear @Mykle1,
since yesterday, I do not get the current picture of the moon anymore, although I did not touch the MMM-Lunartic config. If I do, I can display other info - but not the current image.I completely removed and reinstalled the module - but that did not solve the problem. I can open the direct link to the current NASA picture from the .js file - so it does not seem, that my IP is blocked from their side.
Do you have any idea, how to get the current picture of the moon back?
-
@rudibarani said in MMM-Lunartic:
Do you have any idea, how to get the current picture of the moon back?
Hi,
Yes, I am aware of this problem and am working to correct it. I asked for help in a topic. Hopefully someone will give me some input on fixing it. Otherwise, it will be some time before I can get that working again. In the meantime, don’t use “current or DayNight” as your image in the config entry