• 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.

sendSocketNotification not working

Scheduled Pinned Locked Moved Development
3 Posts 1 Posters 1.8k Views 1 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
    mongo116 Module Developer
    last edited by Apr 5, 2018, 1:41 PM

    Hi,

    Does anybody know whether you can use sendSocketNotification when using nested Request functions?

    Basically, the way the api works, is that you have to login to get a sessionID and then I have another request using that sessionID to pull back JSON data. For some reason the second requests sendSocketNotification is working fine, but the first one isn’t.

    The first request is definitely working, as the sessionID is being pulled from the response.

    I’m trying to do this so I can update the MMM-Hive module as British Gas made some changes and the module no longer works.

    1 Reply Last reply Reply Quote 0
    • M Offline
      mongo116 Module Developer
      last edited by Apr 5, 2018, 1:48 PM

      If you look at the MMM-Hive code, what I am trying to do, is add a sendSocketNotification to the 2nd request in the node_helper.js. The second and third requests in node_helper.js are the ‘nested’ ones.

      1 Reply Last reply Reply Quote 0
      • M Offline
        mongo116 Module Developer
        last edited by Apr 5, 2018, 3:23 PM

        Got this sorted - found there is another url that holds the information so added another request. The request I was having issues with was a post request, whereas the one I am using is a get.

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