Skip to content

Commit f961480

Browse files
committed
2 parents 7f6e6bf + 544e2e5 commit f961480

7 files changed

Lines changed: 152 additions & 9 deletions

File tree

.claude/settings.local.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@
2929
"Bash(rm:*)",
3030
"WebFetch(domain:raw.githubusercontent.com)",
3131
"mcp__zen__chat",
32-
"Bash(ffplay:*)"
32+
"Bash(ffplay:*)",
33+
"Bash(git add:*)",
34+
"Bash(git commit:*)",
35+
"Bash(git push:*)",
36+
"Bash(git pull:*)",
37+
"Bash(git reset:*)",
38+
"Bash(git stash:*)",
39+
"Bash(diff:*)",
40+
"Bash(git fetch:*)"
3341
],
3442
"deny": []
3543
},

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# Changelog
22

3+
# Release 1.1.0
4+
5+
**Release Date:** 2025-07-07
6+
7+
## ✨ Minor Release
8+
9+
This release includes new features and improvements.
10+
11+
### Core Changes (publish.py)
12+
13+
The main streaming script has been updated. New features or improvements have been added.
14+
15+
### Commits
16+
17+
- chore: Delete QUICK_START.md (029353b)
18+
- chore: Update setup infrastructure and add executable (bc5a76c)
19+
- chore: Update configuration files and documentation (8ad67f4)
20+
- feat(install): Enhance systemd service setup with better user guidance (7608c09)
21+
- feat(install): Improve handling of existing installation directories (c677cc2)
22+
- fix(install): Handle existing directory when cloning repository (f7f701f)
23+
- ``` fix(install): Clone repository to current directory instead of home folder (e23b181)
24+
- ``` fix(install): Improve handling when script is run outside repository (5579c2f)
25+
- fix(install): Refine script for repository cloning and robustness (c219499)
26+
- apt get repo (143606a)
27+
- ``` feat(install): Enhance setup script for repo handling and config location (1b7fca9)
28+
- . (197e2dd)
29+
- fixes (6a576de)
30+
- chore(docs): update TOC (d0baeba)
31+
- feat(install): Add non-interactive install mode (3846b16)
32+
- clarified limits fo installer (fca0947)
33+
- chore: Rename README_OLD.md to README.md (54e7d12)
34+
- Delete README.md (829d4bd)
35+
- chore(docs): update TOC (c98f047)
36+
- docs(installation): Reorganize and improve setup documentation (bffe834)
37+
- . (f29cb98)
38+
- clean up (afad17d)
39+
40+
### Installation
41+
42+
For installation instructions, please refer to the platform-specific guides:
43+
- [Raspberry Pi](./raspberry_pi/README.md)
44+
- [NVIDIA Jetson](./nvidia_jetson/README.md)
45+
- [Orange Pi](./orangepi/README.md)
46+
- [Ubuntu](./ubuntu/README.md)
47+
48+
49+
---
50+
351
# Release 1.0.6
452
553
**Release Date:** 2025-06-30

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.6
1+
1.1.0

install.sh

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,13 @@ setup_autostart() {
711711
echo
712712

713713
if [[ ! $REPLY =~ ^[Nn]$ ]]; then
714+
# Verify config file exists
715+
if [ ! -f "$CONFIG_FILE" ]; then
716+
print_color "$RED" "✗ Config file not found at: $CONFIG_FILE"
717+
print_color "$RED" " Cannot create service without configuration"
718+
return
719+
fi
720+
714721
# Create systemd service
715722
sudo tee /etc/systemd/system/$SERVICE_NAME.service > /dev/null << EOF
716723
[Unit]
@@ -736,18 +743,49 @@ EOF
736743
sudo systemctl daemon-reload
737744
sudo systemctl enable $SERVICE_NAME.service
738745

739-
print_color "$GREEN" "✓ Auto-start service created"
746+
print_color "$GREEN" "✓ Auto-start service created and enabled"
747+
748+
# Print service information
749+
echo
750+
print_color "$BLUE" "=== Service Information ==="
751+
print_color "$YELLOW" "Service name: $SERVICE_NAME"
752+
print_color "$YELLOW" "Service file: /etc/systemd/system/$SERVICE_NAME.service"
753+
print_color "$YELLOW" "Config file: $CONFIG_FILE"
754+
print_color "$YELLOW" "Working directory: $SCRIPT_DIR"
755+
echo
740756

741757
safe_read "Start the service now? (Y/n): " "-n 1 -r" "Y"
742758
echo
743759
if [[ ! $REPLY =~ ^[Nn]$ ]]; then
744-
sudo systemctl start $SERVICE_NAME.service
745-
print_color "$GREEN" "✓ Service started"
760+
if sudo systemctl start $SERVICE_NAME.service; then
761+
print_color "$GREEN" "✓ Service started successfully"
762+
763+
# Wait a moment for service to initialize
764+
sleep 2
765+
766+
# Check if service is running
767+
if systemctl is-active --quiet $SERVICE_NAME.service; then
768+
print_color "$GREEN" "✓ Service is running"
769+
else
770+
print_color "$RED" "⚠ Service may have failed to start"
771+
print_color "$YELLOW" "Check logs with: sudo journalctl -u $SERVICE_NAME -n 50"
772+
fi
773+
else
774+
print_color "$RED" "✗ Failed to start service"
775+
fi
746776
echo
747-
print_color "$YELLOW" "Check service status with: sudo systemctl status $SERVICE_NAME"
748-
print_color "$YELLOW" "View logs with: sudo journalctl -u $SERVICE_NAME -f"
749777
fi
750778

779+
# Print management commands
780+
print_color "$BLUE" "=== Service Management Commands ==="
781+
print_color "$YELLOW" "View status: sudo systemctl status $SERVICE_NAME"
782+
print_color "$YELLOW" "Stop service: sudo systemctl stop $SERVICE_NAME"
783+
print_color "$YELLOW" "Start service: sudo systemctl start $SERVICE_NAME"
784+
print_color "$YELLOW" "Restart: sudo systemctl restart $SERVICE_NAME"
785+
print_color "$YELLOW" "View logs: sudo journalctl -u $SERVICE_NAME -f"
786+
print_color "$YELLOW" "Disable boot: sudo systemctl disable $SERVICE_NAME"
787+
print_color "$YELLOW" "Enable boot: sudo systemctl enable $SERVICE_NAME"
788+
751789
# Update config to reflect auto-start
752790
if command -v jq &> /dev/null; then
753791
jq '.auto_start = true' "$CONFIG_FILE" > "$CONFIG_FILE.tmp" && mv "$CONFIG_FILE.tmp" "$CONFIG_FILE"
@@ -819,11 +857,36 @@ print_summary() {
819857

820858
if systemctl is-enabled $SERVICE_NAME &> /dev/null; then
821859
print_color "$GREEN" "✓ Auto-start: Enabled"
860+
861+
# Check if service is currently running
862+
if systemctl is-active --quiet $SERVICE_NAME.service; then
863+
print_color "$GREEN" "✓ Service Status: Running"
864+
else
865+
print_color "$YELLOW" "⚠ Service Status: Not running"
866+
fi
867+
fi
868+
869+
echo
870+
print_color "$YELLOW" "Configuration & Service Details:"
871+
echo "• Config file: $CONFIG_FILE"
872+
echo "• Working directory: $SCRIPT_DIR"
873+
echo "• Edit config: nano $CONFIG_FILE"
874+
875+
if systemctl is-enabled $SERVICE_NAME &> /dev/null; then
876+
echo "• Service name: $SERVICE_NAME"
877+
echo "• Service file: /etc/systemd/system/$SERVICE_NAME.service"
878+
echo
879+
print_color "$YELLOW" "Service Commands:"
880+
echo "• Check status: sudo systemctl status $SERVICE_NAME"
881+
echo "• View logs: sudo journalctl -u $SERVICE_NAME -f"
882+
echo "• Restart: sudo systemctl restart $SERVICE_NAME"
883+
echo "• Stop: sudo systemctl stop $SERVICE_NAME"
822884
fi
823885

824886
echo
825-
print_color "$YELLOW" "Next steps:"
826-
echo "1. Test your setup:"
887+
print_color "$YELLOW" "Test your setup:"
888+
echo "1. Manual test:"
889+
echo " cd $SCRIPT_DIR"
827890
echo " python3 publish.py --config $CONFIG_FILE"
828891
echo
829892
echo "2. View all options:"

raspberry_ninja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 7f6e6bfa4c768ba2b4ad5cd2a46f1d598c188106

test_config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"stream_id": "test_stream_123",
3+
"room": "test_room",
4+
"server": "wss://wss.vdo.ninja:443",
5+
"bitrate": 2000,
6+
"width": 1280,
7+
"height": 720,
8+
"framerate": 30,
9+
"video_source": "test",
10+
"custom_video_pipeline": "",
11+
"audio_enabled": false,
12+
"platform": "WSL",
13+
"auto_start": false
14+
}

test_config_minimal.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"stream_id": "config_test_123",
3+
"video_source": "test",
4+
"audio_enabled": false,
5+
"width": 640,
6+
"height": 480,
7+
"framerate": 15,
8+
"bitrate": 500
9+
}

0 commit comments

Comments
 (0)