add mesh monitor
This commit is contained in:
12
meshmonitor/Dockerfile
Normal file
12
meshmonitor/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
ARG BUILD_FROM
|
||||||
|
FROM ghcr.io/yeraze/meshmonitor:latest
|
||||||
|
|
||||||
|
# Home Assistant requirements
|
||||||
|
USER root
|
||||||
|
RUN apk add --no-cache jq
|
||||||
|
|
||||||
|
# Copy local files
|
||||||
|
COPY run.sh /
|
||||||
|
RUN chmod a+x /run.sh
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/run.sh" ]
|
||||||
27
meshmonitor/config.yaml
Normal file
27
meshmonitor/config.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: "MeshMonitor"
|
||||||
|
description: "Web tool for monitoring a Meshtastic Node Deployment over TCP/HTTP"
|
||||||
|
version: "3.9.5"
|
||||||
|
slug: "meshmonitor"
|
||||||
|
init: false
|
||||||
|
arch:
|
||||||
|
- aarch64
|
||||||
|
- amd64
|
||||||
|
- armv7
|
||||||
|
- armhf
|
||||||
|
startup: services
|
||||||
|
boot: auto
|
||||||
|
ingress: true
|
||||||
|
ingress_port: 3001
|
||||||
|
panel_icon: "mdi:mesh-network"
|
||||||
|
panel_title: "MeshMonitor"
|
||||||
|
map:
|
||||||
|
- "config:rw"
|
||||||
|
- "share:rw"
|
||||||
|
options:
|
||||||
|
meshtastic_node_ip: "192.168.1.xxx"
|
||||||
|
meshtastic_tcp_port: 4403
|
||||||
|
enable_virtual_node: false
|
||||||
|
schema:
|
||||||
|
meshtastic_node_ip: "str"
|
||||||
|
meshtastic_tcp_port: "int"
|
||||||
|
enable_virtual_node: "bool"
|
||||||
18
meshmonitor/run.sh
Normal file
18
meshmonitor/run.sh
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CONFIG_PATH=/data/options.json
|
||||||
|
|
||||||
|
# Extract options from Home Assistant config
|
||||||
|
export MESHTASTIC_NODE_IP=$(jq --raw-output '.meshtastic_node_ip' $CONFIG_PATH)
|
||||||
|
export MESHTASTIC_TCP_PORT=$(jq --raw-output '.meshtastic_tcp_port // 4403' $CONFIG_PATH)
|
||||||
|
export ENABLE_VIRTUAL_NODE=$(jq --raw-output '.enable_virtual_node // false' $CONFIG_PATH)
|
||||||
|
|
||||||
|
# Standard MeshMonitor variables
|
||||||
|
export PORT=3001
|
||||||
|
export NODE_ENV=production
|
||||||
|
|
||||||
|
echo "Starting MeshMonitor connecting to $MESHTASTIC_NODE_IP:$MESHTASTIC_TCP_PORT..."
|
||||||
|
|
||||||
|
# The application is located in /app in the official image
|
||||||
|
cd /app
|
||||||
|
exec node dist/server/server.js
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
name: "OverMesh"
|
|
||||||
slug: "overmesh"
|
|
||||||
description: "Web management UI for Meshtastic"
|
|
||||||
version: "1.0.0"
|
|
||||||
arch:
|
|
||||||
- aarch64
|
|
||||||
- amd64
|
|
||||||
image: "slofi/overmesh:{arch}"
|
|
||||||
ingress: true
|
|
||||||
panel_icon: "mdi:lan-connect"
|
|
||||||
devices: []
|
|
||||||
Reference in New Issue
Block a user