-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get SETUP docs finished, should be ready
- Loading branch information
Showing
5 changed files
with
95 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
How to setup the SimpleCast receiver script. | ||
|
||
1. Install requirements, the APT coturn package, PIP3 requirements | ||
2. Setup avahi to respond to simplecast.local | ||
3. Setup systemd service | ||
4. Install browser client | ||
5. Flesh this out when sigint and systemd service is finished | ||
1. Clone the GIT repo from github to your user running X's home directory (On Raspi this would be /home/pi) | ||
-- git clone https://github.com/R0NAM1/SimpleCast.git | ||
|
||
2. cd into SimpleCast, Install requirements | ||
-- For debian packages, install the coturn, avahi and python3 package (sudo apt install coturn avahi-daemon python3) | ||
-- Also install chrome for the Selenium driver to work (wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb), (sudo apt install ./google-chrome-stable_current_amd64.deb) | ||
|
||
-- For Python Libraries, make a virtual environment (mkdir venv && python3 -m venv venv), | ||
activate it (source venv/bin/activate), and install from requirements.txt (pip3 install -r requirements.txt). | ||
Exit the venv with 'deactivate'. | ||
|
||
3. Setup receiver/simpleCastConfig.json however you like, make sure to assign either a static IP or a static leased one! | ||
|
||
4. Setup avahi to respond to simplecast.local | ||
-- Copy the provided simplecast-mdns.service to /etc/avahi/services/ | ||
|
||
5. Setup the systemd service | ||
-- Open simplecast.service | ||
-- Adapt WorkingDirectory with the git repo location | ||
-- Adapt User with the user running X, on a Raspi this would be pi | ||
-- Adapt ExecStart with the directory that leads to the repo | ||
-- Copy the file to /etc/systemd/system/ | ||
-- Run 'sudo systemctl daemon-reload', 'sudo systemctl enable simplecast.service' and 'sudo systemctl start simplecast.service' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
aiohttp==3.9.3 | ||
aiohttp-cors==0.7.0 | ||
aioice==0.9.0 | ||
aiortc==1.7.0 | ||
aiosignal==1.3.1 | ||
attrs==23.2.0 | ||
av==11.0.0 | ||
certifi==2024.2.2 | ||
cffi==1.16.0 | ||
cryptography==42.0.5 | ||
dnspython==2.6.1 | ||
frozenlist==1.4.1 | ||
google-crc32c==1.5.0 | ||
h11==0.14.0 | ||
idna==3.6 | ||
ifaddr==0.2.0 | ||
mss==9.0.1 | ||
multidict==6.0.5 | ||
numpy==1.26.4 | ||
outcome==1.3.0.post0 | ||
pillow==10.3.0 | ||
PyAudio==0.2.14 | ||
pycparser==2.21 | ||
pyee==11.1.0 | ||
pygame==2.5.2 | ||
pylibsrtp==0.10.0 | ||
pyOpenSSL==24.0.0 | ||
PySocks==1.7.1 | ||
screeninfo==0.8.1 | ||
selenium==4.19.0 | ||
sniffio==1.3.1 | ||
sortedcontainers==2.4.0 | ||
trio==0.25.0 | ||
trio-websocket==0.11.1 | ||
typing_extensions==4.10.0 | ||
urllib3==2.2.1 | ||
wsproto==1.2.0 | ||
yarl==1.9.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" standalone='no'?> | ||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | ||
<service-group> | ||
<name replace-wildcards="yes">Simplecast</name> | ||
<service> | ||
<type>_http._tcp</type> | ||
<port>4825</port> | ||
</service> | ||
</service-group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=SimpleCast Service | ||
After=network.target | ||
StartLimitIntervalSec=0 | ||
|
||
[Service] | ||
Environment="DISPLAY=:0" | ||
Type=simple | ||
Restart=always | ||
RestartSec=1 | ||
WorkingDirectory=/home/pi/SimpleCast | ||
User=pi | ||
ExecStart=/home/pi/SimpleCast/venv/bin/python3 /home/pi/SimpleCast/receiver/receiverServer.py | ||
KillSignal=SIGKILL | ||
|
||
[Install] | ||
WantedBy=multi-user.target |