change precompiled bins from tar to tar.gz. Add script to install mjpg streamer

This commit is contained in:
2025-06-24 23:09:28 +03:00
parent 874662fbd8
commit b4238ead85
8 changed files with 55 additions and 3 deletions

22
adds/setRuLanguage.py Normal file
View 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()