First time poster - please let me know if I do anything wrong!
I am sending sensor data from a raspberry pi via MQTT to nodeRED running on IBM's Bluemix - this works fine, I can send the data to any of the databases available on NodeRED. I have created a website using SquareSpace and can create code blocks where I can insert javascript code.
I am just looking for any way to get the data that I have in my nodeRED flow to be displayed on my website. Ideally, I hope to have live graphs using d3.js.
I have looked into Cloudant, but can not seem to get the URL method of querying data to work using the javascript http request explained in this tutorial: https://www.kirupa.com/html5/making_http_requests_js.htm. I would rather use dashDB since it provides much more scope for interesting queries, but, again, cannot seem to find a way to get the data into the javascript code.
This is the only mention that I found of someone trying to do a similar thing: https://answers.squarespace.com/questions/4648/how-do-i-connect-a-developer-site-to-a-database.html. Unfortunately, there is no "parse" database node in NodeRED, and since everything else I'm working on in this project will be 100x easier if my database is one of the Bluemix NodeRED ones, I don't think this will work for me.
I looked into Websockets, and MQTT. I thought perhaps I could extract data from the database in NodeRED, send it via MQTT to IBM's IoTF platform, then somehow request it again from the javascript code in my SquareSpace code block, but that seems a bit crazy.
I am tied to using SquareSpace, and as mentioned above, sort of need to use dashDB/Cloudant.
Many thanks for any advice.