Answer the question
In order to leave comments, you need to log in
How to display information about Raspberry pi on the site?
It is necessary to display on the site information about raspberries of the type
_________________________
Temperature: 40.9 °C
_____________________________
Is it possible to implement at all?
Answer the question
In order to leave comments, you need to log in
If on one computer they took it and showed it, if on different ones .. where raspberries we put a server that receives requests .. we write a request handler and return data .. we send, take, show.
something like this!
Raspberry needs to send telemetry to the site.
Those. the site has a special endpoint that, well, let's say, accepts json/xml/etc... and writes values from it to the database.
You just need to periodically make an http request, and transfer the temperature received from the raspberry there.
This can be done as the raspberry itself, if there is an Internet connection from it, or you can keep the raspberry hooked up to the PC, and let the PC already receive data from the raspberry and make the same request to the site.
Well, on the site we already read the last entry from the database and display it on the page. If it is interesting to store all the records that came from the raspberry, then you can also build graphs)
Well, yes, it would be nice to screw at least some kind of authentication, otherwise any Vasya Pupkin will be able to transfer fake data to your endpoint =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question