• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

node_helper.js is not working?

Scheduled Pinned Locked Moved Solved Troubleshooting
49 Posts 3 Posters 15.7k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    MMRIZE @vandy2424
    last edited by Feb 9, 2024, 7:50 PM

    @vandy2424
    If websocket is closed, the path between module and node_helper might be broken. May that be the reason or clue. But very unusual thing. ATM I cannot guess what happened.

    1 Reply Last reply Reply Quote 0
    • S Away
      sdetweil @vandy2424
      last edited by Feb 9, 2024, 8:15 PM

      @vandy2424 said in node_helper.js is not working?:

      To simplify this output, I am just enabling the default clock and weather module and MMM-DynamicWeather for these outputs

      nothing matches that. please show the config.js and the logs from both backend and front end

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      V 1 Reply Last reply Feb 9, 2024, 9:30 PM Reply Quote 0
      • V Offline
        vandy2424 @sdetweil
        last edited by Feb 9, 2024, 9:30 PM

        @sdetweil Hi Sam, I am not sure what you mean by showing the logs from the backend and front end. I thought that is what I just showed you. (Terminal & dev console). You can see in the dev console, it loading clock, weather and MMM-DynamicWeather modules.

        Please let me know what I am not understanding here and I will get you those logs. Thanks!

        Here is the config.js file:

        let config = {
          address: "0.0.0.0",	// default is "localhost",
          port: 8080,		// default,
          ipWhitelist: [], // default -- need to add your IP here,
          modules: [
            {
              module: "clock",
              position: "top_left",
              config: {
                    timeFormat:12,
                    timezone:"America/Chicago",
                    displaySeconds:"true",
                    showPeriod:"true",
                    showDate:"true",
                    displayType:"both",
                },
            },
            {
              module: "weather",
              position: "top_right",
              config: {
                type: "current",
                units: "imperial",
                tempUnits: "imperial",
                windUnits: "imperial",
                apiVersion: "3.0",
                weatherEndpoint: "/onecall",
                apiKey: "KEY",
                lat:"50.75",
                lon:"-88.16",
                showUVindex:"true",
              },
            },
            {
              module: "weather",
              position: "top_right",
              config: {
                type: "daily",
                units: "imperial",
                tempUnits: "imperial",
                windUnits: "imperial",
                apiVersion: "3.0",
                weatherEndpoint: "/onecall",
                apiKey: "KEY",
                lat:"50.75",
                lon:"-88.16",
              },
            },
            {
             module: 'MMM-DynamicWeather',
             position: 'fullscreen_above',
             config: { // See https://github.com/scottcl88/MMM-DynamicWeather for more information.
              api_key: "KEY",
              lat:"50",
              lon:"-88.16",
              },
            },
          ],
        };
        
        

        Again this is just with the DynamicWeather module. I can add others but this simplifies.

        S M 2 Replies Last reply Feb 9, 2024, 10:47 PM Reply Quote 0
        • S Away
          sdetweil @vandy2424
          last edited by Feb 9, 2024, 10:47 PM

          @vandy2424 backend , console output from npm start

          front end, in the developers window

          this config does not match the messages

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          V 1 Reply Last reply Feb 9, 2024, 11:01 PM Reply Quote 0
          • V Offline
            vandy2424 @sdetweil
            last edited by Feb 9, 2024, 11:01 PM

            @sdetweil Hi Sam,

            I am unsure how else I am supposed to respond other than to say, this is the exact config that produced those backend/front end logs. If this is unusual, maybe something is broken here? I am not sure what “working” logs are supposed to look like, since it sounds like mine may be broken.

            To show proof, here are screenshots as I am unsure how else to provide feedback here.
            (I pulled up the dev window as far as I could while still exposing working default modules). This output is the same as listed above:
            3ab5f282-9cb2-43b4-93bf-c62face3feb1-image.png

            I also did a CTRL-ALT-DELETE to allow me to access my text editor and pull up the MagicMirror/config.js file live while the magic mirror is still running. This is the exact config I posted previously:
            8f9bd632-1dc5-4147-ac28-ee83c8c5e6ee-image.png

            The front & backend logs remain completely the same as posted earlier. Hopefully I am not completely misunderstanding you here. Thanks for the help!

            S M 2 Replies Last reply Feb 9, 2024, 11:29 PM Reply Quote 0
            • M Offline
              MMRIZE @vandy2424
              last edited by Feb 9, 2024, 11:11 PM

              @vandy2424
              I think websocket issue would be the reason. Can you confirm whether other node_helper dependent module(e.g. default calendar module) works other than MMM-DynamicWeather?

              Usually, websocket could be broken by firewall setting, port problem, network quality or by old library, oand many various reasons. Anyway when websocket is broken once, socketNotification will not work.

              V 1 Reply Last reply Feb 9, 2024, 11:39 PM Reply Quote 0
              • S Away
                sdetweil @vandy2424
                last edited by Feb 9, 2024, 11:29 PM

                @vandy2424 can you please show the contents of the config folder

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S V 2 Replies Last reply Feb 9, 2024, 11:42 PM Reply Quote 0
                • V Offline
                  vandy2424 @MMRIZE
                  last edited by Feb 9, 2024, 11:39 PM

                  @MMRIZE Hey MMRize,

                  Yeah I went ahead and setup the calendar module. The first thing I tried was running this module with the default config:

                      module: "calendar",
                      position: "top_left", // This can be any of the regions. Best results in left or right regions.
                      config: {
                        // The config property is optional.
                        // If no config is set, an example calendar is shown.
                        // See 'Configuration options' for more information.
                      },
                    },
                  

                  This returned loading… on the magic mirror. (I assumed based on the documentation it would at least show an example calendar).
                  fd558aa7-bad8-4a27-a1e1-9a3d9ffa8353-image.png
                  I then tried to add a very basic calendar in the config.js just to see if the result would change:

                  module: "calendar",
                        position: "top_left", // This can be any of the regions. Best results in left or right regions.
                        config: {
                          // The config property is optional.
                          // If no config is set, an example calendar is shown.
                          // See 'Configuration options' for more information.
                          calendars: [
                  					{
                  						symbol: "calendar-check",
                  						url: "https://www.calendarlabs.com/ical-calendar/ics/39/Canada_Holidays.ics"									
                            },
                          ],
                        },
                  

                  And i still got the same result (Loading…).

                  S 1 Reply Last reply Feb 10, 2024, 12:15 AM Reply Quote 0
                  • S Away
                    sdetweil @sdetweil
                    last edited by sdetweil Feb 10, 2024, 1:02 AM Feb 9, 2024, 11:42 PM

                    @vandy2424

                    when you start mm,do

                     npm start >somefile.txt 2>&1
                    

                    that will capture all the backend output

                    the front end said it started the modules listed in that config.js

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    V 1 Reply Last reply Feb 9, 2024, 11:48 PM Reply Quote 0
                    • V Offline
                      vandy2424 @sdetweil
                      last edited by Feb 9, 2024, 11:43 PM

                      @sdetweil yes here are the contents of the config folder:
                      8b42c6b3-7b67-44b9-a377-e73b8ec503bd-image.png

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        11/49
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy