Initial Arduino UNO Q template with LED Matrix functionality
- Complete MPU-MCU communication setup - LED Matrix text display with configurable parameters - Configuration management with personal data protection - Git template with .gitignore for sensitive data - Automated build and deployment scripts - SSH key management and service scripts
This commit is contained in:
15
scripts/logs.sh
Executable file
15
scripts/logs.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Logs script using config.json
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
PYTHONPATH="$PROJECT_ROOT/lib:$PYTHONPATH"
|
||||
|
||||
python3 -c "
|
||||
import sys
|
||||
sys.path.insert(0, '$PROJECT_ROOT/lib')
|
||||
from config_loader import config
|
||||
|
||||
arduino_config = config.get_arduino_config()
|
||||
print(f'ssh -i {arduino_config[\"ssh_key\"]} {arduino_config[\"user\"]}@{arduino_config[\"hostname\"]} \"journalctl --user -u arduino-unoq -f\"')
|
||||
" | bash
|
||||
15
scripts/restart.sh
Executable file
15
scripts/restart.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Restart script using config.json
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
PYTHONPATH="$PROJECT_ROOT/lib:$PYTHONPATH"
|
||||
|
||||
python3 -c "
|
||||
import sys
|
||||
sys.path.insert(0, '$PROJECT_ROOT/lib')
|
||||
from config_loader import config
|
||||
|
||||
arduino_config = config.get_arduino_config()
|
||||
print(f'ssh -i {arduino_config[\"ssh_key\"]} {arduino_config[\"user\"]}@{arduino_config[\"hostname\"]} \"systemctl --user restart arduino-unoq\"')
|
||||
" | bash
|
||||
15
scripts/status.sh
Executable file
15
scripts/status.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Status script using config.json
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
PYTHONPATH="$PROJECT_ROOT/lib:$PYTHONPATH"
|
||||
|
||||
python3 -c "
|
||||
import sys
|
||||
sys.path.insert(0, '$PROJECT_ROOT/lib')
|
||||
from config_loader import config
|
||||
|
||||
arduino_config = config.get_arduino_config()
|
||||
print(f'ssh -i {arduino_config[\"ssh_key\"]} {arduino_config[\"user\"]}@{arduino_config[\"hostname\"]} \"systemctl --user status arduino-unoq\"')
|
||||
" | bash
|
||||
15
scripts/stop.sh
Executable file
15
scripts/stop.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Stop script using config.json
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
PYTHONPATH="$PROJECT_ROOT/lib:$PYTHONPATH"
|
||||
|
||||
python3 -c "
|
||||
import sys
|
||||
sys.path.insert(0, '$PROJECT_ROOT/lib')
|
||||
from config_loader import config
|
||||
|
||||
arduino_config = config.get_arduino_config()
|
||||
print(f'ssh -i {arduino_config[\"ssh_key\"]} {arduino_config[\"user\"]}@{arduino_config[\"hostname\"]} \"systemctl --user stop arduino-unoq\"')
|
||||
" | bash
|
||||
Reference in New Issue
Block a user