How to create the web interface of a machine on a single-board Linux?

berger.h

Full Member level 1
Joined
Sep 30, 2016
Messages
96
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,392
I once designed an incubator, it's nothing complicated, the processor controls the temperature, humidity and keeps track of the time.
Now I'm thinking about a new version.
This should enable remote surveillance, including a camera, and monitoring/archiving of temperature/humidity trends, etc..
How to do it?
An MCU (something like an STM32) controls the incubator itself
After UART communication with a Linux host (something like Raspberry Pi).
Linux runs data storage (something like SQLite), the camera, and most importantly the backend and frontend of the web interface through which the whole thing is monitored and controlled,including sending messages via email, telegram, etc..
This brings us to the point: how and what to create that backend and frontend?
I can program in C, but I have a superficial understanding of web-related things.
I looked a little at Javascript, especially graph rendering.
It seems a bit like a bad joke to me, type checking, define variables with the var keyword, change, don't use var, just let and const, there are three ways to create a function, etc.
but while I'm at it, maybe it would be more efficient to create a backend in Javascript.
This means using node.js
The question is whether it is possible with some frameworks, Express, React,...
I just don't know.
I'm trying to find a similar project as an example, but I haven't found anything sensible.
Can you please advise?
 

Starting with just data these days ESP8266 or ESP32 trivial to set up servers for
sensor data. A very fast way to use Tuniot and/or nodered.



There are tons of tools out there, generally speaking look at revision activity to
see how tool is growing, accepted by users.

Regards, Dana.
 

Know ESP32 and I've already done something with it, but it's still like an MCU with little power and performance (RAM520kB vs 1-4GB Raspberrz Pi etc), which is also reflected in how and what can be done in the area of the web interface.
In measured data alone, the hatchery produces approximately 10 MB of data per cycle (21 days), that's why I want SQLite for data.
I would like it to be possible to expand web reading without knowledge of the MCU itself, that's why I'm thinking about node.js and in the meantime, some kind of generator or ESP32
 

Yes, I would not refer to the ESP32 as a high end MCU.

For simple data gathering and transmission over web seems fine in those application's, eg. IOT.
I have used in in multi sensor fire alarm system which send out status and SMS, but data
rates snail speed.

But it is dual core, which lends to some interesting possibilities. Of course ARM has some
really high performance multi core stuff, maybe someone can comment on web modules
as I am not aware of any.

Regards, Dana.
 

Cookies are required to use this site. You must accept them to continue using the site. Learn more…