Giter Club home page Giter Club logo

mmm-lunartic's Introduction

MMM-Lunartic

Up to the minute information about our Lunar partner, with a splash of EyeCandy, to boot!

How it works

First, you have three choices of images to accompany the data.

  • A rather impressive animation of the night moon, with clouds rolling by
  • Updating minutely, an image of the actual appearance of the current moon
  • A static image of all the phases of the moon

Then you are offered updated information every minute, such as:

  • The distance of the moon from the Earth's core at this moment. (Changes minutely)
  • This distance of the moon to the sun at this moment. (Changes minutely)
  • The date of the next full moon. (Very important if you're a werewolf!)
  • The date of the next new moon. (Also very important if you're a werewolf!)
  • The age of the current moon's monthly phase.
  • Percentage of the current moon that is illuminated.
  • The stage of the present moon (waning, waxing, etc..)

Examples

The moon will be animated. See picture below.

  • The animation can be hidden if only the information is wanted.

* This can be hidden

* To show only this, or vice versa, showing just the image

  • Or, Updating minutely, an image of the actual appearance of the current moon

  • Now an option for rotating data to conserve mirror real estate

  • Annotated .css file included for aligning and coloring text and header.

Installation

  • git clone https://github.com/mykle1/MMM-Lunartic into the ~/MagicMirror/modules directory.

  • cd into the MMM-Lunartic folder and run npm install

  • No API key needed! (It's my API) No kidding!

Config.js entry and options

{
        disabled: false,
        module: 'MMM-Lunartic',
        position: 'bottom_center', // Best in left, center, or right regions
        config: {
            mode: "rotating", // rotating or static
            image: "current", // animation, current, DayNight or static
            distance: "miles", // miles or km
	    sounds: "yes", // howling wolf, only on a full moon
            useHeader: false, // true if you want a header
            header: "The Lunartic is in my head", // Any text you want
            maxWidth: "300px",
            animationSpeed: 0,
            rotateInterval: 15000,
        }
    },

Special thanks to SpaceCowboysDude for spotting my errors, as usual.

mmm-lunartic's People

Contributors

el97 avatar mykle1 avatar mysh3ll avatar tbbear avatar varguit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mmm-lunartic's Issues

Romanian translation

Please add the romanian translation for ro.json:

{
"Distance from Earth's core": "Distanța de centrul Pământului",
"Distance from sun": "Distanța de Soare",
"The next full moon is ": "Următoarea lună plină este pe ",
"The last full moon was ": "Ultima lună plină a fost pe ",
"The next new moon is ": "Următoarea lună nouă este ",
"The current moon is ": "Luna actuală este ",
"The moon is ": "Luna are ",
"% illuminated": "% strălucire",
" days old": " zile",
"When the Moon hits your eye . . .": "Când Luna îți atinge privirea...",
"New Moon - No visible moon ": "Luna nouă - Nu este vizibilă ",
"Waxing Crescent Moon ": "Semilună în creștere ",
"First Quarter Half Moon ": "Primul pătrar de lună ",
"Waxing Gibbous Moon ": "Primul pătrar în creștere ",
"Full Moon ": "Lună plină ",
"Waning Gibbous Moon ": "Al treilea pătrar în scădere ",
"Third Quarter Half Moon ": "Al treilea pătrar de lună ",
"Waning Crescent Moon ": "Semilună în scădere "
}

The image "Animation" does not work

My configuration looks like this:

{
disabled: false,
module: 'MMM-Lunartic',
position: 'top_left', // Best in left, center, or right regions
config: {
mode: "rotating", // rotating or static
image: "animation", // animation, current, DayNight or static
distance: "km", // miles or km
sounds: "no", // howling wolf, only on a full moon
useHeader: false, // true if you want a header
header: "The Lunartic is in my head", // Any text you want
maxWidth: "300px",
animationSpeed: 10,
rotateInterval: 15000,
}
},

Moon does not show

Hello,

In the last couple of days,the moon icon doesn't show up anymore on "current" option. I think that it is pulled through the API from an external server.
Is there any fix I can try ? It used to work fine.

Thanks for your help.

Static image

Hi Mykle1!
I really appreciate your work and love your modules for the MagicMirror.
Just one small thing, in the Lunartic module, the "static" picture isn't recognized anymore. Even though I choosed "static" for "image" and "mode", the module shows the huge picture of the moon and not the "static.jpg", which I would prefer most. Anyidea, how to get the picture back?

Regards from Berlin, Germany and thanks in advance
Womi

position on the left with MMM EARTH

Hello Mykle,

Sorry but i have a problem with my configuration when i'm using your module and MMM-EARTH. I can't use right position :
` {
module: "MMM-EARTH",
position: "right",
config: {
mode: "Natural",
rotateInterval: 30000,
MaxWidth: "35%",
MaxHeight: "35%",
}
},

	{
		module: 'MMM-Lunartic',
		position: 'right',                   // Best in left, center, or right regions
		config: { 
			image: "animation",
			mode: "static",                     // animation, current, DayNight or static
			distance: "km",                      // miles or km
			useHeader: false,                       // true if you want a header
			header: "",   // Any text you want
			maxWidth: "250px",
			animationSpeed: 7000,                   // updated info fades in and out
				}
	},

`

I don't understand. Earth is on the right and lunartic on left or center

information displayed below the image of the moon

Hi,

after installing and configuring this module, I have the image of the moon that appears with the updated information.
However, the information is displayed over the moon and not below, so it's not easy to read.
Can a custom.css modification suffice?
Here is my config:

{
            module: 'MMM-Lunartic',
            position: 'bottom_left', // Best in left, center, or right regions
            config: {
                mode: "rotating", // rotating or static
                image: "current", // animation, current, DayNight or static
                distance: "km", // miles or km
                sounds: "yes", // howling wolf, only on a full moon
                useHeader: false, // true if you want a header
                header: "Phase lunaire", // Any text you want
                maxWidth: "300px",
                animationSpeed: 0,
                rotateInterval: 15000,
            }
        },

Spostamento Titoli sotto il globo

Salve, ho lanciato il progetto..Come posso spostare solo le informazioni sopra sotto destra e sinistra delle sole informazioni ( scritte) sotto il globo? Grazie

Hi, I launched the project ... How can I move only the information above right and left only of the information (written) under the globe? Thank you

This module's API is currently down

Not that anyone is using this module, but on the slim chance that you are, I can only apologize for the state of the API. It is down. A 404 error message is now in its place. I will try to find another API suited to this module. If I do, I will get it back up and running. If I don't, forgive me.

can someone help with this keep getting a black screen

code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/pi/MagicMirror/modules/MMM-Astrology/node_helper.js',
'/home/pi/MagicMirror/js/app.js',
'/home/pi/MagicMirror/js/electron.js',
'/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
undefined

can someone help me getting black screen when starting my mirror

[email protected] start /home/pi/MagicMirror
electron js/electron.js

[23.08.2021 08:30.21.811] [LOG] Starting MagicMirror: v2.16.0
[23.08.2021 08:30.21.839] [LOG] Loading config ...
[23.08.2021 08:30.21.857] [LOG] Loading module helpers ...
[23.08.2021 08:30.21.863] [LOG] No helper found for module: alert.
[23.08.2021 08:30.22.410] [LOG] Initializing new module helper ...
[23.08.2021 08:30.22.413] [LOG] Module helper loaded: updatenotification
[23.08.2021 08:30.22.416] [LOG] No helper found for module: clock.
[23.08.2021 08:30.27.493] [LOG] Initializing new module helper ...
[23.08.2021 08:30.27.495] [LOG] Module helper loaded: calendar
[23.08.2021 08:30.27.499] [LOG] No helper found for module: compliments.
[23.08.2021 08:30.27.502] [LOG] No helper found for module: weather.
[23.08.2021 08:30.27.612] [LOG] Initializing new module helper ...
[23.08.2021 08:30.27.613] [LOG] Module helper loaded: newsfeed
[23.08.2021 08:30.27.617] [LOG] No helper found for module: MMM-APOD.
[23.08.2021 08:30.27.639] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
Require stack:

  • /home/pi/MagicMirror/modules/MMM-Lunartic/node_helper.js
  • /home/pi/MagicMirror/js/app.js
  • /home/pi/MagicMirror/js/electron.js
  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

[23.08.2021 08:30.27.641] [LOG] Loading module helpers ...
[23.08.2021 08:30.27.642] [LOG] No helper found for module: alert.
[23.08.2021 08:30.27.644] [LOG] Initializing new module helper ...
[23.08.2021 08:30.27.645] [LOG] Module helper loaded: updatenotification
[23.08.2021 08:30.27.647] [LOG] No helper found for module: clock.
[23.08.2021 08:30.27.649] [LOG] Initializing new module helper ...
[23.08.2021 08:30.27.650] [LOG] Module helper loaded: calendar
[23.08.2021 08:30.27.652] [LOG] No helper found for module: compliments.
[23.08.2021 08:30.27.654] [LOG] No helper found for module: weather.
[23.08.2021 08:30.27.656] [LOG] Initializing new module helper ...
[23.08.2021 08:30.27.657] [LOG] Module helper loaded: newsfeed
[23.08.2021 08:30.27.659] [LOG] No helper found for module: MMM-APOD.
[23.08.2021 08:30.27.665] [ERROR] App threw an error during load
[23.08.2021 08:30.27.670] [ERROR] Error: Cannot find module 'request'
Require stack:

  • /home/pi/MagicMirror/modules/MMM-Lunartic/node_helper.js
  • /home/pi/MagicMirror/js/app.js
  • /home/pi/MagicMirror/js/electron.js
  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (internal/modules/cjs/loader.js:732:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-Lunartic/node_helper.js:8:17)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    [23.08.2021 08:30.27.674] [ERROR] Whoops! There was an uncaught exception...
    [23.08.2021 08:30.27.690] [ERROR] Error: Cannot find module 'request'
    Require stack:
  • /home/pi/MagicMirror/modules/MMM-Lunartic/node_helper.js
  • /home/pi/MagicMirror/js/app.js
  • /home/pi/MagicMirror/js/electron.js
  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
  • at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (internal/modules/cjs/loader.js:732:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-Lunartic/node_helper.js:8:17)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/pi/MagicMirror/modules/MMM-Lunartic/node_helper.js',
    '/home/pi/MagicMirror/js/app.js',
    '/home/pi/MagicMirror/js/electron.js',
    '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
    undefined
    ]
    }
    [23.08.2021 08:30.27.695] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [23.08.2021 08:30.27.696] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    [23.08.2021 08:30.31.005] [LOG] Launching application.
    [23.08.2021 08:30.49.769] [LOG] Shutting down server...
    [23.08.2021 08:30.49.827] [LOG] Stopping module helper: updatenotification
    [23.08.2021 08:30.49.831] [LOG] Stopping module helper: calendar
    [23.08.2021 08:30.49.835] [LOG] Stopping module helper: newsfeed
    [23.08.2021 08:30.49.838] [LOG] Stopping module helper: updatenotification
    [23.08.2021 08:30.49.843] [LOG] Stopping module helper: calendar
    [23.08.2021 08:30.49.846] [LOG] Stopping module helper: newsfeed

MM LUNARTIC

Il mio Globo non gira.. L'immagine e' statica e cambia solo ogni tanto l'immagine ma non ruota..Cosa posso fare? Grazie
My globe doesn't turn .. The image is static and only changes the image occasionally but doesn't rotate ... What can I do? Thank you

no image

got the module working, but is not displaying image
chrome_2018-10-15_22-55-15

Change language

@mykle1
Hi there.

Great and easy to install module. Please could you help with advice on how to change the language to english.
Distance from earth core and distance from earth sun are a different language. The rest are english.
Many thanks.

Lunartic not working without "request"

WARNING! Could not load config file. Starting
with default configuration. Error found: Error: Cannot find module 'request'
Require stack:

  • .../MagicMirror\modules\lunartic\node_helper.js

MM v 2.17.0-develop with "request" removed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.