Update dependencies in pyproject.toml and add meshadv configuration in radio-settings.json

This commit is contained in:
Lloyd
2025-10-27 21:45:11 +00:00
parent ab00bc929f
commit d95a0819b4
3 changed files with 15 additions and 10 deletions

View File

@@ -29,22 +29,14 @@ classifiers = [
keywords = ["mesh", "networking", "lora", "repeater", "daemon", "iot"]
#dependencies = [
# "pymc_core[hardware]>=1.0.1",
# "pyyaml>=6.0.0",
# "cherrypy>=18.0.0",
#]
dependencies = [
"pymc_core[hardware] @ git+https://github.com/rightup/pyMC_core.git@dev",
"pymc_core[hardware]>=1.0.2",
"pyyaml>=6.0.0",
"cherrypy>=18.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",

View File

@@ -39,6 +39,19 @@
"rxen_pin": 12,
"tx_power": 22,
"preamble_length": 17
},
"meshadv": {
"name": "MeshAdv",
"bus_id": 0,
"cs_id": 0,
"cs_pin": 21,
"reset_pin": 18,
"busy_pin": 20,
"irq_pin": 16,
"txen_pin": 13,
"rxen_pin": 12,
"tx_power": 22,
"preamble_length": 17
}
}
}

View File

@@ -99,7 +99,7 @@ echo ""
# Fetch config from API with 5 second timeout, fallback to local file
echo "Fetching radio settings from API..."
API_RESPONSE=$(curl -s --max-time 5 https://api.meshcore2.nz/api/v1/config 2>/dev/null)
API_RESPONSE=$(curl -s --max-time 5 https://api.meshcore.nz/api/v1/config 2>/dev/null)
if [ -z "$API_RESPONSE" ]; then
echo "Warning: Failed to fetch configuration from API (timeout or error)"