@mumblebaj - Thanks for the very fast response.
Will update and test.
@mumblebaj - Thanks for the very fast response.
Will update and test.
@mumblebaj I’m trying to do something similar, but can’t quite get it to work.
I’ve got the module running in the centre bottom, and want to run it vertically rather than horizontally (so it’s more a block than a footer).
It’s almost there, except I can’t get the title to look right. Sometimes it’s OK (goes horizontally in a single line) but other times I get the text either going one word per line stacked vertically, or a block of the first few words like that and then the rest below in a correctly oriented line.
Is there anything I can adjust to make it work better and look right (all the title text going horizontally, line wrapped if it’s too long to fit)?
My config currently looks like this:
{
module: "MMM-NewsAPI",
header: "News",
position: "bottom_center",
config: {
apiKey: "#########################",
type: "vertical",
choice: "everything",
pageSize: 20,
sortBy: "publishedAt",
drawInterval: 1000*30,
templateFile: "template.html",
fetchInterval: 1000*60*60,
query: {
country: "",
category: "",
q: "",
qInTitle: "",
sources: "",
domains: "bbc.co.uk",
excludeDomains: "",
language: ""
}
}
},
and custom.css:
#NEWSAPI.vertical .header .title .content .footer {
text-align: center;
}
Still it’s nice to have this module working in the UK again! :)
@KristjanESPERANTO - Yes, I just saw that when I did the git pull.
As I said, I wanted to flag it though as the recommended route for updates is that script, which would appear not to be working correctly otherwise.
@sdetweil - thanks, clear. Will do so, although I’m up to date anyway now after the git pull.
It’s @sdetweil script - the one linked from GH here .
Was more curious about why that would be saying I’m up to date if there is a commit. If there is a version-up missing or something.
My mirror is running v2.22.0 but is showing that there is an update available (1 commit behind master).
I tried the updater script and it says I’m up-to-date, and restarting the mirror (either by PM2 restart or a reboot) does not clear the update message.
Has there been an update commit which maybe hasn’t bumped the version number or something?
Everything’s still running fine, the update available message is just a bit unsightly though ;)
@SILLEN-0 Would you be able to dismantle it (carefully) enough to get rear access to the button?
I was thinking either to be able to remove and relocate it perhaps, or to solder a switch or other solution in parallel to the existing one to put that somewhere accessible?
Just to come back and close on this - I’ve now tested from Germany with and without a VPN (VPN end point is in the UK), using exactly the same URL and conditions (open in a browser under the VPN, disconnect the VPN and refresh the browser tab).
So I confirm that it is NewsAPI screwing around with the feed to UK IP addresses, so unfortunately nothing that can be done nor anything wrong with MagicMirror or its modules.
Probably best to mark this as solved, albeit basically crippled for UK users.
With VPN (UK IP end point):
{"status":"ok","totalResults":0,"articles":[{"title":"I was dragged into China consulate, protester Bob Chan says","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T17:22:20.9801343Z","url":"http://www.bbc.co.uk/news/world-asia-china-63318285"},{"title":"James Webb telescope spies 'Pillars of Creation'","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T17:22:16.2918895Z","url":"http://www.bbc.co.uk/news/science-environment-63319814"},{"title":"Watch Ukrainian troops under close gunfire","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T16:22:14.7766328Z","url":"http://www.bbc.co.uk/news/world-europe-63318579"},{"title":"Suella Braverman resigns as home secretary","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T15:52:31.1666375Z","url":"http://www.bbc.co.uk/news/live/uk-politics-63309400"},{"title":"Putin decree is doubling down as pressure grows","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T15:07:17.5111432Z","url":"http://www.bbc.co.uk/news/world-europe-63319100"},{"title":"Anna May Wong: Actress becomes first Asian American on US currency","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T14:07:23.619259Z","url":"http://www.bbc.co.uk/news/entertainment-arts-63316940"},{"title":"The 800-day US visa wait causing India despair","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T12:37:20.603458Z","url":"http://www.bbc.co.uk/news/world-asia-india-63301257"},{"title":"Five hours' sleep is tipping point for bad health","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T10:22:24.3232143Z","url":"http://www.bbc.co.uk/news/health-63284305"},{"title":"Liz Truss: What the world is saying about UK turmoil","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-19T10:22:21.1348437Z","url":"http://www.bbc.co.uk/news/world-63293009"},{"title":"Florida flesh-eating illness cases spike after Hurricane Ian","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-10-18T22:07:21.4822377Z","url":"http://www.bbc.co.uk/news/world-us-canada-63309246"}]}
Without VPN (German IP end point):
{"status":"ok","totalResults":10,"articles":[{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"Joe Biden's unusual fight to bring down gas prices","description":"The US president has gone to unusual lengths to try to rein in the price of fuel.","url":"http://www.bbc.co.uk/news/business-63233077","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/8A9C/production/_127248453_c5781efaa0145b7fe240fb16f434f71e45fab20b.jpg","publishedAt":"2022-10-19T19:07:22.1820718Z","content":"When he campaigned for president two years ago, Joe Biden had lofty economic ambitions - shifting the country away from fossil fuels, shoring up its safety net and advancing fairness and equality.\r\nN… [+7708 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"I was dragged into China consulate, protester Bob Chan says","description":"A Hong Kong pro-democracy protester gives his account of violent scenes at Manchester's Chinese consulate.","url":"http://www.bbc.co.uk/news/world-asia-china-63318285","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/0E96/production/_127243730_ab007ba2-be91-4e18-9589-93e48eab6dea.jpg","publishedAt":"2022-10-19T17:22:20.9801343Z","content":"A protester says he was not trying to enter Manchester's Chinese consulate during a pro-democracy demonstration that saw violent scenes on Sunday.\r\nBob Chan told a news conference he was dragged onto… [+4155 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"James Webb telescope spies 'Pillars of Creation'","description":"One of the most famous scenes in the cosmos is viewed by the new, Nasa-led super space observatory.","url":"http://www.bbc.co.uk/news/science-environment-63319814","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/3666/production/_127262931_weic2216a.jpg","publishedAt":"2022-10-19T17:22:16.2918895Z","content":"It's a classic - one of the most beautiful sights in the cosmos and now the new super space telescope James Webb has visited it anew.\r\nThe so-called \"Pillars of Creation\" are cool, dense clouds of hy… [+1637 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"Watch Ukrainian troops under close gunfire","description":"War in eastern Ukraine involves not only artillery strikes, but close combat, as the BBC's Jonathan Beale finds.","url":"http://www.bbc.co.uk/news/world-europe-63318579","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/13E80/production/_127263518_p0d81n2f.jpg","publishedAt":"2022-10-19T16:22:14.7766328Z","content":"Fighting on the front line near the city of Lyman in eastern Ukraine involves not only artillery strikes, but also close quarters combat, as the BBC's Jonathan Beale finds out.\r\nCamera: Lee Durant\r\nP… [+20 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"Suella Braverman resigns as home secretary","description":"The home secretary was appointed by Prime Minister Liz Truss in September and her departure will add turmoil around No 10.","url":"http://www.bbc.co.uk/news/live/uk-politics-63309400","urlToImage":"https://m.files.bbci.co.uk/modules/bbc-morph-news-waf-page-meta/5.3.0/bbc_news_logo.png","publishedAt":"2022-10-19T15:52:31.1666375Z","content":"If you're just joining us or are in need of a catch up, here four key things we have learned so far:\r\nPensions triple lock to stay\r\nIn a surprise revelation at Prime Minister's Questions earlier, Liz… [+1452 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"Putin decree is doubling down as pressure grows","description":"Vladimir Putin is tightening security across Russia, with the introduction of different security levels.","url":"http://www.bbc.co.uk/news/world-europe-63319100","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/E048/production/_127261475_mediaitem127261471.jpg","publishedAt":"2022-10-19T15:07:17.5111432Z","content":"Vladimir Putin is under growing pressure.\r\nHis \"special military operation\" has not gone according to plan. As a result of the Ukrainian counter-offensive, Russia has been losing territory it had occ… [+3001 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"Anna May Wong: Actress becomes first Asian American on US currency","description":"She will appear as part of an effort to feature notable women on American quarters.","url":"http://www.bbc.co.uk/news/entertainment-arts-63316940","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/10686/production/_127260276_gettyimages-154047962.jpg","publishedAt":"2022-10-19T14:07:23.619259Z","content":"Actress Anna May Wong is set to become the first Asian American to be featured on US currency.\r\nShe will appear as part of an effort to feature notable women on American quarters.\r\nWong, who is consi… [+1960 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"The 800-day US visa wait causing India despair","description":"The US is struggling to clear a large backlog of visas, affecting thousands of Indians.","url":"http://www.bbc.co.uk/news/world-asia-india-63301257","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/16020/production/_127244109_p0d7r05y.jpg","publishedAt":"2022-10-19T12:37:20.603458Z","content":"The US is struggling to clear a large backlog of visa applications after it halted almost all processing operations during Covid-19. \r\nThis has severely disrupted Indian businesses and hit hundreds o… [+397 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"Five hours' sleep is tipping point for bad health","description":"Getting less than this may increase the risk of a multitude of chronic conditions, say researchers.","url":"http://www.bbc.co.uk/news/health-63284305","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/1F7E/production/_127226080_gettyimages-1333374427.jpg","publishedAt":"2022-10-19T10:22:24.3232143Z","content":"At least five hours sleep a night may cut the over-50s' chances of multiple chronic health problems, researchers say. \r\nIll health can disrupt sleep - but poor sleep may also be a forewarning or a ri… [+2713 chars]"},{"source":{"id":"bbc-news","name":"BBC News"},"author":"BBC News","title":"Liz Truss: What the world is saying about UK turmoil","description":"BBC reporters around the globe explain how the political and economic upheaval is being viewed.","url":"http://www.bbc.co.uk/news/world-63293009","urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/8647/production/_127257343_truss_getty976.jpg","publishedAt":"2022-10-19T10:22:21.1348437Z","content":"The world has been watching the political and economic upheaval in the UK over the past few weeks. \r\nThe havoc caused by Prime Minister Liz Truss's tax-cutting plan, followed by its withdrawal this w… [+4815 chars]"}]}
@sdetweil said in Failed update:
@DarrenHill ok, try the latest… dang pi results different than other OS versons of npm
Thanks - that’s fixed it :D
@sdetweil Doesn’t look good
pi@mirrorpi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/ MagicMirror_scripts/master/upgrade-script.sh)" force
force: i#!/bin/bash: No such file or directory
No LSB modules are available.
doing test run = false
update log will be in /home/pi/MagicMirror/installers/upgrade.log
Check current Node installation ...
Node currently installed. Checking version number.
Minimum Node version: v16.9.1
Installed Node version: v16.17.1
No Node.js upgrade necessary.
Check current NPM installation ...
NPM currently installed. Checking version number.
Minimum npm version: V7.11.2
Installed npm version: V8.15.0
No npm upgrade necessary.
force: line 271: --no-fund: command not found
saving custom.css
upgrading from version 2.21.0 to 2.21.0
fetching latest revisions
updating MagicMirror runtime, please wait
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /home/pi/MagicMirror/node_modules/acorn
npm ERR! dest /home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig
npm ERR! errno -39
npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/acorn' -> '/home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-10-02T21_30_31_689Z-debug-0.log
Checking for modules with removed libraries
processing dependency changes for active modules with package.json files
processing for module MMM-ModuleScheduler please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
added 3 packages, and audited 4 packages in 20s
found 0 vulnerabilities
processing complete for module MMM-ModuleScheduler
processing for module MMM-DigClock please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
up to date, audited 1 package in 827ms
found 0 vulnerabilities
processing complete for module MMM-DigClock
processing for module MMM-ping please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
added 3 packages, and audited 4 packages in 44s
found 0 vulnerabilities
processing complete for module MMM-ping
processing for module MMM-network-signal please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
added 3 packages, and audited 4 packages in 3s
found 0 vulnerabilities
processing complete for module MMM-network-signal
processing for module MMM-Space please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
up to date, audited 1 package in 843ms
found 0 vulnerabilities
processing complete for module MMM-Space
processing for module MMM-NetworkScanner please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
added 7 packages, and audited 8 packages in 40s
found 0 vulnerabilities
processing complete for module MMM-NetworkScanner
processing for module MMM-NewsAPI please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 52 packages, and audited 53 packages in 15s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
processing complete for module MMM-NewsAPI
processing for module MMM-Mail please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
npm WARN deprecated emailjs-tcp-socket@1.0.2: This project is no longer maintained. Please reach out if you want to hop on as a maintainer.
added 10 packages, and audited 11 packages in 4s
3 vulnerabilities (2 moderate, 1 high)
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
processing complete for module MMM-Mail
processing for module MMM-GmailFeed please wait
----------------------------------
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 50 packages, and audited 51 packages in 7s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
processing complete for module MMM-GmailFeed
restoring custom.css
I’m off to bed in a few moments, so feel free to take your time over it. Don’t interrupt your family time for it, it can wait a while.
Thanks as ever for the support and effort though.
@sdetweil said in Failed update:
@DarrenHill ok,I am w grandchild til 7 us Central…
No probs, take whatever time you need. Family comes first.
If you need any more logs etc, let me know (I’m in the UK, so about for another hour or two but can pick up tomorrow too).