
I am working on an IOT application. For which I am using appwrite for server less features. Where I have to update information in a raspberry pi (python) in realtime as they change on the appwrite database. Here I have option to pool the appwrite database at a certain interval of time, but that may be request heavy. Is there any other alternative.

What about functions with events? https://appwrite.io/docs/events

Oh You want to get that changes in the raspi

As server SDK doesn't have realtime support, there is any chance you can use javascript? maybe just to get the data in realtime

you can set up a web server on your raspberry pi to handle the various events. then, set up an Appwrite Webhook to send the data to your raspberry pi.

The problem with javascript is that, I will have to set up the local web server and keep the browser always open. As even for javascript server side doesn't support realtime.

Will try this method, Thank you for the suggestion

Tried but how to send data to pi is the question.

Will you raspi have a static ip?

I was thinking that maybe you can create and endpoint in your raspi and call it from a cloud function triggered from a event 🤔

I don't think that it will have static IP.

I also thought of using ngrock. But it's free plan changes the domain name of our endpoint.

That would be a painless option, the solution at the moment will always have a secondary service to communicate with the IOT device

Ya I think the same way. Will create an secondary service, make it available through ngrock and will set an webhook to that link.

It would make things easier for you

Would be great to have a solution from appwrite side

Webhooks

😉
Recommended threads
- Request failedPlease check if your crede...
I was trying to moved my archived project to a self-host database . Appwrite said we can view and migrate data but my archived project is rendering "Please che...
- upgrading from 1.4.5 to 1.6.0 broke my s...
I managed to upgrade my self hosted instance from 1.4.5 to 1.6.0 and now when i try to log into the dashboard i get the error in the attached image. Also any ap...
- Is it possible to getRow with all relati...
With the new Opt-In relationship loading, is it possible to query getRow to get all attributes and relationships and possibly even cascading relationships? I tr...
