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

Can't install MMM-WeatherForecast on raspberry pi Zero



  • Hi,
    I have installed a Magic Mirror 2 on Pi 3B along with google calendar, news, MMM-Wallpaper and MMM-WeatherForecast. Everything works great. Thanks to all that have made this possible.

    To make my actual magic mirror I wanted to use a Pi ZERO due to lower power/heat and smaller foot print.

    I have managed to install the MagicMirror on Pi ZERO W using a great article of Emmanuel Contreras “How to Create a Magic Mirror 2 with Pi Zero W” using his ready made image:
    mm_buster_8_17_2019.img.gz

    I was able to connect my google calendar and local news… and that’s where my luck run out.

    What I couldn’t figure out is how to install MMM-WeatherForecast or MMM-Wallpaper.

    After installing both of them, they never appear, not even trying to load.

    Has anyone successfully installed MMM-WeatherForcast & MMM-Wallpaper on raspberry pi ZERO or can point me in the right direction please?

    Thanks,
    Tom



  • @Tomexx can u show us your config.js after installing the two modules?

    you could also open the developers window, ctrl-shift-i on the mirror system ui,
    and select the tab labeled console, and then scroll up to see any errors…

    u can also filter the console by module, by placing some of the module name in the filter field



  • @sdetweil said in Can’t install MMM-WeatherForecast on raspberry pi Zero:

    @Tomexx can u show us your config.js after installing the two modules?
    you could also open the developers window, ctrl-shift-i on the mirror system ui,
    and select the tab labeled console, and then scroll up to see any errors…
    u can also filter the console by module, by placing some of the module name in the filter field

    Thanks for the reply Sam.
    Well, I was tinkering with the setup on pi zero and broke the magic mirror install. However the config is the same as on my pi 3. Here it is:

    /* Magic Mirror Config Sample
    *

    */

    var config = {
    address: “localhost”, // Address to listen on, can be:
    // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
    // - another specific IPv4/6 to listen on a specific interface
    // - “”, “0.0.0.0”, “::” to listen on any interface
    // Default, when address config is left out, is “localhost”
    port: 8080,
    ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
    // or add a specific IPv4 of 192.168.1.5 :
    // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
    // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
    // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],

    language: "en",
    timeFormat: 24,
    units: "metric",
    
    modules: [
    	{
    		module: "alert",
    	},
    	{
    		module: "updatenotification",
    		position: "top_bar"
    	},
    	{
    		module: "clock",
    		position: "top_left"
    	},
    	{
    		module: "calendar",
    		header: "Family Calendar",
    		position: "top_left",
    		config: {
    			calendars: [
    				{
    					symbol: "My Calendar",
    					url: " MY PRIVATE KEY "
    				}
    			]
    		}
    	},
    	{
    		module: "MMM-Wallpaper",
    		position: "fullscreen_below",
    		config: { // See "Configuration options" for more information.
    		source: "bing",
    		slideInterval: 60 * 1000 // Change slides every minute
    		}
    	},
    	{
    		module: "MMM-DarkSkyForecast",
    		header: "Weather",
    		position: "top_right",
    		classes: "default everyone",
    		disabled: false,
    		config: {
    			apikey: " MY PRIVATE KEY ",
    			latitude: "43.451637",
    			longitude: "-80.492531",      
    			iconset: "4c",
    			concise: true,
    			maxDailiesToShow: 5,     // forcast days
    			forecastLayout: "table"  // table or tiled
    		}
    	},
    	{
    		module: "newsfeed",
    		position: "bottom_bar",
    		config: {
    			feeds: [
    				{
    					title: "New York Times",
    					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
    				},
    				{
    					title: "CTV News",
    					url: "https://kitchener.ctvnews.ca/rss/ctv-news-kitchener-1.822359"
    				}
    			],
    			showSourceTitle: true,
    			showPublishDate: true,
    			broadcastNewsFeeds: true,
    			broadcastNewsUpdates: true
    		}
    	},
    ]
    

    };

    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== “undefined”) {module.exports = config;}



  • @Tomexx that looks ok… but your words above are confusing…

    What I couldn’t figure out is how to install MMM-WeatherForecast or MMM-Wallpaper.

    After installing both of them, they never appear, not even trying to load.

    they ARE in the modules folder, yes?

    standard rules, ALL modules get installed in the modules folder
    generally they come from github so the download process is

    cd MagicMirror/modules
    git clone ?????
    

    where ??? is the url provided by the github repo for the module.
    you find the module repo (google, or whatever), then push ‘clone or download’, and push the button (looks like clipboard with and arrow pointing to it) to get the proper clone url string, then paste that string after the words git clone, and hit enter

    then follow the instrucitons for the module to complete its installation and config

    some modules need you to run npm install to get other code they depend on installed. neither of these do


Log in to reply