From 08e21df31d46077e46112957688774b528eb4735 Mon Sep 17 00:00:00 2001 From: cpunt Date: Wed, 13 May 2026 15:42:03 +0000 Subject: [PATCH 1/2] Add bigbox-v1-cm-2 config --- src/configs/bigbox-v1-cm-2.json | 1460 +++++++++++++++++++++++++++++++ 1 file changed, 1460 insertions(+) create mode 100644 src/configs/bigbox-v1-cm-2.json diff --git a/src/configs/bigbox-v1-cm-2.json b/src/configs/bigbox-v1-cm-2.json new file mode 100644 index 000000000..e84843430 --- /dev/null +++ b/src/configs/bigbox-v1-cm-2.json @@ -0,0 +1,1460 @@ +{ + "hal": { + "managers": { + "modemcard": {}, + "uci": {}, + "ubus": {}, + "wlan": { + "radios": { + "radio0": { + "type": "mac80211", + "path": "axi/1000110000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0" + }, + "radio1": { + "type": "mac80211", + "path": "axi/1000110000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0+1" + } + } + }, + "uart": { + "serial_ports": [ + { + "name": "uart0", + "path": "/dev/ttyAMA0" + } + ] + } + } + }, + "net": { + "report_period": 60, + "default": { + "backhauls": { + "network": { + "ipv4": { + "proto": "dhcp" + }, + "firewall": { + "zone": "wan" + }, + "shaping": { + "egress": { + "qdisc": "fq_codel" + }, + "ingress": { + "qdisc": "fq_codel" + } + } + }, + "multiwan": { + "dynamic_weight": true, + "metric": 1 + } + } + }, + "dns": { + "upstream_servers": [ + "8.8.8.8", + "1.1.1.1" + ], + "default_cache_size": 1000 + }, + "dhcp": { + "domains": [ + { + "name": "unifi", + "ip": "$UNIFI_IP" + }, + { + "name": "config.bigbox.home", + "ip": "172.28.8.1" + } + ] + }, + "network": [ + { + "name": "Loopback", + "id": "loopback", + "type": "local", + "interfaces": [ + "lo" + ], + "ipv4": { + "proto": "static", + "ip_address": "127.0.0.1", + "netmask": "255.0.0.0" + }, + "dns_server": { + "local_server": true, + "default_hosts": [] + } + }, + { + "name": "Admin Network", + "id": "adm", + "type": "local", + "is_bridge": true, + "interfaces": [ + "eth0.8" + ], + "ipv4": { + "proto": "static", + "ip_address": "172.28.8.1", + "netmask": "255.255.255.0" + }, + "dhcp_server": { + "range_skip": "10", + "range_extent": "240", + "lease_time": "12h" + }, + "dns_server": { + "local_server": true, + "default_hosts": [ + "ads" + ] + }, + "firewall": { + "zone": "lan" + } + }, + { + "name": "Jangala Network", + "id": "jan", + "type": "local", + "is_bridge": true, + "interfaces": [ + "eth0.32" + ], + "ipv4": { + "proto": "static", + "ip_address": "172.28.32.1", + "netmask": "255.255.255.0" + }, + "dhcp_server": { + "range_skip": "10", + "range_extent": "240", + "lease_time": "12h" + }, + "dns_server": { + "local_server": true, + "default_hosts": [ + "ads", + "adult" + ] + }, + "firewall": { + "zone": "lan_rst" + }, + "shaping": { + "egress": { + "qdisc": "htb", + "filters": [ + { + "id": "per_ip_filter", + "kind": "u32", + "hash_key": "dest_ip", + "target_class_template": "per_ip_shapers" + } + ], + "class_template": { + "id": "per_ip_shapers", + "kind": "per_dest_ip", + "classes": [ + { + "qdisc": "htb", + "config": { + "rate": "2mbit", + "ceil": "8mbit", + "burst": "500k" + }, + "classes": [ + { + "qdisc": "fq_codel" + } + ] + } + ] + } + }, + "ingress": { + "qdisc": "htb", + "filters": [ + { + "id": "per_ip_filter", + "kind": "u32", + "hash_key": "src_ip", + "target_class_template": "per_ip_shapers" + } + ], + "class_template": { + "id": "per_ip_shapers", + "kind": "per_src_ip", + "classes": [ + { + "qdisc": "htb", + "config": { + "rate": "1.5mbit", + "ceil": "6mbit", + "burst": "225k" + }, + "classes": [ + { + "qdisc": "fq_codel" + } + ] + } + ] + } + } + } + }, + { + "name": "Internal Network", + "id": "int", + "type": "local", + "is_bridge": true, + "interfaces": [ + "eth0.100" + ], + "ipv4": { + "proto": "static", + "ip_address": "172.28.100.1", + "netmask": "255.255.255.0" + }, + "dhcp_server": { + "range_skip": "10", + "range_extent": "240", + "lease_time": "12h" + }, + "dns_server": {}, + "firewall": { + "zone": "lan" + }, + "shaping": { + "egress": { + "qdisc": "fq_codel" + }, + "ingress": { + "qdisc": "fq_codel" + } + } + }, + { + "name": "Primary Modem", + "id": "mdm0", + "type": "backhaul", + "modem_id": "primary", + "ipv4": { + "enabled": true, + "proto": "dhcp", + "peerdns": 0 + }, + "firewall": { + "zone": "wan" + }, + "shaping": { + "egress": { + "qdisc": "fq_codel" + }, + "ingress": { + "qdisc": "fq_codel" + } + }, + "multiwan": { + "dynamic_weight": true, + "metric": 1 + } + }, + { + "name": "Secondary Modem", + "id": "mdm1", + "type": "backhaul", + "modem_id": "secondary", + "ipv4": { + "enabled": true, + "proto": "dhcp" + }, + "firewall": { + "zone": "wan" + }, + "shaping": { + "egress": { + "qdisc": "fq_codel" + }, + "ingress": { + "qdisc": "fq_codel" + } + }, + "multiwan": { + "dynamic_weight": true, + "metric": 1 + } + }, + { + "name": "Wired Internet", + "id": "wan", + "type": "backhaul", + "interfaces": [ + "eth0.4" + ], + "ipv4": { + "enabled": true, + "proto": "dhcp", + "peerdns": 0 + }, + "firewall": { + "zone": "wan" + }, + "shaping": { + "egress": { + "qdisc": "fq_codel" + }, + "ingress": { + "qdisc": "fq_codel" + } + }, + "multiwan": { + "dynamic_weight": true, + "metric": 1 + } + } + ], + "multiwan": { + "globals": { + "mmx_mask": "0x3F00" + }, + "rules": {}, + "default_strategy": "dynamic_weight", + "health_checks": { + "down": 2, + "up": 1, + "initial_state": "offline", + "track_method": "ping", + "track_ip": [ + "1.1.1.1", + "8.8.8.8" + ], + "timeout": 2, + "interval": 1 + } + }, + "firewall": { + "defaults": { + "syn_flood": "1", + "input": "ACCEPT", + "forward": "REJECT", + "output": "ACCEPT", + "disable_ipv6": "1" + }, + "zones": [ + { + "description": "Local Networks", + "name": "lan", + "config": { + "name": "lan", + "input": "ACCEPT", + "output": "ACCEPT", + "forward": "ACCEPT" + }, + "forwarding": [ + { + "dest": "wan" + } + ] + }, + { + "description": "Local Networks - restricted", + "name": "lan_rst", + "config": { + "name": "lan_rst", + "input": "REJECT", + "output": "ACCEPT", + "forward": "REJECT" + }, + "forwarding": [ + { + "dest": "wan" + } + ] + }, + { + "description": "Internet", + "name": "wan", + "config": { + "name": "wan", + "input": "REJECT", + "output": "ACCEPT", + "forward": "REJECT", + "masq": 1, + "mtu_fix": 1 + } + } + ], + "rules": [ + { + "description": "Allows for DHCP renewal from upstream routers", + "config": { + "name": "Allow-DHCP-Renew", + "src": "wan", + "proto": "udp", + "dest_port": "68", + "target": "ACCEPT" + } + }, + { + "description": "Responds to pings from the Internet", + "config": { + "name": "Allow-Ping", + "src": "wan", + "proto": "icmp", + "icmp_type": "echo-request", + "target": "ACCEPT" + } + }, + { + "description": "", + "config": { + "name": "Allow-IGMP", + "src": "wan", + "proto": "igmp", + "target": "ACCEPT" + } + }, + { + "description": "", + "config": { + "name": "Allow-IPSec-ESP", + "src": "wan", + "dest": "lan", + "proto": "esp", + "target": "ACCEPT" + } + }, + { + "description": "", + "config": { + "name": "Allow-ISAKMP", + "src": "wan", + "dest": "lan", + "proto": "udp", + "dest_port": "500", + "target": "ACCEPT" + } + }, + { + "description": "", + "config": { + "name": "Allow-IPSec-ESP (RST)", + "src": "wan", + "dest": "lan_rst", + "proto": "esp", + "target": "ACCEPT" + } + }, + { + "name": "", + "config": { + "name": "Allow-ISAKMP (RST)", + "src": "wan", + "dest": "lan_rst", + "proto": "udp", + "dest_port": "500", + "target": "ACCEPT" + } + }, + { + "name": "", + "config": { + "name": "Allow DHCP request (RST)", + "src": "lan_rst", + "proto": "udp", + "src_port": "67-68", + "dest_port": "67-68", + "target": "ACCEPT" + } + }, + { + "name": "", + "config": { + "name": "Allow DNS queries (RST)", + "src": "lan_rst", + "proto": "tcp udp", + "dest_port": "53", + "target": "ACCEPT" + } + } + ] + }, + "static_route": [ + { + "target": "192.168.100.1", + "interface": "wan" + } + ] + }, + "wifi": { + "report_period": 10, + "radios": [ + { + "name": "radio0", + "band": "2g", + "channel": "auto", + "channels": [ + "1", + "6", + "11" + ], + "country": "GB", + "htmode": "HE20", + "txpower": "20", + "disabled": false + }, + { + "name": "radio1", + "band": "5g", + "channel": "36", + "country": "GB", + "htmode": "HE80", + "txpower": "23", + "disabled": false + } + ], + "ssids": [ + { + "mainflux_path": "config/mainflux", + "encryption": "psk2", + "mode": "access_point", + "radios": [ + "radio0", + "radio1" + ] + }, + { + "name": "Jangala", + "mode": "access_point", + "encryption": "none", + "network": "jan", + "radios": [ + "radio0", + "radio1" + ] + } + ], + "band_steering": { + "log_level": 2, + "globals": { + "rrm_mode": "PAT", + "kicking": { + "kick_mode": "both", + "bandwidth_threshold": 0, + "kicking_threshold": 15, + "evals_before_kick": 3 + }, + "stations": { + "use_station_count": false, + "max_station_diff": 1 + }, + "neighbor_reports": { + "dyn_report_num": 2, + "disassoc_report_len": 6 + }, + "legacy": { + "eval_probe_req": true, + "eval_assoc_req": false, + "eval_auth_req": false, + "min_probe_count": 2, + "deny_auth_reason": 1, + "deny_assoc_reason": 17 + } + }, + "timings": { + "updates": { + "client": 10, + "chan_util": 5, + "beacon_reports": 5, + "hostapd": 10, + "tcp_con": 10 + }, + "cleanup": { + "client": 15, + "probe": 40, + "ap": 460 + }, + "inactive_client_kickoff": 60 + }, + "networking": { + "method": "tcp+umdns", + "ip": "0.0.0.0", + "port": 1026, + "broadcast_port": 1025, + "enable_encryption": false + }, + "bands": { + "2g": { + "initial_score": 90, + "rssi_scoring": { + "center": "-69", + "weight": 2, + "good_threshold": "-66", + "good_reward": 12, + "bad_threshold": "-75", + "bad_penalty": "-15" + }, + "chan_util_scoring": { + "good_threshold": 140, + "good_reward": 5, + "bad_threshold": 170, + "bad_penalty": "-20" + }, + "support_bonuses": { + "vht": 5, + "ht": 5 + } + }, + "5g": { + "initial_score": 95, + "rssi_scoring": { + "center": "-64", + "weight": 4, + "good_threshold": "-62", + "good_reward": 10, + "bad_threshold": "-70", + "bad_penalty": "-28" + }, + "chan_util_scoring": { + "good_threshold": 140, + "good_reward": 5, + "bad_threshold": 170, + "bad_penalty": "-20" + }, + "support_bonuses": { + "vht": 2, + "ht": 2 + } + } + } + } + }, + "gsm": { + "modems": { + "default": { + "enabled": true + }, + "known": [ + { + "name": "primary", + "id_field": "device", + "device": "/sys/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb3/3-1", + "autoconnect": true + }, + { + "name": "secondary", + "id_field": "device", + "device": "/sys/devices/platform/axi/1000480000.usb/usb1/1-1", + "autoconnect": true + } + ] + } + }, + "bridge": { + "sources": [ + { + "name": "pico_mcu", + "type": "uart", + "capability_id": "uart0", + "options": { + "baudrate": 115200 + } + } + ], + "connections": [ + { + "source": "pico_mcu", + "topic": "power/#", + "direction": "in", + "local_prefix": "cm", + "remote_prefix": "mcu" + } + ] + }, + "metrics": { + "cloud_url": "$CLOUD_URL", + "publish_period": 60, + "templates": { + "network_stat": { + "protocol": "http", + "process": [ + { + "type": "DiffTrigger", + "diff_method": "percent", + "threshold": 5, + "initial_val": 0 + }, + { + "type": "DeltaValue" + } + ] + }, + "any_change": { + "protocol": "http", + "process": [ + { + "type": "DiffTrigger", + "diff_method": "any-change" + } + ] + }, + "percent_5": { + "protocol": "http", + "process": [ + { + "type": "DiffTrigger", + "diff_method": "percent", + "threshold": 5 + } + ] + }, + "absolute_10": { + "protocol": "http", + "process": [ + { + "type": "DiffTrigger", + "diff_method": "absolute", + "threshold": 10 + } + ] + } + }, + "collections": { + "net/adm/rx_bytes": { + "template": "network_stat" + }, + "net/adm/rx_packets": { + "template": "network_stat" + }, + "net/adm/rx_dropped": { + "template": "network_stat" + }, + "net/adm/rx_errors": { + "template": "network_stat" + }, + "net/adm/tx_bytes": { + "template": "network_stat" + }, + "net/adm/tx_packets": { + "template": "network_stat" + }, + "net/adm/tx_dropped": { + "template": "network_stat" + }, + "net/adm/tx_errors": { + "template": "network_stat" + }, + "net/jan/rx_bytes": { + "template": "network_stat" + }, + "net/jan/rx_packets": { + "template": "network_stat" + }, + "net/jan/rx_dropped": { + "template": "network_stat" + }, + "net/jan/rx_errors": { + "template": "network_stat" + }, + "net/jan/tx_bytes": { + "template": "network_stat" + }, + "net/jan/tx_packets": { + "template": "network_stat" + }, + "net/jan/tx_dropped": { + "template": "network_stat" + }, + "net/jan/tx_errors": { + "template": "network_stat" + }, + "net/mdm0/rx_bytes": { + "template": "network_stat" + }, + "net/mdm0/rx_packets": { + "template": "network_stat" + }, + "net/mdm0/rx_dropped": { + "template": "network_stat" + }, + "net/mdm0/rx_errors": { + "template": "network_stat" + }, + "net/mdm0/tx_bytes": { + "template": "network_stat" + }, + "net/mdm0/tx_packets": { + "template": "network_stat" + }, + "net/mdm0/tx_dropped": { + "template": "network_stat" + }, + "net/mdm0/tx_errors": { + "template": "network_stat" + }, + "net/mdm1/rx_bytes": { + "template": "network_stat" + }, + "net/mdm1/rx_packets": { + "template": "network_stat" + }, + "net/mdm1/rx_dropped": { + "template": "network_stat" + }, + "net/mdm1/rx_errors": { + "template": "network_stat" + }, + "net/mdm1/tx_bytes": { + "template": "network_stat" + }, + "net/mdm1/tx_packets": { + "template": "network_stat" + }, + "net/mdm1/tx_dropped": { + "template": "network_stat" + }, + "net/mdm1/tx_errors": { + "template": "network_stat" + }, + "net/wan/rx_bytes": { + "template": "network_stat" + }, + "net/wan/rx_packets": { + "template": "network_stat" + }, + "net/wan/rx_dropped": { + "template": "network_stat" + }, + "net/wan/rx_errors": { + "template": "network_stat" + }, + "net/wan/tx_bytes": { + "template": "network_stat" + }, + "net/wan/tx_packets": { + "template": "network_stat" + }, + "net/wan/tx_dropped": { + "template": "network_stat" + }, + "net/wan/tx_errors": { + "template": "network_stat" + }, + "net/mdm0/download_speed": { + "template": "any_change" + }, + "net/mdm1/download_speed": { + "template": "any_change" + }, + "net/wan/download_speed": { + "template": "any_change" + }, + "net/mdm0/status": { + "template": "any_change" + }, + "net/mdm1/status": { + "template": "any_change" + }, + "net/wan/status": { + "template": "any_change" + }, + "gsm/modem/primary/firmware": { + "template": "any_change", + "rename": [ + "modem", + "1", + "fw_version" + ] + }, + "gsm/modem/primary/band": { + "template": "any_change", + "rename": [ + "modem", + "1", + "band" + ] + }, + "gsm/modem/primary/access-tech": { + "template": "any_change", + "rename": [ + "modem", + "1", + "access_tech" + ] + }, + "gsm/modem/primary/access-family": { + "template": "any_change", + "rename": [ + "modem", + "1", + "access_fam" + ] + }, + "gsm/modem/primary/imei": { + "template": "any_change", + "rename": [ + "modem", + "1", + "imei" + ] + }, + "gsm/modem/primary/sim": { + "template": "any_change", + "rename": [ + "modem", + "1", + "sim" + ] + }, + "gsm/modem/primary/signal/rssi": { + "template": "percent_5", + "rename": [ + "modem", + "1", + "rssi" + ] + }, + "gsm/modem/primary/signal/rsrp": { + "template": "percent_5", + "rename": [ + "modem", + "1", + "rsrp" + ] + }, + "gsm/modem/primary/signal/rsrq": { + "template": "percent_5", + "rename": [ + "modem", + "1", + "rsrq" + ] + }, + "gsm/modem/primary/bars": { + "template": "any_change", + "rename": [ + "modem", + "1", + "bars" + ] + }, + "gsm/modem/primary/operator": { + "template": "any_change", + "rename": [ + "modem", + "1", + "operator" + ] + }, + "gsm/modem/primary/iccid": { + "template": "any_change", + "rename": [ + "modem", + "1", + "iccid" + ] + }, + "gsm/modem/primary/state": { + "template": "any_change", + "field": "curr_state", + "rename": [ + "modem", + "1", + "state" + ] + }, + "gsm/modem/primary/interface": { + "template": "any_change", + "rename": [ + "modem", + "1", + "wann_type" + ] + }, + "gsm/modem/primary/rx_bytes": { + "template": "network_stat", + "rename": [ + "modem", + "1", + "rx_bytes" + ] + }, + "gsm/modem/primary/tx_bytes": { + "template": "network_stat", + "rename": [ + "modem", + "1", + "tx_bytes" + ] + }, + "gsm/modem/secondary/firmware": { + "template": "any_change", + "rename": [ + "modem", + "2", + "fw_version" + ] + }, + "gsm/modem/secondary/band": { + "template": "any_change", + "rename": [ + "modem", + "2", + "band" + ] + }, + "gsm/modem/secondary/access-tech": { + "template": "any_change", + "rename": [ + "modem", + "2", + "access_tech" + ] + }, + "gsm/modem/secondary/access-family": { + "template": "any_change", + "rename": [ + "modem", + "2", + "access_fam" + ] + }, + "gsm/modem/secondary/imei": { + "template": "any_change", + "rename": [ + "modem", + "2", + "imei" + ] + }, + "gsm/modem/secondary/sim": { + "template": "any_change", + "rename": [ + "modem", + "2", + "sim" + ] + }, + "gsm/modem/secondary/signal/rssi": { + "template": "percent_5", + "rename": [ + "modem", + "2", + "rssi" + ] + }, + "gsm/modem/secondary/signal/rsrp": { + "template": "percent_5", + "rename": [ + "modem", + "2", + "rsrp" + ] + }, + "gsm/modem/secondary/signal/rsrq": { + "template": "percent_5", + "rename": [ + "modem", + "2", + "rsrq" + ] + }, + "gsm/modem/secondary/bars": { + "template": "any_change", + "rename": [ + "modem", + "2", + "bars" + ] + }, + "gsm/modem/secondary/operator": { + "template": "any_change", + "rename": [ + "modem", + "2", + "operator" + ] + }, + "gsm/modem/secondary/iccid": { + "template": "any_change", + "rename": [ + "modem", + "2", + "iccid" + ] + }, + "gsm/modem/secondary/state": { + "template": "any_change", + "field": "curr_state", + "rename": [ + "modem", + "2", + "state" + ] + }, + "gsm/modem/secondary/interface": { + "template": "any_change", + "rename": [ + "modem", + "2", + "wann_type" + ] + }, + "gsm/modem/secondary/rx_bytes": { + "template": "network_stat", + "rename": [ + "modem", + "2", + "rx_bytes" + ] + }, + "gsm/modem/secondary/tx_bytes": { + "template": "network_stat", + "rename": [ + "modem", + "2", + "tx_bytes" + ] + }, + "system/info/boot_time": { + "protocol": "http", + "rename": [ + "system", + "boot_time" + ], + "process": [ + { + "type": "DiffTrigger", + "diff_method": "absolute", + "threshold": 1000 + } + ] + }, + "system/info/firmware/version": { + "template": "any_change", + "rename": [ + "system", + "fw_id" + ] + }, + "system/info/hardware/revision": { + "template": "any_change", + "rename": [ + "system", + "hw_id" + ] + }, + "system/info/hardware/serial": { + "template": "any_change", + "rename": [ + "system", + "serial" + ] + }, + "system/info/hardware/board/revision": { + "template": "any_change", + "rename": [ + "system", + "board_revision" + ] + }, + "system/info/cpu/overall_utilisation": { + "template": "percent_5", + "rename": [ + "system", + "cpu_util" + ] + }, + "system/info/mem/util": { + "template": "percent_5", + "rename": [ + "system", + "mem_util" + ] + }, + "system/info/temperature": { + "protocol": "http", + "rename": [ + "system", + "temp" + ], + "process": [ + { + "type": "DiffTrigger", + "diff_method": "absolute", + "threshold": 2 + } + ] + }, + "system/info/power/under_voltage_detected": { + "template": "any_change", + "rename": [ + "system", + "power_undervoltage" + ] + }, + "system/info/power/arm_frequency_capped": { + "template": "any_change", + "rename": [ + "system", + "power_arm_frequency_capped" + ] + }, + "system/info/power/currently_throttled": { + "template": "any_change", + "rename": [ + "system", + "power_currently_throttled" + ] + }, + "system/info/power/under_voltage_occurred": { + "template": "any_change", + "rename": [ + "system", + "power_under_voltage_occurred" + ] + }, + "mcu/sys/mem/alloc": { + "protocol": "http", + "process": [ + { + "type": "TimeTrigger", + "duration": 60 + } + ] + }, + "mcu/power/temperature/internal": { + "protocol": "http", + "process": [ + { + "type": "DiffTrigger", + "diff_method": "absolute", + "threshold": 1 + } + ] + }, + "mcu/env/temperature/core": { + "template": "percent_5" + }, + "mcu/env/humidity/core": { + "template": "percent_5" + }, + "mcu/power/battery/internal/vbat": { + "template": "absolute_10" + }, + "mcu/power/battery/internal/ibat": { + "template": "absolute_10" + }, + "mcu/power/charger/internal/vin": { + "template": "absolute_10" + }, + "mcu/power/charger/internal/vsys": { + "template": "absolute_10" + }, + "mcu/power/charger/internal/iin": { + "template": "absolute_10" + }, + "mcu/power/charger/internal/system/charger_enabled": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/mppt_en_pin": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/equalize_req": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/drvcc_good": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/cell_count_error": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/ok_to_charge": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/no_rt": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/thermal_shutdown": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/vin_ovlo": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/vin_gt_vbat": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/intvcc_gt_4p3v": { + "template": "any_change" + }, + "mcu/power/charger/internal/system/intvcc_gt_2p8v": { + "template": "any_change" + }, + "mcu/power/charger/internal/status/iin_limited": { + "template": "any_change" + }, + "mcu/power/charger/internal/status/uvcl_active": { + "template": "any_change" + }, + "mcu/power/charger/internal/status/cc_phase": { + "template": "any_change" + }, + "mcu/power/charger/internal/status/cv_phase": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/bat_short": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/bat_missing": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/max_charge_time_fault": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/c_over_x_term": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/timer_term": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/ntc_pause": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/precharge": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/cccv": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/absorb": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/equalize": { + "template": "any_change" + }, + "mcu/power/charger/internal/state/suspended": { + "template": "any_change" + }, + "wifi/clients/+/sessions/+/session_start": { + "protocol": "http", + "process": [] + }, + "wifi/clients/+/sessions/+/session_end": { + "protocol": "http", + "process": [] + }, + "wifi/clients/+/sessions/+/hostname": { + "template": "any_change" + }, + "wifi/clients/+/sessions/+/rx_bytes": { + "template": "network_stat" + }, + "wifi/clients/+/sessions/+/tx_bytes": { + "template": "network_stat" + }, + "wifi/clients/+/sessions/+/signal": { + "template": "percent_5" + }, + "wifi/hp/+/+/+/power": { + "protocol": "http", + "process": [ + { + "type": "DiffTrigger", + "diff_method": "percent", + "threshold": 10, + "initial_val": 0 + } + ] + }, + "wifi/hp/+/+/+/channel": { + "template": "any_change" + }, + "wifi/hp/+/+/+/noise": { + "protocol": "http", + "process": [ + { + "type": "DiffTrigger", + "diff_method": "percent", + "threshold": 10, + "initial_val": 0 + } + ] + }, + "wifi/hp/+/+/+/rx_bytes": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/rx_packets": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/rx_dropped": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/rx_errors": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/tx_bytes": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/tx_packets": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/tx_dropped": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/tx_errors": { + "template": "network_stat" + }, + "wifi/hp/+/+/+/num_sta": { + "template": "percent_5" + }, + "wifi/num_sta": { + "template": "percent_5" + }, + "wifi/hp/+/num_sta": { + "template": "percent_5" + }, + "switch/system/mem": { + "template": "any_change" + }, + "switch/system/cpu": { + "template": "any_change" + }, + "switch/system/temp": { + "template": "any_change" + }, + "switch/system/power": { + "template": "any_change" + }, + "switch/system/curr_time": { + "template": "any_change" + } + } + }, + "system": { + "report_period": 60, + "usb3_enabled": true, + "alarms": [ + { + "time": "5:00", + "repeats": "daily", + "payload": { + "name": "daily reboot", + "type": "reboot" + } + } + ] + }, + "switch": { + "report_period": 10, + "host": "172.28.100.9", + "username": "$SWITCH_USERNAME", + "password": "$SWITCH_PASSWORD", + "type": "rtl8380m" + } +} From 2c6c6fc79ea7b1cc6fbdf0b5c53a6b32bd85b5c8 Mon Sep 17 00:00:00 2001 From: cpunt Date: Mon, 18 May 2026 09:33:57 +0000 Subject: [PATCH 2/2] Add devices --- src/devices/bigbox-v1-cm-2.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/devices/bigbox-v1-cm-2.lua diff --git a/src/devices/bigbox-v1-cm-2.lua b/src/devices/bigbox-v1-cm-2.lua new file mode 100644 index 000000000..0da12922b --- /dev/null +++ b/src/devices/bigbox-v1-cm-2.lua @@ -0,0 +1,18 @@ +-- Big Box CM 2 v1.0 device configuration + +return { + services = { + "log", + "config", + "hal", + "gsm", + "time", + "net", + "metrics", + "system", + "ui", + "wifi", + "mcu_bridge", + "switch" + } +}