o/~ Talking to myself in public o/~
On Sun, 03 Jan 2021 12:27:42 -0500, Dennis Lee Bieber
declaimed the following:
> Run a web-server on the R-Pi (nginx?). Create a web-app (flask/django,
>PHP?) which presents a form with 6 sections (one for each serial port, each
>section has a command input field, and a response output field).
> The most basic form would require a submit button, probably using
>"GET" and the web-app would extract the sent command(s), deliver them to
>the corresponding ports, collect return status (timeout?), then
>refresh/resend the form with now empty input fields but populated response
>fields.
> Better might be to have the form use AJAX to dynamically send
>commands as entered, and receive responses for each port as they become
>available, instead of undergoing full page refreshes.
>
This might almost be a built-in...
Node-Red is available for the R-Pi. There appear to be modules
available to create a web-page "dashboard". So... It should be possible to
define a "flow" for text inputs to a serial port and serial port to an
output (for any responses).
I'm not familiar with Node-Red, and for some reason was unable to get
said dashboard to display an input item -- I did have a text input node
connected to a serial port (send/receive port node -- there are also
send-only and receive-only nodes).
This would be simpler than a full-fledged web app and server
configuration, since the flows are defined by drag&drop nodes.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|