Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3873

Beginners • Getting environmental sensor values to regularly update on display on web page

$
0
0
Hello all.

I am looking to display a bunch of values that my RPi is obtaining from a bunch of transducers onto a webpage. I know there are a bunch of ways, including using PHP, needing a NGINX (or apache) web server, using AJAX style calls for pushing and pulling, using any number of third party plugins such as Node-Red. I am also considering having this information pushed via a messaging client/server, possible SNMP and standalone API calls too. There are likely to be many RPi sharing this data and so the final options are still a little fluid.

I have looked in TKinter to have a GUI on the RPi but I think I can do the same (and hopefully better) with being able to get updates from the RPI straight into the hosted page(s).

The data is being cached in a mariaDB in a separate container (there are other containers running on the RPi too) can could b retrieved from there but this breaks down if an interrupt is fired due to any particular event.

I appreciate the above might be a bit vague and lacking in details but my real question is:

Can anyone help point me in the direction of having live (interrupt driven) data being detected by the python script running on my RPi being pushed, via some form of API calls into an HTML page such that it is updated in real time and also so that I can click buttons in the web page to drive events, turn an LED on or off, on the RPi?

Thanks in advance and looking forward to the variety of proven solutions I know many of you will have used in the past on your own projects.

Statistics: Posted by JasonLJames — Mon Jun 24, 2024 10:36 am



Viewing all articles
Browse latest Browse all 3873

Trending Articles