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.

    turning Postman query into getJSONP()? (BTC node query)

    Scheduled Pinned Locked Moved Development
    6 Posts 2 Posters 1.7k Views 2 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.
    • FlatPepsiF Offline
      FlatPepsi
      last edited by

      I may be doing this all wrong, so feel free to point out where I’m off.

      I want to send an RCP call to my own BTC node, and I can do it in Postman. I’ve tried using a “getjsonp()” call, but I’m not even sure if that’s the right method.

      If there’s a good example module out there that already calls the BTC Code API, I’d love to play with it.

      Any advice?

      5e567b43-ff02-4234-8721-d6e90c399a3d-image.png

      S 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @FlatPepsi
        last edited by sdetweil

        @FlatPepsi so. this gets fun

        you can do this in two places in a MagicMirror module

        in the browser (modulename.js)
        see
        https://dmitripavlutin.com/fetch-with-json/

        or in the node_helper, using some library
        like this
        https://www.npmjs.com/package/get-json

        I don’t know what BTC is…
        if it’s Bitcoin, there is a library u could use from the node_helper,
        see
        https://www.npmjs.com/package/bitcoin

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @FlatPepsi
          last edited by sdetweil

          @FlatPepsi also you could do Google search for

          “github magicmirror bitcoin”

          I get 5 different modules

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          FlatPepsiF 1 Reply Last reply Reply Quote 0
          • FlatPepsiF Offline
            FlatPepsi @sdetweil
            last edited by

            @sdetweil Every search I’ve done only pulls up modules to display bitcoin price from 3rd parties. I’m looking for a way to pull data from my own bitcoin node & blockchain data - which I’ve yet to see anyone do with a module.

            If you run across one, I’d love to see it.

            S 2 Replies Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @FlatPepsi
              last edited by

              @FlatPepsi but if u have an API to your server, then build a module around it

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @FlatPepsi
                last edited by

                @FlatPepsi also, something like this might help

                https://github.com/amcolash/MMM-json-feed

                put in your url, display data

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • 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