mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-18 21:07:52 +00:00
e8f392c3f1
* Move the oled script's PiCmds module to common, and rename it SysCmds. * Use sys_cmds.get_ip_and_host() in web UI code. * Move the auth_active() method to device_utils * Rename device_utils to web_utils. Make auth_active() method take the group as argument. * Migrate all pi_cmds methods to the SysCmds common class. * Display hostname and ip in Web UI. * Resolve or suppress pylint warnings. * Resolve a pylint warning. * Resolve or suppress pylint warnings. * Import libraries at the top level for readability. In my testing on a Pi3B+, this leads to ~1.5k more memory being used by the python3 process. * Change page title as requested by akuker. * Reenable the import-outside-toplevel pylint rule. * Resolve pylint warnings. * Fix error following refactoring. * Minor UI tweaks. * Cleanup. * Break out bridge config validation into a utility method. * Move the dropzonejs method into the web_utils package * Move get_logs method into SysCmds class. * Improve get logs UI. * Resolve pylint warning. * Standardize class instance name. |
||
---|---|---|
.. | ||
resources | ||
service-infra | ||
src | ||
tests | ||
README.md | ||
requirements.txt | ||
start.sh |
RaSCSI OLED Screen
Run as standalone script for development / troubleshooting
# Make a virtual env named venv
$ python3 -m venv venv
# Use that virtual env in this shell
$ source venv/bin/activate
# Install requirements
$ pip3 install -r requirements.txt
$ PYTHONPATH=$PWD/src:$(dirname $PWD)/common/src python3 src/rascsi_oled_monitor.py
Parameters
The script takes two positional parameters:
- '0' or '180' which decides the screen rotation
- '32' or '64' which decides the vertical screen resolution in pixels
Ex.
$ python3 rascsi_oled_monitor.py --rotation 180 --height 64
Note: Both parameters must be passed for the script to read them. Ordering is also important.
Run the start.sh script standalone
The start.sh script can also be run standalone, and will handle the venv creation/updating for you. It takes the same command line parameters in the following format:
$ ./start.sh --rotation=180 --height=64
Credits
type_writer.ttf
- Type Writer TrueType font by Mandy Smith
- Source: https://www.dafont.com/type-writer.font
- Distributed under BSD 3-Clause by permission from author (see LICENSE for full text)
splash_start_*.bmp, splash_stop_*.bmp
- Drawn by Daniel Markstedt
- Distributed under BSD 3-Clause by permission from author (see LICENSE for full text)