Read the statement by Michael Teeuw here.
turning Postman query into getJSONP()? (BTC node query)
-
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?
-
@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-jsonI 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 -
@FlatPepsi also you could do Google search for
“github magicmirror bitcoin”
I get 5 different modules
-
@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.
-
@FlatPepsi but if u have an API to your server, then build a module around it
-
@FlatPepsi also, something like this might help
https://github.com/amcolash/MMM-json-feed
put in your url, display data