This works

This commit is contained in:
Kenwood 2022-04-07 11:12:51 -04:00
parent 213e9e1b0f
commit 12d87af633
5 changed files with 18 additions and 6 deletions

View File

@ -2,5 +2,7 @@
install: install:
sudo cp qsstv.service /etc/systemd/system/qsstv.service sudo cp qsstv.service /etc/systemd/system/qsstv.service
sudo cp robotstreamer.service /etc/systemd/system/robotstreamer.service
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable qsstv.service sudo systemctl enable qsstv.service
sudo systemctl enable robotstreamer.service

View File

@ -10,4 +10,3 @@ pillow = "*"
[dev-packages] [dev-packages]
[requires] [requires]
python_version = "3.10"

View File

@ -1,12 +1,10 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "a888620a07623b3edc9dfdd90eaa6568b5676e1b54ecabc03327dc1594607897" "sha256": "d38f5cc73695023ab5e5dc66a552a8d0bb9d3842a276ca547364ce1d6baaf5b9"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {},
"python_version": "3.10"
},
"sources": [ "sources": [
{ {
"name": "pypi", "name": "pypi",
@ -65,7 +63,6 @@
"sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
"sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
], ],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==1.16.0" "version": "==1.16.0"
}, },
"xlib": { "xlib": {

View File

@ -0,0 +1,9 @@
[Unit]
Description=Runs the robotstreamer stream
[Service]
ExecStart=sudo su -l houston -c "/opt/radio/lewis-crawler/Software/houston/stream.sh"
Restart=on-failure
[Install]
WantedBy=multi-user.target

5
Software/houston/stream.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
# Runs the robotstream
cd /opt/radio/lewis-crawler/Software/houston/ && pipenv run python RobotStreamer.py