-
Notifications
You must be signed in to change notification settings - Fork 22
datawall_pi
Datawalls can be constructed on the pi to be displayed on a screen, hosted locally or uploaded to an internet service such as email, reddit, etc.
Due to the limitations of the Raspberry Pi this can be a slow process, it's recommended to make datawalls via the GUI where possible. If it's taking a very long time check your log files aren't needlessly long and consider trimming if they are.
- Optimization of this script is on the TODO list
To construct a datawall locally you need to have a datawall module and the associated preset datawall preset. These can then be supplied to modular_datawall.py found in the ~/Pigrow/scripts/visualisations folder, note if writing your own modules and presets once they're working in the GUI ensure to copy them to the appropriate folders on the pi.
modular_datawall.py preset=selflog module=selflog
Will read the required information, load the logs, create the graphs and assemble a selflog datawall which will be saved to ~/Pigrow/graphs/datawall.png
The outpath can be set using
out=/home/<USERNAME>/Pigrow/graphs/selflog_dw.png
Note: Depending on the size of the logs, complexity of the datawall and version of the raspberry pi this may take some time to complete, if updating a display do not schedule datawall creation without checking each job will have time to complete before the next one tries to start - standard datawall modules are not intended as a live display.
The datawall script can be run without a datawall module supplied, in this case the graphs listed in the preset file will be created in the ~/Pigrow/graphs folder named datawall_graph_.png (this will be upgraded to improve graph naming soon)