Read the statement by Michael Teeuw here.
MMM-Pnews
-
There may be a quickie fix I can do if you tell me what you’re looking for…
->>>>>business, entertainment, gaming, general, music, politics, science-and-nature, sport or technology.
-
Ah, so you did! :D I read that as you’ll look into multiple instances. It’s late. ;)
All good my friend. I’ve somehow killed my MM install after an update.
-
@DeanoAus OH mannnnnnn I hate that… I just redid my bathroom mirror as I killed that one too … I feel your pain.
It’s late for you, I just woke up LOL So let me know if there is a specific category you’re looking for or just taking out the newsource will work for you because if you do that it will return ALL news. :)
Future implementation will be different languages: en, de, fr
-
@cowboysdude said in MMM-Pnews:
There may be a quickie fix I can do if you tell me what you’re looking for…
->>>>>business, entertainment, gaming, general, music, politics, science-and-nature, sport or technology.
Was after one tech, one Australian news. And seeing as I can’t reply before 120 seconds… sigh… i’ll combine my replies.
pi@Pi:~/MagicMirror $ DISPLAY=:0 npm start > magicmirror@2.1.1 start /home/pi/MagicMirror > sh run-start.sh run-start.sh: 4: run-start.sh: electron: not found npm ERR! Linux 4.9.25-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.10.2 npm ERR! npm v3.10.10 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! magicmirror@2.1.1 start: `sh run-start.sh` npm ERR! spawn ENOENT
I’ve tried updating, installing, you name it.
npm install electron
npm install
etc. :/ -
-
Ugh, I think i found it. You need to do npm install as root…
Wait, nope!
pi@Pi:~/MagicMirror $ sudo npm install > electron@1.6.6 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js /home/pi/MagicMirror/node_modules/electron/install.js:47 throw err ^ Error: ENOENT: no such file or directory, lstat '/home/pi/MagicMirror/node_modules/electron/dist/resources' at Error (native) npm ERR! Linux 4.9.25-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v6.10.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! electron@1.6.6 postinstall: `node install.js` npm ERR! Exit status 1
Ugh, I give up. Going to bed. Thanks for your help, i’ll fix in the morning. :)
-
Good Night :)
-
Hey mate, I think I have a bug for you. :bug:
In MMM-PNews.js you hard code in the sorting method (latest) for the source.
this.url = "https://newsapi.org/v1/articles?source=" + this.config.newsSource + "&sortBy=Latest&apiKey=";
Latest isn’t a valid sorting method for some sources.
Example is the https://newsapi.org/abc-news-au-apiIf you hit that with the url they provide with Latest in there for sorting, it fails and gives
{"status":"error","code":"sourceUnavailableSortedBy","message":"The news source you've selected (abc-news-au) isn't available sorted by latest"}
But if you change Latest to Top in the url, works fine. :)
This is causing some feeds to not work.
-
This post is deleted! -
Also, mine doesn’t seem to be updating the feed. (Sorry!)
Seeing this in the log?
fatal: unable to access ‘https://github.com/cowboysdude/MMM-PNews/’: GnuTLS recv error (-54): Error in the pull function.