I dug up the CHIP that was sitting and collecting dust to see if I can run MM on it. It was almost successful. I documented my installation and setup path here https://gist.github.com/morozgrafix/db069203ac4d8635a0f27e3dfa52f532
Read the statement by Michael Teeuw here.
Posts
-
RE: $9 C.H.I.P.
-
RE: Npm start...
@cowboysdude I will try to reproduce on my machine in a few hours when I get home and will report back.
-
RE: Magic Mirror Discord Group
@Mykle1 invite sent to email listed in your profile. Thanks.
-
RE: How to load a <script> src = " " </script> into my mirror?
@nbrenn I’ve reworked the code to follow that logic outline to get
Your sum is 37to show up in the middle of the MM. You can find a PR on GitHub or just look at my fork of your repo. Most of the code is commented and hopefully easy to follow. I also added some configuration options for better flexibility.
Since you didn’t need a table any longer, I took some shortcuts with processing the data and just calculating the sum of all numeric values from the file. You can add the module to the MM and then as it runs update the datafile with new values, MM should update in about a minute or whatever your
updateIntervalis set to.Let me know if you have any questions.
P.S. I didn’t run it on RasPi, but it should work without a problem. :fingers_crossed: Also if you are planning to make this module available for others it may be worth renaming it to
MMM-datafeedto follow the standard naming conventions. -
RE: I am sure nobody know it but...perhaps you know a fade in/out switch?
@fersev what is fade in/fade out switch?
-
RE: NPM install error
npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21Those look like very old versions of npm and node. Can you please run following commands in your terminal and post output?
node --versionand
npm --versionThanks.
-
RE: save some information from a xml or json to a txt file
@gismo2006 I know this thread is solved and a few months old. There is also another one liner solution with use of jq JSON parser from command line. Here is an example that would get result that you need (or at least get you close to it)
curl -s "http://api.openweathermap.org/data/2.5/weather?id=2934486&lang=de&units=metric&mode=json&appid=YOUR_OWM_API_KEY" | jq -r '"Today is " + .weather[].description + " and " + (.main["temp"]|tostring) + " degrees."' > filename.txtwould result in Today is überwiegend bewölkt and -6.12 degrees. put into
filename.txt -
RE: Creating a module to display daily horoscopes
@pflnpi0305 I believe that @cowboysdude is correct about that line spilling over. It needs to be on one line. When in doubt you can always paste your
config.jsat http://jshint.com/ and see if there are any errors (one warning about undefined variablemoduleis ok) -
RE: I am sure nobody know it but...perhaps you know a fade in/out switch?
@fersev ummm, there is a buy link right in the description of the video that you’ve posted.
-
RE: Npm start...
I’m replying from my phone at the moment and will post full reply to all later when I’m in front of my computer.
When I said “but
npm startworked just fine” I meant I was running it from terminal on Ubuntu box and not through SSH from my MacBook. -
RE: Runkeeper Module
@Atheose Seems doable as Runkeeper has a decent set of APIs https://runkeeper.com/developer/healthgraph/home
-
RE: Creating a module to display daily horoscopes
@yawns Thanks! I just added a small bit related to installation steps to the README.
-
RE: Test suite for MagicMirror²
Great idea to setup test suite. Thanks for getting it started @roramirez. I’ve made some minor cleanup changes on top of your initial work, PR is sitting on GitHub. I will try to contribute to tests as much as I can.
-
RE: Send Selfie to Flickr or Photobucket
@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)
-
Problem interacting with forum on iOS and OS X safari
I noticed that I’m not able to send replies, open new topics and interact with many buttons on https://forum.magicmirror.builders forums when browsing the site in Safari on my iPhone 6S with latest iOS. Decided to troubleshoot the problem and tried to load it in Safari 10.0.2 (11602.3.12.0.1) on El Capitan 10.11.6 just to find same issues.
Noticed that console log shows this error:
[Error] Failed to load resource: cannot parse response (nodebb.min.js, line 0) -> https://forum.magicmirror.builders/nodebb.min.js?c15a9192-ff07-4dae-b48b-e1d0ff96ef00and also noticed that footer didn’t load due to the following error:
[Error] ReferenceError: Can't find variable: require Global Code (categories:1008)I’m not familiar with NodeBB at all and thought it was worth reporting.
P.S. It did work once earlier today on the phone, but for the past 5-6 days I wasn’t able to interact with many elements on the forum site from mobile device.
-
RE: Adding a jQuery Module
In addition to @strawberry-3.141 response. I wanted to chime in with option of running it locally on your dev machine and using
node serveronlyand pointing your browser athttp://localhost:8080using familiar tools while developing. One of the catches is it will not work well if you are developing module that needs to interact with GPIO or other proprietary RasPi functionality.My personal workflow is roughly outlined here: https://forum.magicmirror.builders/post/13272
-
RE: starter problem # 2
if you are comfortable with using
sshandscpyou may not even need any GUI tools to transfer files. -
RE: Runkeeper Module
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.
-
RE: Problem interacting with forum on iOS and OS X safari
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