A
A
Andrey Kirdyashkin2022-04-08 09:59:48
Django
Andrey Kirdyashkin, 2022-04-08 09:59:48

How to pass arduino sensor data to django?

Good afternoon

There is a small box that reads data from sensors (Vibration, temperature, water level sensor, etc.) I added an
ethernet shield and I want it to automatically enter data into the django database.
There is a company in Django to which workers are attached (django users), they will be able to view graphs from the device (One company can have dozens of devices, they must send data to the site).
In general, I want to assign to each such box its own key (Unique character set), on which it can knock and send data to django. The company registers on the site, gains access to the personal account, then adds a box to itself using the key and receives data from it in its personal account.

Is it possible to implement this and how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2022-04-08
@leahch

Install an MQTT broker on the server side with django, for example https://mosquitto.org/
Collect information from sensors and send it to the broker on the arduino side.
Write a service for returning data from a broker (you can also use django).
Or directly take data from the broker via javascript + websocket - www.steves-internet-guide.com/using-javascript-mqt...
Well, something like this... Read
on - https://habr.com/ru /post/463669/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question