-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b12315
commit 3a592d7
Showing
15 changed files
with
289 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# DataFile | ||
data/games | ||
data/nosql | ||
data/teams.nosql | ||
data/games.nosql | ||
data/audioFiles | ||
|
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
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,6 +1,8 @@ | ||
{ | ||
"webserverPort": 12336, | ||
"useNoSql": true, | ||
"deviceId": "", | ||
"dataDirectory": "./data/", | ||
"mongoDbServerUrl": "", | ||
"mongoDbDatabaseName": "", | ||
"logDirectory": "logs", | ||
|
@@ -49,10 +51,6 @@ | |
|
||
} | ||
}, | ||
"radarDatabaseConfig":{ | ||
"deviceId": "", | ||
"dataFolder": "./data" | ||
}, | ||
"ffmpegOverlay":{ | ||
"input": "", | ||
"rtmpUrl": "", | ||
|
@@ -66,10 +64,6 @@ | |
"options": "fontfile=arial.ttf:fontsize=50:box=1:[email protected]:boxborderw=5:fontcolor=white:x=(w-text_w)/2:y=((h-text_h)/2)+((h-text_h)/2):textfile=overlay.txt:reload=1" | ||
} | ||
}, | ||
"youtubeEncoderClient":{ | ||
"webserverPort": 12336, | ||
"host": "" | ||
}, | ||
"appLogLevels":{ | ||
"radarMonitor": { | ||
"app":"info", | ||
|
@@ -93,6 +87,9 @@ | |
}, | ||
"platformDetect" :{ | ||
"app":"info" | ||
}, | ||
"ffplay" : { | ||
"app":"info" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
#!/bin/bash | ||
echo Add Node.JS 16 repo | ||
curl -sSL https://deb.nodesource.com/setup_16.x | sudo bash - | ||
echo Install Node.JS | ||
sudo apt install -y nodejs | ||
|
||
sudo mkdir /opt/de | ||
sudo chown $(id -u):$(id -g) /opt/de | ||
sudo useradd -m radar | ||
sudo groupadd radar | ||
sudo usermod -a -G radar $(id -u -n) | ||
newgrp radar | ||
mkdir /opt/de/radar | ||
mkdir /opt/de/appdata | ||
mkdir /opt/de/appdata/radar | ||
sudo chown radar:radar /opt/de/appdata/radar | ||
sudo chmod g+rw /opt/de/appdata/radar | ||
sudo chown radar:radar /opt/de/radar | ||
sudo chmod g+rw /opt/de/radar | ||
|
||
mkdir /opt/de/appdata/radar/config | ||
mkdir /opt/de/appdata/radar/data | ||
cd /opt/de/radar | ||
echo downloading latest version of code | ||
curl -s https://api.github.com/repos/Andrewiski/RadarGun/releases/latest | sed -n 's/.*"tarball_url": "\(.*\)",.*/\1/p' | xargs -n1 wget -O - -q | tar -xz --strip-components=1 | ||
npm install | ||
sudo cp /opt/de/radar/install/raspberrypi/service/radar.service /lib/systemd/system/ | ||
sudo systemctl daemon-reload | ||
sudo systemctl start radar | ||
sudo systemtl enable radar | ||
#echo install precompiled ffmpeg to fix fault segment error in built in version proboly not needed once raspberry 64bit lite is patched as I reported | ||
#sudo apt-get -y install libaom-dev libass-dev libfreetype6-dev libgnutls28-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget yasm zlib1g-dev libunistring-dev libdrm-dev libopus-dev libvpx-dev libwebp-dev libx264-dev libx265-dev libxml2-dev libfdk-aac-dev libmp3lame-dev | ||
#tar -xf /opt/de/radar/ffmpeg/raspberryPi/ffmpeg-pi-4.3.3.tar.gz | ||
#sudo cp -R ~/install/* /usr/local |
9 changes: 6 additions & 3 deletions
9
install/raspberyPiFfmpegBuild.sh → install/raspberrypi/raspberyPiFfmpegBuild.sh
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Radar Monitor | ||
Documentation=https://github.com/Andrewiski/RadarGun | ||
After=network.target | ||
|
||
[Service] | ||
Environment="CONFIGDIRECTORY=/opt/de/appdata/radar/config" "DATADIRECTORY=/opt/de/appdata/radar/data" | ||
WorkingDirectory=/opt/de/radar | ||
Type=exec | ||
User=radar | ||
ExecStart=/usr/bin/npm start | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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
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 +1,2 @@ | ||
PV: 55.8 MPH EV: 55.1 MPH | ||
Vicksburg: 13 P: #10 Jesse Smith PV: 00.0 MPH B: 0 S: 0 | ||
Allegan: 3 B: #13 Brady Dorscht EV: 00.0 MPH I: 6 bottom |
Oops, something went wrong.