MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. DarrenHill
    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

    DarrenHill

    @DarrenHill

    7
    Reputation
    9
    Profile views
    85
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    DarrenHill Unfollow Follow

    Best posts made by DarrenHill

    • 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

    Latest posts made by 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: Default Weather Broke After Update

      @sdetweil Thanks Sam - I recall they were changing but wasn’t sure if that was the root cause here, given it worked prior to the 2.30 upgrade (ie this morning).

      Is it worth doing anything for the moment (getting the new api key etc), or is the module code going to change and so maybe better to wait?

      Or I see the module can do other providers - is there a recommended one for the UK (as I think the met office here are also screwing around with their API if I remember well)?

      posted in Troubleshooting
      D
      DarrenHill
    • Default Weather Broke After Update

      I’ve just updated from 2.28 to 2.30 using the script, and it looks to have broken the default weather module.
      I run it twice on my display, and one (top-left) is now giving “invalid date” for the date and NaN for the temperature.
      The other (top-right) is not showing up at all.

      This is the config snippet for their config (api key redacted):

              {
                  module: "weather",
                  position: "top_left",
                  config: {
                      type: "current",
                      location: "Crawley",
                      locationID: "2652053", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                      apiKey: "redacted",
                      units: "metric",
                      degreeLabel: true,
                      showHumidity: true,
                      tableClass: "medium"
                      }
              },
              {
                  module: "weather",
                  position: "top_right",
                  config: {
                      type: "forecast",
                      appendLocationNameToHeader: false,
                      location: "Crawley",
                      locationID: "2652053", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                      apiKey: "redacted",
                      units: "metric",
                      degreeLabel: true,
                      fade: false,
                      colored: true,
                      tableClass: "forecast"
                      }
              },
      
      

      MagicMirror-error.log shows this:

      [2025-01-05 12:50:19.350] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      [2025-01-05 12:51:17.281] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      [2025-01-05 12:52:17.295] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      [2025-01-05 12:53:16.885] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      [2025-01-05 12:54:16.947] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      [2025-01-05 12:55:16.976] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      [2025-01-05 12:56:16.907] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      [2025-01-05 12:57:16.889] ^[[31m[ERROR]^[[39m ^[[31mError fetching feed: Error fetching feed: 401^[[39m
      

      That’s after stopping the mirror and clearing the log. But looking in the old (massive) log, that error has been there for months.

      Is this a known issue, or anything else I can provide to help fix it?

      It’s running on a Pi3 (fully updated with apt), and the Mirror upgrade was done using the recommended script.
      Rebooting and restarting doesn’t help either, to eliminate a basic…

      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: MMM-whoshome A way to know who is home based on cellular phones

      @sdetweil - Thanks Sam. Looks like a job for the weekend.

      posted in Showcase
      D
      DarrenHill
    • RE: MMM-whoshome A way to know who is home based on cellular phones

      @yedidia - one more quick question.

      As mentioned above, I’m trying to tweak the css to show the names for people who are present and away in different colours.
      What I’ve done so far via custom.css is :

      .whoshome {
          color: lime;
      }
      .person-away {
          color: red;
      }
      
      

      Which works, except it changes the title (the “Who’s Home”) as well.
      Is there any way to do this and keep the title the original colour to match the rest of the mirror modules?

      I tried changing .person rather than .whoshome, but then both the title and people who are home revert to the white that is defined in the css of the module itself.

      posted in Showcase
      D
      DarrenHill
    • RE: MMM-whoshome A way to know who is home based on cellular phones

      @yedidia - just updated and also made all the MAC addresses lower case, and now looks to be working.

      The colours are rather muted, so it’s difficult to tell at a glance who is actually home (aside from not having a last seen line).

      Will look into it more tomorrow, just back from a business trip and rather tired. But thanks again for the good work and useful module!

      posted in Showcase
      D
      DarrenHill
    • RE: MMM-whoshome A way to know who is home based on cellular phones

      @rewie85 - Not yet, but it has only been 24 hours since I posted (and installed) it.

      posted in Showcase
      D
      DarrenHill
    • RE: MMM-whoshome A way to know who is home based on cellular phones

      Looked good and installed it, but can’t get it to work.

      The list is showing up on the Mirror, but never actually sees anyone.
      The MAC addresses are in and confirmed as correct, and randomisation iş turned off.
      Install instructions also followed, with nmap installed as well.

      Is there any easy way to help troubleshoot this?

      posted in Showcase
      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