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.

    MMM-Strava stopped updating

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    19 Posts 5 Posters 1.5k Views 5 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.
    • L Offline
      levon
      last edited by

      Earlier this summer it was working great, but it stopped updating in the last few weeks for some reason. Anyone else have run into this?

      I see this message during start up, but being new to this, I’m not quite sure what to make of this

      [31.07.2021 14:37.41.518] [LOG]   Initializing new module helper ...
      [31.07.2021 14:37.41.519] [LOG]   Check MagicMirror version for node helper 'MMM-Strava' - Minimum version: 2.2.0 - Current version:
       2.16.0
      [31.07.2021 14:37.41.521] [LOG]   Version is ok!
      [31.07.2021 14:37.41.522] [LOG]   Module helper loaded: MMM-Strava
      

      On the one hand it seems to say that the version (of MM?) isn’t high enough, but then the next message says “Version is ok!” - this is a bit confusing. Plus I thought the current version of MM is 2.16, so how can version 2.2 be a requirement?

      Can anyone give me some suggestions as to how to fix this? I checked with the remote module and everything seems up-to-date. Thanks!

      mumblebajM 1 Reply Last reply Reply Quote 0
      • mumblebajM Offline
        mumblebaj Module Developer @levon
        last edited by

        @levon That message just says that the module will not work on an older version of the mirror. It is not an error. Are there any other errors in NPM? Can you check the developer window for any errors, Do a Ctrl + i which should open the developer window. MMM-Strava seems to be working fine for me.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

        L 1 Reply Last reply Reply Quote 1
        • L Offline
          levon @mumblebaj
          last edited by

          @mumblebaj I appreciate your message. These are the startup messages I get:

          pi@io:~/MagicMirror $ cat nohup.out 
          
          > magicmirror@2.16.0 start /home/pi/MagicMirror
          > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
          
          [10.08.2021 13:51.56.316] [LOG]   Starting MagicMirror: v2.16.0
          [10.08.2021 13:51.56.326] [LOG]   Loading config ...
          [10.08.2021 13:51.56.341] [LOG]   Loading module helpers ...
          [10.08.2021 13:51.56.345] [LOG]   No helper found for module: alert.
          [10.08.2021 13:51.56.714] [LOG]   Initializing new module helper ...
          [10.08.2021 13:51.56.716] [LOG]   Module helper loaded: updatenotification
          [10.08.2021 13:51.56.718] [LOG]   No helper found for module: clock.
          [10.08.2021 13:51.56.719] [LOG]   No helper found for module: weather.
          [10.08.2021 13:51.57.409] [LOG]   Initializing new module helper ...
          [10.08.2021 13:51.57.410] [LOG]   Module helper loaded: MMM-Pollen
          [10.08.2021 13:51.57.414] [LOG]   Initializing new module helper ...
          [10.08.2021 13:51.57.415] [LOG]   Module helper loaded: MMM-MoonPhase
          [10.08.2021 13:51.57.473] [LOG]   Initializing new module helper ...
          [10.08.2021 13:51.57.474] [LOG]   Module helper loaded: newsfeed
          [10.08.2021 13:51.58.561] [LOG]   Initializing new module helper ...
          [10.08.2021 13:51.58.563] [LOG]   Check MagicMirror version for node helper 'MMM-Strava' - Minimum version: 2.2.0 - Current version: 2.16.0
          [10.08.2021 13:51.58.565] [LOG]   Version is ok!
          [10.08.2021 13:51.58.567] [LOG]   Module helper loaded: MMM-Strava
          [10.08.2021 13:51.58.971] [LOG]   Initializing new module helper ...
          [10.08.2021 13:51.58.978] [LOG]   Module helper loaded: MMM-Remote-Control
          [10.08.2021 13:51.58.979] [LOG]   All module helpers loaded.
          [10.08.2021 13:51.59.145] [LOG]   Starting server on port 8080 ... 
          [10.08.2021 13:51.59.165] [LOG]   Server started ...
          [10.08.2021 13:51.59.166] [LOG]   Connecting socket for: updatenotification
          [10.08.2021 13:51.59.168] [LOG]   Connecting socket for: MMM-Pollen
          [10.08.2021 13:51.59.169] [LOG]   MMM-Pollen helper started ...
          [10.08.2021 13:51.59.170] [LOG]   Connecting socket for: MMM-MoonPhase
          [10.08.2021 13:51.59.171] [LOG]   Starting module helper: MMM-MoonPhase
          [10.08.2021 13:51.59.172] [LOG]   Connecting socket for: newsfeed
          [10.08.2021 13:51.59.173] [LOG]   Starting node helper for: newsfeed
          [10.08.2021 13:51.59.174] [LOG]   Connecting socket for: MMM-Strava
          [10.08.2021 13:51.59.176] [LOG]   Starting module helper: MMM-Strava
          [10.08.2021 13:51.59.177] [LOG]   Connecting socket for: MMM-Remote-Control
          [10.08.2021 13:51.59.179] [LOG]   Starting node helper for: MMM-Remote-Control
          [10.08.2021 13:51.59.192] [LOG]   Sockets connected & modules started ...
          [10.08.2021 13:51.59.651] [LOG]   Launching application.
          [10.08.2021 13:52.05.159] [LOG]   Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
          [10.08.2021 13:52.05.176] [LOG]   Create new newsfetcher for url: http://rss.cnn.com/rss/cnn_topstories.rss - Interval: 300000
          [10.08.2021 13:52.05.185] [LOG]   Create new newsfetcher for url: http://feeds.bbci.co.uk/news/world/rss.xml - Interval: 300000
          [10.08.2021 13:52.05.189] [LOG]   Create new newsfetcher for url: https://feeds.npr.org/1001/rss.xml - Interval: 300000
          [10.08.2021 13:52.05.195] [LOG]   Create new newsfetcher for url: http://feeds.washingtonpost.com/rss/world - Interval: 300000
          [10.08.2021 13:52.05.199] [LOG]   Create new newsfetcher for url: https://www.latimes.com/local/rss2.0.xml - Interval: 300000
          [10.08.2021 13:52.05.272] [INFO]  Checking git for module: MMM-Pollen
          [10.08.2021 13:52.05.383] [INFO]  Checking git for module: MMM-MoonPhase
          [10.08.2021 13:52.05.443] [INFO]  Checking git for module: MMM-Strava
          [10.08.2021 13:52.05.805] [INFO]  Checking git for module: MMM-Remote-Control
          [10.08.2021 13:52.05.854] [INFO]  Newsfeed-Fetcher: Broadcasting 23 items.
          [10.08.2021 13:52.07.468] [INFO]  Newsfeed-Fetcher: Broadcasting 15 items.
          [10.08.2021 13:52.07.656] [INFO]  Newsfeed-Fetcher: Broadcasting 25 items.
          [10.08.2021 13:52.07.870] [INFO]  Newsfeed-Fetcher: Broadcasting 9 items.
          [10.08.2021 13:52.08.590] [INFO]  Newsfeed-Fetcher: Broadcasting 100 items.
          [10.08.2021 13:52.08.644] [INFO]  Newsfeed-Fetcher: Broadcasting 51 items.
          

          pi@io:~/MagicMirror $
          In the developer window I get three warning and three erorrs:

          VM74 renderer_init.js:111 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure
            protocols. This exposes users of this app to unnecessary security risks.
            Consider loading the following resources over HTTPS or FTPS. 
          - http://0.0.0.0:8080/css/main.css
          - http://0.0.0.0:8080/fonts/roboto.css
          - http://0.0.0.0:8080/socket.io/socket.io.js
          - http://0.0.0.0:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
          - http://0.0.0.0:8080/js/defaults.js
          - http://0.0.0.0:8080/config/config.js
          - http://0.0.0.0:8080/vendor/vendor.js
          - http://0.0.0.0:8080/modules/default/defaultmodules.js
          - http://0.0.0.0:8080/js/logger.js
          - http://0.0.0.0:8080/translations/translations.js
          - http://0.0.0.0:8080/js/translator.js
          - http://0.0.0.0:8080/js/class.js
          - http://0.0.0.0:8080/js/module.js
          - http://0.0.0.0:8080/js/loader.js
          - http://0.0.0.0:8080/js/socketclient.js
          - http://0.0.0.0:8080/js/main.js
          - http://0.0.0.0:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
          - http://0.0.0.0:8080/translations/en.json
          - http://0.0.0.0:8080/translations/en.json
          - http://0.0.0.0:8080/modules/default/alert/alert.js
          - http://0.0.0.0:8080/modules/default/alert/notificationFx.js
          - http://0.0.0.0:8080/modules/default/alert/notificationFx.css
          - http://0.0.0.0:8080/vendor/css/font-awesome.css
          - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css
          - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css
            
          
          For more information and help, consult
          https://electronjs.org/docs/tutorial/security.
          This warning will not show up
          once the app is packaged.
          VM74 renderer_init.js:111 Electron Security Warning (enableRemoteModule) This renderer process has "enableRemoteModule" enabled
              and attempted to load remote content from 'http://0.0.0.0:8080/'. This
              exposes users of this app to unnecessary security risks.
          
          For more information and help, consult
          https://electronjs.org/docs/tutorial/security.
          This warning will not show up
          once the app is packaged.
          VM74 renderer_init.js:111 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
              Policy set or a policy with "unsafe-eval" enabled. This exposes users of
              this app to unnecessary security risks.
          
          For more information and help, consult
          https://electronjs.org/docs/tutorial/security.
          This warning will not show up
          once the app is packaged.
          loader.js:164
          

          and the errors are:

          Load stylesheet: css/custom.css
          (index):1 Refused to apply style from 'http://0.0.0.0:8080/css/custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
          
          loader.js:214 Error on loading stylesheet: css/custom.css
          stylesheet.onerror @ loader.js:214
          
          (index):1 Refused to apply style from 'http://0.0.0.0:8080/css/custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
          

          None of this seems related to the Strava module as I can see, but again, my knowledge with this software is limited.

          I have a small Python program that can access and display the output from the Strava API, so I know the correct information is up there and accessible/updated, it just stopped being reflected in the module/display here for some reason.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @levon
            last edited by sdetweil

            @levon css/custom.css is because the file doesn’t exist by default…

            my installer creates an empty file, because many users don’t know how to create a file on linux…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            L 1 Reply Last reply Reply Quote 1
            • L Offline
              levon @sdetweil
              last edited by

              @sdetweil said in MMM-Strava stopped updating:

              @levon css/custom.css is because he file doesn’t exist by default…

              my installer creates an empty file, because many users don’t know how to create a file on linux…

              Ah, super helpful, I did

              touch custom.css
              

              in the css directory and those errors went away. Thanks! Now if I can only figure out the rest :)

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @levon
                last edited by

                @levon it appears the module doesn’t log much…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                karsten13K 1 Reply Last reply Reply Quote 1
                • karsten13K Offline
                  karsten13 @sdetweil
                  last edited by

                  @sdetweil said in MMM-Strava stopped updating:

                  it appears the module doesn’t log much…

                  debug must be set in the config to get more logs …

                  L 1 Reply Last reply Reply Quote 1
                  • L Offline
                    levon @karsten13
                    last edited by levon

                    @karsten13 Thanks … so I added “DEBUG” to this list, that should do it right?

                    logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"], // Add "DEBUG" for even more logging
                    

                    Doesn’t seem to show much more than before though, just LOG and INFO as before … I’ll read up to see if there’s something else I need to do to trace that module in the meantime.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @levon
                      last edited by

                      @levon said in MMM-Strava stopped updating:

                      so I added “DEBUG” to this list, that should do it right?

                      no… that is different… you will get a lot of calendar module debug

                      for normal modules

                         config: {
                             debug: true, 
                         }
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      L 1 Reply Last reply Reply Quote 1
                      • L Offline
                        levon @sdetweil
                        last edited by

                        @sdetweil Thanks for the info. I now get these additional informative messages, but it all looks right, though it doesn’t update the information.

                        10.08.2021 16:20.18.805] [LOG]   MMM-Strava: "Getting data for module_8_MMM-Strava"
                        [10.08.2021 16:20.18.819] [LOG]   MMM-Strava: "Getting athlete activities for module_8_MMM-Strava after 2021-01-01"
                        [10.08.2021 16:20.18.845] [INFO]  Checking git for module: MMM-Pollen
                        [10.08.2021 16:20.18.970] [INFO]  Checking git for module: MMM-MoonPhase
                        [10.08.2021 16:20.19.063] [INFO]  Checking git for module: MMM-Strava
                        [10.08.2021 16:20.19.644] [INFO]  Checking git for module: MMM-Remote-Control
                        [10.08.2021 16:20.20.433] [INFO]  Newsfeed-Fetcher: Broadcasting 24 items.
                        [10.08.2021 16:20.20.850] [INFO]  Newsfeed-Fetcher: Broadcasting 15 items.
                        [10.08.2021 16:20.21.204] [INFO]  Newsfeed-Fetcher: Broadcasting 27 items.
                        [10.08.2021 16:20.21.750] [INFO]  Newsfeed-Fetcher: Broadcasting 9 items.
                        [10.08.2021 16:20.22.632] [LOG]   MMM-Strava: "Summarising athlete activities for module_8_MMM-Strava"
                        [10.08.2021 16:20.22.925] [INFO]  Newsfeed-Fetcher: Broadcasting 100 items.
                        [10.08.2021 16:20.23.000] [INFO]  Newsfeed-Fetcher: Broadcasting 52 items.
                        [10.08.2021 16:25.20.708] [INFO]  Newsfeed-Fetcher: Broadcasting 24 items.
                        [10.08.2021 16:25.21.232] [INFO]  Newsfeed-Fetcher: Broadcasting 15 items.
                        [10.08.2021 16:25.22.021] [INFO]  Newsfeed-Fetcher: Broadcasting 26 items.
                        [10.08.2021 16:25.22.197] [INFO]  Newsfeed-Fetcher: Broadcasting 9 items.
                        [10.08.2021 16:25.23.983] [INFO]  Newsfeed-Fetcher: Broadcasting 100 items.
                        [10.08.2021 16:25.24.292] [INFO]  Newsfeed-Fetcher: Broadcasting 52 items.
                        [10.08.2021 16:30.18.841] [LOG]   MMM-Strava: "Getting data for module_8_MMM-Strava"
                        [10.08.2021 16:30.18.844] [LOG]   MMM-Strava: "Getting athlete activities for module_8_MMM-Strava after 2021-01-01"
                        [10.08.2021 16:30.20.841] [INFO]  Newsfeed-Fetcher: Broadcasting 24 items.
                        [10.08.2021 16:30.21.431] [INFO]  Newsfeed-Fetcher: Broadcasting 15 items.
                        [10.08.2021 16:30.21.558] [LOG]   MMM-Strava: "Summarising athlete activities for module_8_MMM-Strava"
                        

                        For instance here’s the output of a Python program that uses the same API/credentials

                        [16:21 991] $ python strava_info.py
                        Expired token ..
                        Retriving information from year 2021 and onward.
                        
                        .Done.
                        API requests/pages: 2   records read: 235
                        Saving to file "strava_activities_final.csv"
                        
                        Since 2021
                        ------------------------------------------------
                        # of runs : 136    total distance:  653.18 miles
                        # of walks:  97    total distance:  232.63 miles
                        # of other:   2    total distance:    3.62 miles
                        ------------------------------------------------
                        Total #   : 235    total distance:  889.44 miles
                        [16:21 992] $
                        

                        The MM module has been stuck for a few weeks with these values

                        2765f6ec-0ccc-42ae-97ac-6ba7c6ad65d5-image.png

                        mumblebajM 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          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