MagicMirror² v2.7.0 is available! For more information about this release, check out this topic.

Creating a module to display daily horoscopes


  • Moderator

    @pflnpi0305 Do you see any errors in the console log when you run it start the mirror with npm start dev command? Also are you running off the master branch or dev?
    We can try to start eliminating things out to narrow down what is causing the black screen for you.

    Can you try this config with only horoscope module:

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     */
    
    var config = {
    	port: 8080,
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
    
    	language: 'en',
    	timeFormat: 24,
    	units: 'metric',
    
    	modules: [
    		{
    			module: 'MMM-horoscope',
    			position: 'bottom_right', // This can be any of the regions.
    			config: {
    				// See ‘Configuration options’ for additional options and more information.
    				sign: 'aries', // Zodiac sign
    				}
    		},
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== 'undefined') {module.exports = config;}
    

    Also can you please double check that MMM-horoscope and contents exist under ~/MagicMirror/modules directory? (I know I’m asking for obvious things, just trying to get some more info about your installation).



  • thats the issue it doesnt exsist in there… how do i clone the git via ssh


  • Moderator

    @pflnpi0305 It will not work if you don’t have a copy of the module installed locally, black screen is there because MM is attempting to load JS files for the module from the directory that doesn’t exist. You need to run this in terminal while connected to your RasPi (directly or via SSH).

    cd ~/MagicMirror/modules
    git clone https://github.com/morozgrafix/MMM-horoscope.git
    

    After that you would need to restart MM node process in order it to pickup new node_helper for horoscope module.

    Thanks


  • Moderator

    @pflnpi0305 said in Creating a module to display daily horoscopes:

    thats the issue it doesnt exsist in there… how do i clone the git via ssh

    Mh, you are right. The readme on github doesn’t state how to do this. Maybe @morozgrafix could add this, even though the process is always the same.

    If you go to github, you see this:
    0_1485765365171_github.JPG

    1. click on “clone or download”
    2. copy the url or click on the icon next to it
    cd ~/MagicMirror/modules
    git clone https://github.com/morozgrafix/MMM-horoscope.git
    cd MMM-horoscope
    npm install
    

    After that you update your config.js file, restart your magic mirror and should be fine

    edit: oh, morozgrafix was faster


  • Moderator

    @yawns Thanks! I just added a small bit related to installation steps to the README.



  • lol thank you guys i should have thought of it but idk why it just slipped my mind i followed and i thought hmmm i need to close i think ahah…thanks i love this forum and all the help here.