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

    Snake-Darkangel

    @Snake-Darkangel

    0
    Reputation
    79
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Snake-Darkangel Unfollow Follow

    Latest posts made by Snake-Darkangel

    • RE: MMM-SunnyPortal Solar Module

      Hello @linuxtuxie ,

      Thank for your help. With the last update it’s working again.
      I probably miss an update -_-" (or forget to read other topic ^^)

      Regards,

      posted in Requests
      S
      Snake-Darkangel
    • RE: MMM-SunnyPortal Solar Module

      I’ve the same issue. I try the update in the code, adding the httpResponse.headers.location in the log => it’s “undefined”
      (and http result : 200.)

      With the new version of the module, I’ve this log:

      [2020-11-23 12:26:02.231] [LOG]    Login Failed, no redirect to any of the known url's /FixedPages/Dashboard.aspx, /Templates/UserProfile.aspx, /FixedPages/HoManEnergyRedesign.aspx
      [2020-11-23 12:26:02.233] [LOG]    You are being redirected to the yet unkown url: undefined
      

      In my browser I see on the homepage a pop-up for a new SMA application. Maybe that can generate another URL ? I tried to cancel it to see if it’s the problem but … nope :(

      Still looking for a solution.

      posted in Requests
      S
      Snake-Darkangel
    • RE: MMM-SunnyPortal Solar Module

      Thanks for this great module. I have a problem on the loading.

      mm-error.log

      [2020-06-22 17:30:35.669] [ERROR]  (node:2694) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      [2020-06-22 17:30:35.671] [ERROR]  (node:2694) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      [2020-06-22 17:30:36.721] [ERROR]  Unable to fetch login page:  Error: certificate has expired
          at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
          at TLSSocket.emit (events.js:200:13)
          at TLSSocket._finishInit (_tls_wrap.js:792:8)
          at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) {
        code: 'CERT_HAS_EXPIRED'
      }
      [2020-06-22 17:30:36.741] [ERROR]  Unable to fetch login page:  Error: certificate has expired
          at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
          at TLSSocket.emit (events.js:200:13)
          at TLSSocket._finishInit (_tls_wrap.js:792:8)
          at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) {
        code: 'CERT_HAS_EXPIRED'
      }
      [2020-06-22 17:30:36.747] [ERROR]  Unable to fetch login page:  Error: certificate has expired
          at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
          at TLSSocket.emit (events.js:200:13)
          at TLSSocket._finishInit (_tls_wrap.js:792:8)
          at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) {
        code: 'CERT_HAS_EXPIRED'
      }
      [2020-06-22 17:30:39.469] [ERROR]  TypeError: Cannot read property 'statusCode' of undefined
          at Request._callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_helper.js:101:46)
          at self.callback (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:185:22)
          at Request.emit (events.js:200:13)
          at Request.onRequestError (/home/pi/MagicMirror/modules/MMM-SunnyPortal/node_modules/request/request.js:877:8)
          at ClientRequest.emit (events.js:200:13)
          at TLSSocket.socketErrorListener (_http_client.js:402:9)
          at TLSSocket.emit (events.js:200:13)
          at emitErrorNT (internal/streams/destroy.js:91:8)
          at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
          at processTicksAndRejections (internal/process/task_queues.js:84:9)
      

      So if I read correctly, I see that Buffer() is depreciate.
      But It’s also write something strange with the certificate. In the mm-out.log I see more information:

      0|mm       | [2020-06-22 17:26:43.303] [LOG]    SocketNotification START_SUNNYPORTAL received for the first time...setting updateInterval to 900000ms
      0|mm       | [2020-06-22 17:26:44.113] [LOG]    Refreshed access token because it has expired. Expired at: 17:26:43 now is: 17:26:44
      0|mm       | [2020-06-22 17:26:44.147] [LOG]    Refreshed access token because it has expired. Expired at: 18:26:44 now is: 17:26:44
      

      What can I do to resolve this case?
      I already try to uninstall and re-install all, with npm install or ./install_deps.sh or the 3 npm install request / flow / chart but it doesn’t works.

      Any idea?

      Thanks for your help

      posted in Requests
      S
      Snake-Darkangel