npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
Those look like very old versions of npm and node. Can you please run following commands in your terminal and post output?
node --version
and
npm --version
Thanks.
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
Those look like very old versions of npm and node. Can you please run following commands in your terminal and post output?
node --version
and
npm --version
Thanks.
@cowboysdude I managed to get it up and running locally on a super old system running Ubuntu 16.04.1 LTS. I had some trouble starting electron via SSH when running DISPLAY=:0 npm start, but npm start worked just fine
Here is a list of steps that got it running (i’m running node v6.9.4 and npm v4.1.1):
sudo apt-get install git
git clone https://github.com/MichMich/MagicMirror.git
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
curl -sL https://www.npmjs.com/install.sh | sudo -E bash -
npm --version
cd MagicMirror/
cp config/config.js.sample config/config.js
npm install
npm start
Not sure if this will help. You can always try to run verbose mode npm start --verbose to see if there is any information that may lead you to finding a reason why it doesn’t start. It was very sluggish on my system, but this is a very old computer.
P.S. Sorry it took me a while to get to try it out and get back to you. It has been a very long and exhausting day.
Good luck.
@cowboysdude I will try to reproduce on my machine in a few hours when I get home and will report back.
I don’t know what is going on there, but I have Ubuntu Desktop 16.04 (I think) at home and will give it a shot.
Did you use manual install or script from the repo?
Are you running electron app on RasPi or testing in a browser? I had this problem in Chrome when one of the extensions that I had enabled was interfering with MM js
Hi,
Are you running Automatic installation from README.md or following Manual Installation guide? It may be helpful to get some more information on steps that you did prior to this and exact command that you are executing. Also what version of node and npm are you running? You can find that by running following commands in your terminal:
node --version
and
npm --version
Thanks.
This can now be closed, I believe that improvements by @paviro have resolved this issue.
https://forum.magicmirror.builders/topic/1407/you-can-officially-call-me-stupid
I would vote for Slack, but I’m biased since I work at Slack.
Edit:
P.S. I can help set it up if needed.
I realize that this topic is about 2 months old, but I’m going to add some possible troubleshooting steps for anyone who may run into this problem. Hopefully OP already has this resolved.
@Jeff while on RasPi terminal can you try to execute this command ping localhost? you should see output similar to this:
$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.253 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.268 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.257 ms
...
...
as you can see hostname localhost resolves to ip address 127.0.0.1 which is very common. you can also try to enter http://127.0.0.1:8080 in your browser.
if the above works and after node serveronly is running, can you please try to execute following command curl -I http://localhost:8080? your output should be similar to this:
$ curl -I http://localhost:8080
HTTP/1.1 200 OK
X-Powered-By: Express
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Wed, 21 Dec 2016 06:49:47 GMT
ETag: W/"8da-15920249be6"
Content-Type: text/html; charset=UTF-8
Content-Length: 2266
Date: Sun, 15 Jan 2017 23:09:37 GMT
Connection: keep-alive
if it’s not double check your config.js to make sure your server is running on port 8080
I would like to offer help with forum moderation as well. While I’m new to this forum I have spent last 7+ years of my career building products evolving around user community and collaboration (Yahoo Groups, Flickr and now Slack). Clear communication, empathy, courtesy and respect are some of the things on top of my list to keep building healthy and thriving community.
I’ve been following MichMich and his wonderful projects on Tumblr for a while, always wanted to build a mirror since his very initial build out. I didn’t have much time to play around with it. Then v2 came out and I kept saying to myself that I have to try it out. I finally joined community about a month ago, started to play around with core code and modules. And I got hooked. This is a really nice project with so many wonderful additions developed by people from all over the world.
My first module that I’ve built was based on a request that I found in this forum. I have a few more ideas for building modules. This forum helped me find information that I needed to understand and build things for MM. I just want to give back and help.
Thanks.
Hello,
Sorry this may get a bit lengthy.
I recently joined MagicMirror community and started to play around and develop modules. I’m not a newbie to coding, but never really worked on a node based project. I’m learning as I go along and looking at many great modules that folks have created around here to understand how thing are done. Throughout my career I’ve worked with a bunch of API providers building apps, clients and bots.
As I’m venturing into building another module I have been having some thoughts and considerations about how API access, tokens and user authentication is handled by different modules. Some of the API providers make it easy to obtain access to their keys, some make it difficult. Others don’t, sometimes they restrict who can sign up for API access, how they sign up,
At the moment I’m looking into creating a module to display data from Runkeeper. They have fairly standard OAuth2 authentication and it’s pretty trivial to create an app and get access token from them. Once my module is published I would like to make sure that potential users have a pleasant experience, that they can easily set it up and get it running with minimal effort. I don’t want to burden them with going through process of creating their own application on API provider site, getting client_ids, secrets, scopes, doing OAuth dance and finally getting a token that they can put in the config. All of the above steps can lead to unnecessary confusion, frustration and additional support responsibilities for me as a developer of the module.
Which leaves me with a few options on how to handle data source API access and user authentication. I’m sure this is not a full list of options, but some of the options that I’ve considered.
My App + My Site = Your Token: As a developer of the app I create an app with API provider and provide a very user friendly webpage where OAuth2 Authentication takes place and access token is granted and displayed to be inserted in the module config.
Your App + My Site = Your Token: I provide a list of instructions along with the module on how and where to register for the app, user registers and then uses my site to enter needed info (client_id, secret etc) to get access token that can be used with the module config. I don’t store any of the info and just provide friendly web interface to get that done.
Your App + My Script = Your Token: I provide a list of instructions along with the module on how and where to register for the app, after cloning the module repo user can run a script that will spin up a temporary local webserver to accept OAuth callback and get access token that can be entered into config for the module.
Theoretically I can combine 2 and 3, or even offer all 3 options. Number one is probably most user friendly way, but depending on popularity of the module rate limiting may come into effect. 2 & 3 will likely require more effort from users and possibly more support from me.
Any thoughts or suggestions on this?
Thank you.
@bminer1 I believe that default setting is not to show precipitation graph, unless there is a prediction for rain or snow in next hour. I think it takes data from minutely weather forecast supplied by DarkSky.
@paviro was that by any chance related to this? https://forum.magicmirror.builders/topic/1341/problem-interacting-with-forum-on-ios-and-os-x-safari
It started to work for me on mobile couple of hours ago. I haven’t seen it fail yet.
@bminer1 it seems that you are trying to pull instead of clone (and git is not globally configured on your system and doesn’t recognize you)
try running this command instead: git clone https://github.com/dmcinnes/MMM-forecast-io.git
Any idea where that LED.py script came from? Is it possible that this is a script that you’ve created at some point learning how to control an LED with GPIO outputs? Maybe posting exact steps and commands that you are running, along with output that you get would give us some more information to troubleshoot and help you.
@Flagun it looks like the only way to get an API key is by emailing them, otherwise they only provide sample data. I think first thing to do would be for someone speaking Polish to find out what it takes to get an API key. Most of the modules that exist today require each individual to get their own API key, which may be a problem if Jakdojade dosn’t allow API keys to be generated through the site.
Dostęp do API wymaga przesłania zgłoszenia na adres kontaktjakdojade.pl.
...
...
...
Zapytania nieautoryzowane (bez sekcji związanej z autoryzacją) zwracają tylko przykładowe dane testowe. Zapytania takie powinny być wykorzystywane na potrzeby testowe.
@Atheose Sounds good. I will try to see if I can get it going. Will you have time to test module while it’s under development?
I poked around with Runkeeper Healthgraph and they provide tons of interesting information that can be piped to a MM. I barely use Runkeeper. @Atheose is there a specific list of things that you would like to display? It would be great to have some sort of spec before venturing into development.
@alexyak this flickr-upload npm package https://www.npmjs.com/package/flickr-upload can be utilized for that functionality. (Heh, I just realized it was written by a friend of mine)
@Atheose Seems doable as Runkeeper has a decent set of APIs https://runkeeper.com/developer/healthgraph/home