How to build image for Sharptools?

I want to build an app in Hubitat that renders an image which I can export to my Sharptools dashboard. Josh at Sharptools has put together a nifty node.js project that does something similar as a proof of concept:

Now I need to take that and implement it in Hubitat. Somehow I need to create the image, put it somewhere accessible via a URL, and give Sharptools the URL to pull the image from.

Not really sure how to do that... any direction would be appreciated!

In theory, you could create an App on Hubitat with OAuth enabled and have the app return the SVG as its content on one of the endpoints.

Out of curiosity though, why not just use the Glitch project since it's already built? :stuck_out_tongue:

Edit: I put together a technical proof of concept for you showing how you could render a dynamic SVG directly from Hubitat. Details are in the original thread over in the SharpTools community.

2 Likes