Flask app that manages your .sh script using screen sessions on Raspberry Pi.
Turn on/off .sh script using screen sessions with live console output.
It creates screen session with custom ID in the name with logging enabled, then it waits for screen session to create log file (located in folder where .sh script is). If log file is found, then it will be updating console output on html site. After pressing stop button, the script will be turned off with SIGINIT command and screen session will be removed.
- flask-socketio
- gevent-websocket
- eventlet
In simple_server_manager.py
change these variables to yours, you can also change default port.
SERVER_SCRIPT_PATH = "/your/script/path.sh"
SCREEN_LOG_PATH = "/your/log/screenlog.0"
SCREEN_NAME = "screenname"
DEFAULT_PORT = 5000