Read the statement by Michael Teeuw here.
GETTING STARTED : HELP !!
-
@PCPAYN3
@PCPAYN3 said in GETTING STARTED : HELP !!:
is there a command i should be running when the pi boots? As i have been going into the folder and loading the index.html file from there.
I’m not really sure what you’re asking. The index.html file isn’t going to launch the mirror. Open a terminal, cd into the MagicMirror directory and run npm start. If you get the config error, we’ll take it from there once you post your terminal and config here
-
Terminal:
pi@raspberrypi:~ $ npm start
npm ERR! Linux 4.9.35-v7+
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall opennpm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoentnpm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.logConfig File:
/* Magic Mirror Config
*- By Michael Teeuw http://michaelteeuw.nl
- MIT Licensed.
- For more information how you can configurate this file
- See https://github.com/MichMich/MagicMirror#configuration
*/
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.4 :
// [“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: 12, units: "metric", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check-o ", url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics" } ] } }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_right", config: { location: "New York", locationID: "", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR_OPENWEATHER_API_KEY" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "New York", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR_OPENWEATHER_API_KEY" } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" } ], showSourceTitle: true, showPublishDate: true } }, ]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== “undefined”) {module.exports = config;} -
I have tried reinstalling & I am now getting this from the terminal
-
After reinstalling i now have it working thankyou. I just have a few more questions:
How do i edit it to show UK holidays etc?
Is there a html file to edit so i can add a google calender to it? And how to i get it to autoload on boot? -
@PCPAYN3 Instructions for setting up autostart here: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror
-
@PCPAYN3 said in GETTING STARTED : HELP !!:
Is there a html file to edit so i can add a google calender to it?
In your config.js file, in the calendar module entry, you can either add this OR edit the existing entry for US-Holidays. If you do not want the US Holidays calendar then simply change the end of the url to UK-Holidays.ics.
{ symbol: "calendar-check-o ", url: "webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics" },