Read the statement by Michael Teeuw here.
trouble with config file
-
so it seems as if my config file isnt whats wrong the electron.js isnt working right. i did the command git pull to update it and it says im using the most current version. is there a command to verify all of the files or no? -
If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.
-
@nuckinfutz said in trouble with config file:
If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.
that would be awesome. i still havent gotten anywhere. i reinstalled node.js along with reinstalling magic mirror and so on. the only thing i havent tried reinstalling is raspbain. but i still get the same startup script failed electron.js
-
@II12yanII said in trouble with config file:
@nuckinfutz said in trouble with config file:
If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.
that would be awesome. i still havent gotten anywhere. i reinstalled node.js along with reinstalling magic mirror and so on. the only thing i havent tried reinstalling is raspbain. but i still get the same startup script failed electron.js
My suggestion would be this…
Format your card using this [please read the entire thing]->
https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/3and reinstall raspbian… This one -> RASPBIAN JESSIE WITH PIXEL from: https://www.raspberrypi.org/downloads/raspbian/
From there open a terminal window and run:
[Download and install the latest Node.js version]curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
After that is done then:
git clone https://github.com/MichMich/MagicMirror.git
go to the MagicMirror folder and run:
npm install
Once that’s completed run:
npm start
IF you get any errors post a screen shot as that helps VERY much :)
-
Sorry about the delay. Here’s my solution.
If you still have a problem I’ll zip everything up and send it to you.
my solution and cowboys are similar but I always make sure with linux flavors everything is up to date. It’s just a habbit I also made everything so you could just copy entire commands then paste them into the terminal to save time
Install jessie using this Noobs link.Its super easy to follow and takes care of a lot of basic steps automatically
https://www.raspberrypi.org/downloads/noobs/
Follow the directionsIf you need to set up a wireless card go here scroll down and
follow the wireless instructions then come back herehttps://forum.magicmirror.builders/topic/236/complete-setup-tutorial/6
Now to configure your Pi go to superkey(Windows key) - preferences - raspberry pi configuration
Set up location, keyboard, time zone and time. The correct time is very important.open up a terminal and run this the following command to get everything up to date
sudo apt-get update ; sudo apt-get upgrade
Now run the following to update the RPi firmware
sudo rpi-update
When done reboot
Now install the MM software
Open a terminal and runcurl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash
Rotate your screen if you want by doing this. I didnt bother for now
sudo nano /boot/config.txt
Rotate display vertically
display_rotate=1
ctrl-x to save then Y for yes
Now do this Or just use your file manager to make your copy of the config file.
I never modify the .sample filecd /home/pi/MagicMirror/config cp config.js.sample config.js
now change to the MM folder
cd /home/pi/MagicMirror
Use the following to start your mirror
DISPLAY=:0 npm start
-
@cowboysdude said in trouble with config file:
@II12yanII said in trouble with config file:
@nuckinfutz said in trouble with config file:
If you still haven’t gotten anywhere I’ll zip up and send you my entire directory structure and a step by step instruction sheet I wrote for myself to get the basic mirror up and running. You can compare them to yours and see where we differ. That should give you some insight.
that would be awesome. i still havent gotten anywhere. i reinstalled node.js along with reinstalling magic mirror and so on. the only thing i havent tried reinstalling is raspbain. but i still get the same startup script failed electron.js
My suggestion would be this…
Format your card using this [please read the entire thing]->
https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/3and reinstall raspbian… This one -> RASPBIAN JESSIE WITH PIXEL from: https://www.raspberrypi.org/downloads/raspbian/
From there open a terminal window and run:
[Download and install the latest Node.js version]curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
After that is done then:
git clone https://github.com/MichMich/MagicMirror.git
go to the MagicMirror folder and run:
npm install
Once that’s completed run:
npm start
IF you get any errors post a screen shot as that helps VERY much :)
Thanks so much that fixed it for me. it now runs without errors. but im back to my original problem of my config file. the weather and news just stay at loading … and never update. here is a copy of my config file. i believe i put in my api key and everything correctly.
Edit. i got the fox news portion of my config file to work but the weather still doesn’t update at all./* Magic Mirror Config Sample
*- By Michael Teeuw http://michaelteeuw.nl
- MIT Licensed.
*/
var config = {
port: 8080,language: 'en', timeFormat: 12, units: 'imperial', modules: [ { module: 'alert', }, { 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: 'Brunswick', locationID: '23', //ID from http://www.openweathermap.org appid: 'cea6dc928b7d5437e5883dcda250fa8e' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather Forecast', config: { location: 'Brunswick', locationID: '23', //ID from http://www.openweathermap.org appid: 'cea6dc928b7d5437e5883dcda250fa8e' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Fox News", url: "http://www.foxnews.com/about/rss/" } ], showSourceTitle: true, showPublishDate: true } }, ]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== ‘undefined’) {module.exports = config;} -
Just a suggestion: Try replacing that location id of
locationID: '23'
withlocationID: '2173741'
. -
@bhepler said in trouble with config file:
Just a suggestion: Try replacing that location id of
locationID: '23'
withlocationID: '2173741'
.that fixed it for me thanks. i guess using the map to get the ID for my location wasn’t the right ID.
Thank you everyone for your help my config file is the way i want it and it runs without any errors.