mirror of
https://github.com/pjandro/fbS1Scripts.git
synced 2026-03-27 12:10:35 +03:00
change precompiled bins from tar to tar.gz. Add script to install mjpg streamer
This commit is contained in:
@@ -15,6 +15,7 @@ while True:
|
||||
splitted = line.split(":")[1].split("->")
|
||||
key = base64.b64decode(splitted[0]).decode()
|
||||
value = base64.b64decode(splitted[1]).decode()
|
||||
print(key, value)
|
||||
if key.startswith("namespace_webcams"):
|
||||
webcams = True
|
||||
newValue = base64.b64encode(b"entries=1").decode()
|
||||
|
||||
22
adds/setRuLanguage.py
Normal file
22
adds/setRuLanguage.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import base64
|
||||
|
||||
file = open("moonraker.db", "r")
|
||||
|
||||
result = []
|
||||
while True:
|
||||
line = file.readline()
|
||||
if not line:
|
||||
break
|
||||
splitted = line.split(":")[1].split("->")
|
||||
key = base64.b64decode(splitted[0]).decode()
|
||||
value = base64.b64decode(splitted[1]).decode()
|
||||
if key.startswith("uiSettings"):
|
||||
newValue = base64.b64encode(value.replace('"locale": "zh-CN"', '"locale": "ru-RU"').encode()).decode()
|
||||
fullNewStr = f"+16,{len(newValue)}:{splitted[0]}->{newValue}\n"
|
||||
result.append(fullNewStr)
|
||||
else:
|
||||
result.append(line)
|
||||
file.close()
|
||||
file = open("moonraker_updated.db", "w")
|
||||
file.write("".join(result))
|
||||
file.close()
|
||||
5
adds/start_ffmpeg.sh
Normal file
5
adds/start_ffmpeg.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
sudo nginx -s reload
|
||||
sudo mkdir /tmp/timelapse
|
||||
|
||||
sudo /mjpgstreamer/mjpg_streamer -i "/mjpgstreamer/plugins/input_uvc/input_uvc.so -d /dev/video0 -r 1280x720 -f 5" -o "/mjpgstreamer/plugins/output_http/output_http.so -n -p 8080"
|
||||
Reference in New Issue
Block a user