O
O
Oleg2017-05-14 07:20:26
PHP
Oleg, 2017-05-14 07:20:26

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

3 answer(s)
T
tester_toster, 2017-05-14
@tester_toster

Of course you can. How are pi and website related?

A
Andrew, 2017-05-14
@R0dger

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!

I
Ivan Koryukov, 2017-05-14
@MadridianFox

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 question

Ask a Question

731 491 924 answers to any question