-
Notifications
You must be signed in to change notification settings - Fork 22
webpage_basic
Pragmatismo edited this page Mar 28, 2023
·
4 revisions
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.