Merge branch 'main' into dependabot/npm_and_yarn/gui/electron-log-5.0.0

This commit is contained in:
DJ2LS 2023-10-25 14:30:16 +02:00 committed by GitHub
commit d4cf192266
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 16 deletions

View file

@ -13,11 +13,7 @@
"files": [
"dist",
"dist-electron",
],
"extraResources": [
{
{
"from": "../modem/dist/modem/",
"to": "modem",
"filter": [
@ -25,22 +21,26 @@
"!**/.git"
]
}
],
],
"mac": {
"target": [
{
"target": "default",
"arch": ["arm64", "x64"]
"arch": ["universal"]
}
],
"notarize": "false",
"notarize": "false",
"icon": "build/icon.png",
"hardenedRuntime": true,
"entitlements": "build/entitlements.plist",
"entitlementsInherit": "build/entitlements.plist",
"gatekeeperAssess": false,
"mergeASARs": false,
"x64ArchFiles": "**/*",
"artifactName": "${productName}-Mac-${version}.${ext}"
},
"win": {

View file

@ -105,12 +105,12 @@ app.whenReady().then(() => {
switch (platform().toLowerCase()) {
case "darwin":
case "linux":
daemonPath = join(process.resourcesPath, "modem", "freedata-daemon");
daemonPath = join(__dirname, "modem", "freedata-daemon");
break;
case "win32":
case "win64":
daemonPath = join(process.resourcesPath, "modem", "freedata-daemon.exe");
daemonPath = join(__dirname, "modem", "freedata-daemon.exe");
break;
default:
console.log("Unhandled OS Platform: ", platform());

View file

@ -2,7 +2,7 @@
"name": "FreeDATA",
"description": "FreeDATA",
"private": true,
"version": "0.11.0-alpha.7",
"version": "0.11.0-alpha.9",
"main": "dist-electron/main/index.js",
"scripts": {
"start": "vite",
@ -32,6 +32,7 @@
"homepage": "https://freedata.app",
"dependencies": {
"@electron/notarize": "^2.1.0",
"@electron/universal": "^1.4.2",
"@popperjs/core": "^2.11.8",
"@vueuse/electron": "^10.4.1",
"blob-util": "^2.0.2",

View file

@ -81,6 +81,8 @@ function set_hamlib_rf_level() {
<option value="14093000">20m | USB | EU, US</option>
<option value="21093000">15m | USB | EU, US</option>
<option value="24908000">12m | USB | EU, US</option>
<option value="27245000">11m | USB | Ch 25</option>
<option value="27265000">11m | USB | Ch 26</option>
<option value="28093000">10m | USB | EU, US</option>
<option value="50308000">6m | USB | US</option>
<option value="50616000">6m | USB | EU, US</option>

View file

@ -174,7 +174,7 @@ class MeshRouter():
except Exception as e:
self.log.warning("[MESH] error adding data to routing table", e=e, router=new_router)
def broadcast_routing_table(self, interval=10):
def broadcast_routing_table(self, interval=600):
while True:
# always enable receiving for datac4 if broadcasting

View file

@ -1407,8 +1407,12 @@ def send_modem_state():
}
)
#print(output)
return json.dumps(output)
try:
json_out = json.dumps(output)
except Exception as e:
log.warning("[SCK] error while json conversion for modem state", e=e)
return json_out
def command_response(command, status):

View file

@ -134,7 +134,7 @@ class TCIParam:
@dataclass
class Modem:
version = "0.11.0-alpha.7"
version = "0.11.0-alpha.9"
host: str = "0.0.0.0"
port: int = 3000
SOCKET_TIMEOUT: int = 1 # seconds

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ ! -d "tnc" ]; then
if [ ! -d "modem" ]; then
echo "Error: Run this script from the main FreeDATA directory."
exit 1
fi