MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. DarrenHill
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 85
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Merge conflict after update to 2.19

      @sdetweil Yes, I’m not quite sure what the weatherforecast.js change was, but that’s blown away now. As you say, the new module is fine with a little tweaking via custom.css.

      It was the package.json file that screwed things up, and that I know I have never touched and have no idea what it was and why it got out of sync.

      Anyway I learned a bit of stuff about GitHub and stashing, so that’s a bonus and we’re up and running again fine (after swapping out the depreciated weather modules too).

      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-News and BBC

      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]"}]}
      
      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-whoshome A way to know who is home based on cellular phones

      OK, I think I have it.
      Using the window I confirm that the home people are using the same class (whoishome) as the title window.

      To get that to work properly, I changed the MMM-whoishome.js line 34 from

      html = html + '<img class="person" src="' + this.config.TRACK[this.peopleArray[i][0]].image + '"> ' + this.peopleArray[i][0] + '<BR>';
      

      to

      html = html + '<img class="person" src="' + this.config.TRACK[this.peopleArray[i][0]].image + '"> <span class="person">' + this.peopleArray[i][0] + '</span><BR>';
      

      and then the people who are home use class person, which can then be used to configure the colour separately to the header title.

      @yedidia - is this something worth adding into the module for better flexibility?
      Sorry I’m not good at GH, so have no idea how to submit a PR for it.

      posted in Showcase
      D
      DarrenHill
    • RE: Failed update

      @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

      posted in Troubleshooting
      D
      DarrenHill
    • RE: resolved.. MMM-NetworkScanner

      @sonicgoose - Note the (mis)spelling of the config parameter for columns - the config entry is “showDeviceColums”, not “showDeviceColumns”. It is missing an n, and needs it removed to work (or the script corrected for it).

      See my config example above, which works. Yours is wrong as (ironically) it’s spelt correctly!

      posted in Utilities
      D
      DarrenHill
    • RE: Default Weather Broke After Update

      @sdetweil OK thanks - clear.

      I’ll have a quick play with the other providers, although the met office are also changing their API in September so probably one to also avoid if future-proofing is desirable.

      As you say, so much fun…

      Edited to add - swapped to the met office data hub one (not the main one, as that’s the one that’s expiring soonish) and was a fairly painless changeover after getting a new account and API key there. All good now.

      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-NewsAPI

      @mumblebaj said in MMM-NewsAPI:

      @DarrenHill Changes have been pushed. You can update the module now.

      All up and running - that’s a fix from my side :D
      Thanks again for that.

      Might have a play with the layout as the pics etc are a bit small (and there’s space to expand things around them in my layout), but I can handle that.

      posted in Utilities
      D
      DarrenHill
    • 1 / 1