Glide local API call

Can Glide call local API, ie: 192.168.0.1/api/v1? I need this because the IOT device I’m using is offline, aka using local IP address

No, Glide is a web app… it won’t work offline… plus it has a sandboxed document, so there is no access anyway unless you create an external host.

If the device running your Glide App is on the same local subnet as your IoT device, then I would expect it would be able to access it. Call API won’t work, as that’s executed server side, but at the very least you could probably use JavaScript to query the API endpoint.

1 Like

You can do that?

yes I can access it by going to, for example http://192.168.10.11/cm?turn=ON or http://192.168.10.11/cm?turn=OFF, but I need to call those API in order to get the response (get or update status, scan wifi, etc)

as for the javascript query, what tier do I need to upgrade to? pro or business?

JS is on all plans… I’m not sure if you can do what Darren said… but I never tried… JS and document are sandboxed… @Darren_Murphy did you make that work?