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

    Posts

    Recent Best Controversial
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @proxxym open the following file:

      ~/MagicMirror/modules/MMM-homeassistant-sensors/MMM-homeassistant-sensors.css
      

      find the following lines:

      .ha-small {
        font-size: 15px;
        line-height: 18px;
        font-weight: bold;
        color: #999
      }
      
      .ha-normal {
        font-size: 20px;
        line-height: 25px;
        color: #999
      }
      
      .ha-big {
        font-size: 22px;
        line-height: 26px;  
        color: #999
      }
      

      and either change the .ha-big font-size from 22px to something bigger (e.g. 30px, 36px, etc.)

      or add a completely separate style:

      .ha-extra-big {
        font-size: 36px;
        line-height: 30px;  
        color: #999
      }
      

      and change this in your config

      rowClass = 'extra-big'
      
      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @proxxym
      afaf132e-851b-4ccb-b36b-1d2bebbfd5fc-image.png

      posted in Utilities
      I
      Ivanov_d
    • RE: New 2-way mirror supplier - low prices and lead times

      mirror-in-mirror = mirrorception :D

      @Daniels nice setup, mate! Thank you for the positive feedback. It was a pleasure dealing with you as well.

      posted in Hardware
      I
      Ivanov_d
    • RE: Every few hours I get "ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service"

      I usually don’t do this and dig to the bottom of the problem, but this time I gave up and reverted back to Raspbian Buster and all my issues were solved. It seems that there are still some issues with RPi3b+ and Bullseye.

      posted in Troubleshooting
      I
      Ivanov_d
    • RE: Every few hours I get "ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service"

      Today I got a new error message “GPU process isn’t usable. Goodbye.”:

      0|MagicMirror  | [25.03.2022 16:21.17.187] [INFO]  Checking git for module: MMM-homeassistant-sensors
      0|MagicMirror  | [25.03.2022 16:21.17.354] [INFO]  
      0|MagicMirror  | Checking git for module: default
      0|MagicMirror  | [25.03.2022 16:22.15.459] [LOG]   Shutting down server...
      0|MagicMirror  | [25.03.2022 16:22.15.464] [LOG]   Stopping module helper: updatenotification
      0|MagicMirror  | [25.03.2022 16:22.15.466] [LOG]   Stopping module helper: MMM-MyCalendar
      0|MagicMirror  | [25.03.2022 16:22.15.468] [LOG]   Stopping module helper: MMM-DarkSkyForecast
      0|MagicMirror  | [25.03.2022 16:22.15.469] [LOG]   Stopping module helper: newsfeed
      0|MagicMirror  | [25.03.2022 16:22.15.470] [LOG]   Stopping module helper: MMM-GoogleAssistant
      0|MagicMirror  | [25.03.2022 16:22.15.472] [LOG]   Stopping module helper: Gateway
      0|MagicMirror  | [25.03.2022 16:22.15.474] [LOG]   Stopping module helper: EXT-Alert
      0|MagicMirror  | [25.03.2022 16:22.15.476] [LOG]   Stopping module helper: EXT-Detector
      0|MagicMirror  | [25.03.2022 16:22.15.477] [LOG]   Stopping module helper: MMM-Spotify
      0|MagicMirror  | [25.03.2022 16:22.15.479] [LOG]   Stopping module helper: MMM-MyCommute
      0|MagicMirror  | [25.03.2022 16:22.15.480] [LOG]   MMM-GoogleBirthdaysProvider: Stopping helper
      0|MagicMirror  | [25.03.2022 16:22.15.482] [LOG]   Stopping module helper: MMM-homeassistant-sensors
      0|MagicMirror  | [16373:0325/162215.558435:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
      0|MagicMirror  | [16373:0325/162215.603817:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
      0|MagicMirror  | [16373:0325/162215.612830:ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service.
      0|MagicMirror  | [16373:0325/162215.642076:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [16373:0325/162215.660312:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [16373:0325/162215.668549:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [16373:0325/162215.678393:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [16373:0325/162215.685640:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [16373:0325/162215.692769:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [16373:0325/162215.692890:FATAL:gpu_data_manager_impl_private.cc(417)] GPU process isn't usable. Goodbye.
      
      posted in Troubleshooting
      I
      Ivanov_d
    • RE: Every few hours I get "ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service"

      @TvE I was jumping for joy way too soon. I took out my SD card to make a backup of it and when I put it back in, MagicMirror started restarting every other minute just like before. No changes were made whatsoever. I am now very confused …

      posted in Troubleshooting
      I
      Ivanov_d
    • RE: Every few hours I get "ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service"

      @TvE it’s been running for 25 hours so far:

      pm2 status MagicMirror
      ┌───────────────┬────┬─────────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
      │ App name      │ id │ version │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
      ├───────────────┼────┼─────────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
      │   MagicMirror │ 0  │ 2.18.0  │ fork │ 2911 │ online │ 15      │ 25h    │ 0%  │ 2.7 MB   │ pi   │ disabled │
      └───────────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
      

      I am still tweaking my config, however, my approach was the following:

      1. I updated from Rapbian Buster to Bullseye
      2. That broke my Raspberry Pi 3b+'s WiFi connection (seems like a known bug https://forums.raspberrypi.com/viewtopic.php?t=325484), so I removed connman package and installed network-manager and connected to the WiFi. If you install network-manager, you will also want to disable the MAC randomization:
        To disable the WiFi MAC randomization, create the following file using the this command:
      sudo nano /etc/NetworkManager/conf.d/100-disable-wifi-mac-randomization.conf
      

      and paste the following content inside:

      [connection]
      wifi.mac-address-randomization=1
      [device]
      wifi.scan-rand-mac-address=no
      

      Save the changes and continue.

      1. I backed up my MM config and modules folder and started with a fresh install of MM 2.18
      2. I started MM with the default config - no luck, it was crashing every minute
      3. I started removing the default modules and installing the ones that I had before
      4. I was observing the same behavior as you did - the default modules that needed network connection, when fetching data were breaking the network stack somehow … I edited the config to enter my calendar and newsfeed URLs and that seemed to fixed the issue. It might be something in the response of the default calendar and/or newsfeed … but that is just my speculation.

      I also have pulled all the latest updates for every module that I had installed previously just to make sure that I am all up to date.

      Ever since as you can see, my MM has been running steadily. Definitely not an SoC temp issue, since I never had anything than the stock aluminum radiators on the Pi and it has been running for 3-4 years 24/7 already.

      I wouldn’t have decided to upgrade to bullseye if it was not a requirement for the new version of MMM-GoogleAssistant.

      Anyways, I hope that this helps.

      P.S. I am in Sofia, so the date/time in my log is GMT +02:00

      posted in Troubleshooting
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      I finally found out what the issue is. It was an electron bug that is fixed in MM v. 2.18 (I was using an older version). Now everything works.

      posted in Utilities
      I
      Ivanov_d
    • RE: Exiting GPU process due to errors during initialization

      Seems that this is a know bug and not the cause of the restart.

      posted in Troubleshooting
      I
      Ivanov_d
    • RE: Every few hours I get "ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service"

      @TvE I am in the same spot as you.

      Raspberry Pi 3b+
      Fresh installed Raspbian Bullseye 11
      Fresh install of MM with vanilla config and modules - crashes every minute and restarts itself. Are you saying that the config might be the problem?

      0|MagicMirror  | Launching application.
      0|MagicMirror  | [18725:0322/102613.376542:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMirror  | [18766:0322/102613.700219:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      0|MagicMirror  | [22.03.2022 10:26.16.088] [LOG]   
      0|MagicMirror  | Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      0|MagicMirror  | [22.03.2022 10:26.16.175] [LOG]   
      0|MagicMirror  | Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMirror  | [22.03.2022 10:26.16.248] [INFO]  
      0|MagicMirror  | Checking git for module: default
      0|MagicMirror  | [22.03.2022 10:26.17.014] [INFO]  
      0|MagicMirror  | Newsfeed-Fetcher: Broadcasting 61 items.
      0|MagicMirror  | [22.03.2022 10:26.17.522] [INFO]  
      0|MagicMirror  | Calendar-Fetcher: Broadcasting 10 events.
      0|MagicMirror  | [22.03.2022 10:27.33.823] [LOG]   Shutting down server...
      0|MagicMirror  | [22.03.2022 10:27.33.833] [LOG]   Stopping module helper: updatenotification
      0|MagicMirror  | [22.03.2022 10:27.33.835] [LOG]   Stopping module helper: calendar
      0|MagicMirror  | [22.03.2022 10:27.33.848] [LOG]   Stopping module helper: newsfeed
      0|MagicMirror  | [18692:0322/102733.909781:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
      0|MagicMirror  | [18692:0322/102733.942607:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
      0|MagicMirror  | [18692:0322/102733.958362:ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service.
      0|MagicMirror  | [18692:0322/102733.974458:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [18692:0322/102733.982862:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [18692:0322/102733.989821:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [18692:0322/102733.998527:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | > magicmirror@2.18.0 start
      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMirror  | [22.03.2022 10:27.42.385] [LOG]   
      0|MagicMirror  | Starting MagicMirror: v2.18.0
      0|MagicMirror  | [22.03.2022 10:27.42.407] [LOG]   
      0|MagicMirror  | Loading config ...
      0|MagicMirror  | [22.03.2022 10:27.42.421] [LOG]   
      0|MagicMirror  | Loading module helpers ...
      0|MagicMirror  | [22.03.2022 10:27.42.427] [LOG]   
      0|MagicMirror  | No helper found for module: alert.
      0|MagicMirror  | [22.03.2022 10:27.42.463] [LOG]
      
      posted in Troubleshooting
      I
      Ivanov_d
    • Exiting GPU process due to errors during initialization

      Hi all! I have installed a fresh copy of MagicMirror. It runs with the default config for testing purposes. However every other minute, the app restarts and that is what I see in the logs.

      Has anybody else had the same issue?

      0|MagicMirror  | [22.03.2022 08:05.49.841] [LOG]   Shutting down server...
      0|MagicMirror  | [22.03.2022 08:05.49.846] [LOG]   Stopping module helper: updatenotification
      0|MagicMirror  | [22.03.2022 08:05.49.848] [LOG]   Stopping module helper: calendar
      0|MagicMirror  | [22.03.2022 08:05.49.851] [LOG]   Stopping module helper: newsfeed
      0|MagicMirror  | [3597:0322/080549.911892:ERROR:network_service_instance_impl.cc(916)] Network service crashed, restarting service.
      0|MagicMirror  | [3597:0322/080549.948086:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
      0|MagicMirror  | [3597:0322/080549.951955:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
      0|MagicMirror  | [3597:0322/080549.991850:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [3597:0322/080549.998793:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | [3597:0322/080550.004524:ERROR:gpu_process_host.cc(962)] GPU process launch failed: error_code=1002
      0|MagicMirror  | > magicmirror@2.18.0 start
      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMirror  | [22.03.2022 08:05.58.334] [LOG]
      0|MagicMirror  | Starting MagicMirror: v2.18.0
      0|MagicMirror  | [22.03.2022 08:05.58.358] [LOG]
      0|MagicMirror  | Loading config ...
      0|MagicMirror  | [22.03.2022 08:05.58.375] [LOG]
      0|MagicMirror  | Loading module helpers ...
      0|MagicMirror  | [22.03.2022 08:05.58.385] [LOG]
      0|MagicMirror  | No helper found for module: alert.
      0|MagicMirror  | [22.03.2022 08:05.58.425] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:05.58.433] [LOG]
      0|MagicMirror  | Module helper loaded: updatenotification
      0|MagicMirror  | [22.03.2022 08:05.58.443] [LOG]
      0|MagicMirror  | No helper found for module: clock.
      0|MagicMirror  | [22.03.2022 08:05.58.738] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:05.58.746] [LOG]
      0|MagicMirror  | Module helper loaded: calendar
      0|MagicMirror  | [22.03.2022 08:05.58.749] [LOG]   No helper found for module: compliments.
      0|MagicMirror  | [22.03.2022 08:05.58.753] [LOG]   No helper found for module: weather.
      0|MagicMirror  | [22.03.2022 08:05.58.797] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:05.58.798] [LOG]   Module helper loaded: newsfeed
      0|MagicMirror  | [22.03.2022 08:05.58.800] [LOG]   All module helpers loaded.
      0|MagicMirror  | [22.03.2022 08:05.59.004] [LOG]
      0|MagicMirror  | Starting server on port 8080 ...
      0|MagicMirror  | [22.03.2022 08:05.59.033] [LOG]
      0|MagicMirror  | Server started ...
      0|MagicMirror  | [22.03.2022 08:05.59.036] [LOG]   Connecting socket for: updatenotification
      0|MagicMirror  | [22.03.2022 08:05.59.038] [LOG]   Starting module helper: updatenotification
      0|MagicMirror  | [22.03.2022 08:05.59.041] [LOG]   Connecting socket for: calendar
      0|MagicMirror  | [22.03.2022 08:05.59.043] [LOG]   Starting node helper for: calendar
      0|MagicMirror  | [22.03.2022 08:05.59.044] [LOG]   Connecting socket for: newsfeed
      0|MagicMirror  | [22.03.2022 08:05.59.047] [LOG]   Starting node helper for: newsfeed
      0|MagicMirror  | [22.03.2022 08:05.59.048] [LOG]   Sockets connected & modules started ...
      0|MagicMirror  | Fontconfig warning: ignoring UTF-8: not a valid region tag
      0|MagicMirror  | [22.03.2022 08:05.59.496] [LOG]
      0|MagicMirror  | Launching application.
      0|MagicMirror  | [3805:0322/080600.430740:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMirror  | [3847:0322/080600.709029:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      0|MagicMirror  | [22.03.2022 08:06.03.253] [LOG]
      0|MagicMirror  | Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      0|MagicMirror  | [22.03.2022 08:06.03.349] [LOG]
      0|MagicMirror  | Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMirror  | [22.03.2022 08:06.03.438] [INFO]
      0|MagicMirror  | Checking git for module: default
      0|MagicMirror  | [22.03.2022 08:06.04.245] [INFO]
      0|MagicMirror  | Newsfeed-Fetcher: Broadcasting 62 items.
      0|MagicMirror  | [22.03.2022 08:06.04.525] [INFO]
      0|MagicMirror  | Calendar-Fetcher: Broadcasting 10 events.
      0|MagicMirror  | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGTERM
      0|MagicMirror  | > magicmirror@2.18.0 start
      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMirror  | [22.03.2022 08:07.29.120] [LOG]
      0|MagicMirror  | Starting MagicMirror: v2.18.0
      0|MagicMirror  | [22.03.2022 08:07.29.145] [LOG]
      0|MagicMirror  | Loading config ...
      0|MagicMirror  | [22.03.2022 08:07.29.162] [LOG]
      0|MagicMirror  | Loading module helpers ...
      0|MagicMirror  | [22.03.2022 08:07.29.173] [LOG]
      0|MagicMirror  | No helper found for module: alert.
      0|MagicMirror  | [22.03.2022 08:07.29.212] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:07.29.220] [LOG]
      0|MagicMirror  | Module helper loaded: updatenotification
      0|MagicMirror  | [22.03.2022 08:07.29.230] [LOG]
      0|MagicMirror  | No helper found for module: clock.
      0|MagicMirror  | [22.03.2022 08:07.29.529] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:07.29.538] [LOG]
      0|MagicMirror  | Module helper loaded: calendar
      0|MagicMirror  | [22.03.2022 08:07.29.547] [LOG]
      0|MagicMirror  | No helper found for module: compliments.
      0|MagicMirror  | [22.03.2022 08:07.29.555] [LOG]
      0|MagicMirror  | No helper found for module: weather.
      0|MagicMirror  | [22.03.2022 08:07.29.600] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:07.29.601] [LOG]   Module helper loaded: newsfeed
      0|MagicMirror  | [22.03.2022 08:07.29.603] [LOG]   All module helpers loaded.
      0|MagicMirror  | [22.03.2022 08:07.29.800] [LOG]
      0|MagicMirror  | Starting server on port 8080 ...
      0|MagicMirror  | [22.03.2022 08:07.29.828] [LOG]
      0|MagicMirror  | Server started ...
      0|MagicMirror  | [22.03.2022 08:07.29.831] [LOG]
      0|MagicMirror  | Connecting socket for: updatenotification
      0|MagicMirror  | [22.03.2022 08:07.29.833] [LOG]   Starting module helper: updatenotification
      0|MagicMirror  | [22.03.2022 08:07.29.835] [LOG]   Connecting socket for: calendar
      0|MagicMirror  | [22.03.2022 08:07.29.837] [LOG]   Starting node helper for: calendar
      0|MagicMirror  | [22.03.2022 08:07.29.839] [LOG]   Connecting socket for: newsfeed
      0|MagicMirror  | [22.03.2022 08:07.29.841] [LOG]   Starting node helper for: newsfeed
      0|MagicMirror  | [22.03.2022 08:07.29.843] [LOG]   Sockets connected & modules started ...
      0|MagicMirror  | Fontconfig warning: ignoring UTF-8: not a valid region tag
      0|MagicMirror  | [22.03.2022 08:07.30.266] [LOG]
      0|MagicMirror  | Launching application.
      0|MagicMirror  | [3972:0322/080731.149506:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMirror  | [4012:0322/080731.425367:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      0|MagicMirror  | [22.03.2022 08:07.33.874] [LOG]
      0|MagicMirror  | Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      0|MagicMirror  | [22.03.2022 08:07.33.945] [LOG]
      0|MagicMirror  | Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMirror  | [22.03.2022 08:07.34.020] [INFO]
      0|MagicMirror  | Checking git for module: default
      0|MagicMirror  | [22.03.2022 08:07.35.040] [INFO]
      0|MagicMirror  | Newsfeed-Fetcher: Broadcasting 62 items.
      0|MagicMirror  | [22.03.2022 08:07.35.333] [INFO]
      0|MagicMirror  | Calendar-Fetcher: Broadcasting 10 events.
      0|MagicMirror  | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGTERM
      0|MagicMirror  | > magicmirror@2.18.0 start
      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMirror  | [22.03.2022 08:08.59.890] [LOG]
      0|MagicMirror  | Starting MagicMirror: v2.18.0
      0|MagicMirror  | [22.03.2022 08:08.59.903] [LOG]   Loading config ...
      0|MagicMirror  | [22.03.2022 08:08.59.915] [LOG]
      0|MagicMirror  | Loading module helpers ...
      0|MagicMirror  | [22.03.2022 08:08.59.920] [LOG]   No helper found for module: alert.
      0|MagicMirror  | [22.03.2022 08:08.59.953] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:08.59.956] [LOG]   Module helper loaded: updatenotification
      0|MagicMirror  | [22.03.2022 08:08.59.959] [LOG]   No helper found for module: clock.
      0|MagicMirror  | [22.03.2022 08:09.00.255] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:09.00.258] [LOG]
      0|MagicMirror  | Module helper loaded: calendar
      0|MagicMirror  | [22.03.2022 08:09.00.262] [LOG]
      0|MagicMirror  | No helper found for module: compliments.
      0|MagicMirror  | [22.03.2022 08:09.00.265] [LOG]   No helper found for module: weather.
      0|MagicMirror  | [22.03.2022 08:09.00.308] [LOG]
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [22.03.2022 08:09.00.310] [LOG]   Module helper loaded: newsfeed
      0|MagicMirror  | [22.03.2022 08:09.00.311] [LOG]   All module helpers loaded.
      0|MagicMirror  | [22.03.2022 08:09.00.505] [LOG]
      0|MagicMirror  | Starting server on port 8080 ...
      0|MagicMirror  | [22.03.2022 08:09.00.534] [LOG]
      0|MagicMirror  | Server started ...
      0|MagicMirror  | [22.03.2022 08:09.00.536] [LOG]   Connecting socket for: updatenotification
      0|MagicMirror  | [22.03.2022 08:09.00.538] [LOG]   Starting module helper: updatenotification
      0|MagicMirror  | [22.03.2022 08:09.00.540] [LOG]
      0|MagicMirror  | Connecting socket for: calendar
      0|MagicMirror  | [22.03.2022 08:09.00.542] [LOG]   Starting node helper for: calendar
      0|MagicMirror  | [22.03.2022 08:09.00.543] [LOG]   Connecting socket for: newsfeed
      0|MagicMirror  | [22.03.2022 08:09.00.544] [LOG]   Starting node helper for: newsfeed
      0|MagicMirror  | [22.03.2022 08:09.00.545] [LOG]   Sockets connected & modules started ...
      0|MagicMirror  | Fontconfig warning: ignoring UTF-8: not a valid region tag
      0|MagicMirror  | [22.03.2022 08:09.00.962] [LOG]
      0|MagicMirror  | Launching application.
      0|MagicMirror  | [4127:0322/080901.889231:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMirror  | [4168:0322/080902.203933:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      0|MagicMirror  | [22.03.2022 08:09.04.598] [LOG]
      0|MagicMirror  | Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      0|MagicMirror  | [22.03.2022 08:09.04.664] [LOG]
      0|MagicMirror  | Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMirror  | [22.03.2022 08:09.04.733] [INFO]
      0|MagicMirror  | Checking git for module: default
      0|MagicMirror  | [22.03.2022 08:09.05.534] [INFO]
      0|MagicMirror  | Newsfeed-Fetcher: Broadcasting 62 items.
      0|MagicMirror  | [22.03.2022 08:09.05.791] [INFO]
      0|MagicMirror  | Calendar-Fetcher: Broadcasting 10 events.
      
      posted in Troubleshooting
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille in the config.js:

      c1f76c95-765d-49e9-8755-361f904e1fdf-image.png

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille in my case non-SSL connections don’t fail, only SSL ones. Any idea how to find which package might be missing or outdated? My coding skills are a bit rusty :D

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille said in MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror:

      curl -X GET -H “Authorization: Bearer VeRy-LoNg-API-ToKen” -H “Content-Type: application/json” http://ha-IP:8123/api/states

      Same here … I get all states with the following URLs:

      https://myhome.org:443/api/states
      https://myhome/api/states

      However, when I try to use the local IP I can’t and that is normal as the certificate is not for that domain:

      pi@raspberrypi:~ $ curl -X GET -H "Authorization: Bearer long-token" -H "Content-Type: application/json" https://192.168.1.19:443/api/states
      curl: (7) Failed to connect to 192.168.1.19 port 443: Connection refused
      
      pi@raspberrypi:~ $ curl -X GET -H "Authorization: Bearer long-token" -H "Content-Type: application/json" https://192.168.1.19:8123/api/states
      curl: (60) SSL: no alternative certificate subject name matches target host name '192.168.1.19'
      More details here: https://curl.haxx.se/docs/sslcerts.html
      
      curl failed to verify the legitimacy of the server and therefore could not
      establish a secure connection to it. To learn more about this situation and
      how to fix it, please visit the web page mentioned above.
      

      What is wierd though is that although using SSL, the default port is still 8123, however, the connection is secured

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @Snille I think that I found out what the issue might be (at least for my case). I turned on debugging and here is what popped-up:

      0|MagicMirror  | [19.02.2022 12:34.16.715] [ERROR] 
      0|MagicMirror  | MMM-homeassistant-sensors ERROR: Error: certificate has expired
      0|MagicMirror  |     at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34)
      0|MagicMirror  |     at TLSSocket.emit (events.js:315:20)
      0|MagicMirror  |     at TLSSocket._finishInit (_tls_wrap.js:936:8)
      0|MagicMirror  |     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12) {
      0|MagicMirror  |   code: 'CERT_HAS_EXPIRED'
      0|MagicMirror  | }
      0|MagicMirror  | [19.02.2022 12:34.16.721] [ERROR] 
      0|MagicMirror  | Whoops! There was an uncaught exception...
      0|MagicMirror  | [19.02.2022 12:34.16.727] [ERROR] 
      0|MagicMirror  | TypeError: Cannot read property 'statusCode' of undefined
      0|MagicMirror  |     at Request._callback (/home/pi/MagicMirror/modules/MMM-homeassistant-sensors/node_helper.js:22:77)
      0|MagicMirror  |     at self.callback (/home/pi/MagicMirror/modules/MMM-homeassistant-sensors/node_modules/request/request.js:185:22)
      0|MagicMirror  |     at Request.emit (events.js:315:20)
      0|MagicMirror  |     at Request.onRequestError (/home/pi/MagicMirror/modules/MMM-homeassistant-sensors/node_modules/request/request.js:877:8)
      0|MagicMirror  |     at ClientRequest.emit (events.js:315:20)
      0|MagicMirror  |     at TLSSocket.socketErrorListener (_http_client.js:426:9)
      0|MagicMirror  |     at TLSSocket.emit (events.js:315:20)
      0|MagicMirror  |     at emitErrorNT (internal/streams/destroy.js:92:8)
      0|MagicMirror  |     at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      0|MagicMirror  |     at processTicksAndRejections (internal/process/task_queues.js:84:21)
      

      The certificate is valid though:
      34fa0f78-0e55-4957-a4bd-fc5e9d345303-image.png

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille I think you struck the same obstacle as me, mate :D My setup is a bit different as I am not using reverse proxy - it is either SSL or no SSL within the local network and outside of it.
      I am looking at the JS code right now … it might have something to do with how the URL is structured as it might not cover both cases, but I have to confirm that.

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille lol sorry to hear that. I managed to get it to work on my main HA instance by removing SSL from my HA configuration.yaml file:

      b3f64a7f-d0e1-4a24-9964-673dceaa165b-image.png

      However, that doesn’t suit my needs as I control my house through my phone over the Internet and I want SSL to be enabled. I am continuing testing. Will keep you posted.

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille what is the most up-to-date code repo? The one that I pulled from is https://github.com/theskyisthelimit/MMM-homeassistant-sensors.git

      Could it be that I have an old code base? I tried with different ports, URL/IP, still the same and still no errors in both logs HA or MM …

      EDIT: I tried with another HA instance that I have which doesn’t have SSL enabled and it worked, so now I need to figure out what the difference between the two are :)

      Will keep you posted.

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille it stopped working after HA version 2021.10 when the API discovery feature was deprecated. I am running HA Supervised on one raspberry pi and MM on another raspberry pi in the same network.

      Here is the config of the MM module:

      {
        module: 'MMM-homeassistant-sensors',
        position: 'top_right',
        config: {
          title:  'Сензори',
          rowClass: 'normal',
          host: "192.168.1.19",
          port: "8123",
          https: true, //I have SSL enables since my instance is exposed to the Internet
          token: "here_goes_my_token",
          values: [
            {
              sensor: "sensor.bathroom_temp_temperature",
              name: 'Температура',
              icons: [{
                "default": "thermometer"
              }]
            },
            {
              sensor: "sensor.bathroom_temp_humidity",
              name: 'Влажност',
              icons: [{
                "default": "water-percent"
              }]
            },
            {
              sensor: "switch.bathroom_fan_1",
              name: 'Вентилатор 1',
              icons: [{
                "on": "fan",
                "off": "fan-off"
              }],
              replace: [{
                "on": "вкл.",
                "off": "изкл."
              }]
            },
            {
              sensor: "switch.bathroom_fan_2",
              name: 'Вентилатор 2',
              icons: [{
                "on": "fan",
                "off": "fan-off"
              }],
              replace: [{
                "on": "вкл.",
                "off": "изкл."
              }]
            },
          ]
        }
      },
      

      Here is the changelog of HA 2021.10:

      The API endpoint /api/discovery_info now only return blank values. This endpoint is scheduled to be removed in Home Assistant Core 2022.1.
      
      As a regular user of Home Assistant, this change should not affect you.
      
      (@ludeeus - #56097) (api docs)
      

      In the past I was having issues with https and the local IP address and then I changed it to the DNS hostname blabla.duckdsn.org and the external port for https (443) and it was working fine until the /api/discovery_info endpoint was deprecated.

      posted in Utilities
      I
      Ivanov_d
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @snille I don’t see any errors in either MM or HA, however I am still getting Error fetching stats in the module front end. Any suggestions for additional places where I could look? I checked the config and all seems fine to me.

      posted in Utilities
      I
      Ivanov_d
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 2 / 6