Skip to content

webpage_basic

Pragmatismo edited this page Mar 28, 2023 · 4 revisions

Basic webpage example

The basic webpage is a simple demonstration of how to send commands to the pi and receive responses.

It contains a text info box which sends a text string to the handler.py program which is imported into host_webpage.py when it's initiated, handler.py then uses this text string to decide which scripts to run locally on the pi then it returns the output, or image name which is then displayed on the webpage.

there are three usable commands in the basic example; info, log, and datawall

info:<name of info module>   

runs an info module

log:<name of log file>

displays last 5 entries of a log file

datawall:<name of datawall preset>+<name of datawall module> 

creates a datawall using the supplied preset and module, if no module is supplied it will display the first graph created by the datawall.

Screenshot from 2023-03-29 00-58-18

Clone this wiki locally