@Iseknutz I haven’t touched that code in about 9 months. I can certainly look at the URL and see if that can be implemented.
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-horoscope - daily horoscope
-
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: 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 37
to 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
updateInterval
is 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-datafeed
to 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: 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.txt
would result in Today is überwiegend bewölkt and -6.12 degrees. put into
filename.txt
-
RE: NPM install error
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.
-
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.js
at http://jshint.com/ and see if there are any errors (one warning about undefined variablemodule
is 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: Runkeeper Module
@Atheose Seems doable as Runkeeper has a decent set of APIs https://runkeeper.com/developer/healthgraph/home
-
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 start
worked just fine” I meant I was running it from terminal on Ubuntu box and not through SSH from my MacBook.