Files
meshing-around/etc
2026-03-22 14:07:03 -07:00
..
2026-02-26 20:21:31 -08:00
2024-10-04 13:51:56 -07:00
2025-11-02 20:27:15 -08:00
2025-10-28 17:21:10 -07:00
2024-12-05 17:18:48 -08:00
2025-10-28 17:31:56 -07:00
2025-11-12 17:16:39 -08:00
2026-03-22 14:07:03 -07:00
2025-10-25 17:28:16 -07:00
2025-10-29 12:19:09 -07:00
""
2025-11-06 21:35:32 -08:00
""
2025-11-06 21:35:32 -08:00
""
2025-11-06 21:35:32 -08:00
2024-07-31 19:57:40 -07:00
2025-11-12 11:50:40 -08:00
2025-06-07 21:05:49 -07:00
2025-06-07 21:05:49 -07:00
2024-10-04 21:03:58 -07:00
2025-10-05 20:26:48 -07:00
2025-11-06 20:41:50 -08:00
2025-10-30 18:50:54 -07:00
2025-11-07 12:44:56 -08:00

etc Directory

This folder contains supporting files and resources for the Mesh Bot project. Typical contents include:

  • Images: Visual assets used in documentation (e.g., pong-bot.jpg).
  • Custom Scripts: Example or utility scripts for advanced configuration (e.g., custom_scheduler.py for scheduled tasks).
  • tmp: Temp files for install

db_admin.py

Purpose:
db_admin.py is a simple administrative tool for viewing the contents of the Mesh Bots data and high score databases. It loads and prints out messages, direct messages, email/SMS records, and game high score tables stored in the /data directory.

Usage:
Run this script from the command line to display the current contents of the bots databases. This is useful for debugging, verifying data integrity, or reviewing stored messages and game scores.

python etc/db_admin.py

What it does:

  • Attempts to load various .pkl and .pickle files from the data directory.
  • Prints out the contents of BBS messages, direct messages, email and SMS databases.
  • Displays high scores for supported games (Lemonade Stand, DopeWars, BlackJack, Video Poker, Mastermind, GolfSim).
  • If a file is missing, it will print a message indicating so.

Note:
This tool is for administrative and debugging purposes only. It does not modify any data.

eas_alert_parser.py

Purpose:
eas_alert_parser.py is a utility script for processing and cleaning up output from multimon-ng to extract and convert Emergency Alert System (EAS) messages for further use, such as with EAS2Text.

Usage:
This script is intended to be used with piped input, typically from multimon-ng decoding SAME/EAS messages. It filters and processes EAS lines, converts them to readable text using EAS2Text, and writes the results to alert.txt.

Example usage:

multimon-ng -a EAS ... | python etc/eas_alert_parser.py

What it does:

  • Reads input line-by-line (supports piped or redirected input).
  • Filters for lines starting with EAS: or EAS (part):.
  • Avoids duplicate messages and only processes new alerts.
  • Uses the EAS2Text library to convert EAS codes to human-readable messages.
  • Writes completed alerts to alert.txt for further processing or notification.

Note:
This script is intended for experimental or hobbyist use and may require customization for your specific workflow.

simulator.py

Purpose:
simulator.py is a development and testing tool that simulates the behavior of the Mesh Bot in a controlled environment. It allows you to prototype and test handler functions without needing real hardware or a live mesh network.

Usage:
Run this script from the command line to interactively test handler functions. You can input messages as if you were a mesh node, and see how your handler responds.

python etc/simulator.py

What it does:

  • Simulates node IDs, device IDs, and random GPS locations.
  • Lets you specify which handler function to test (by setting projectName).
  • Prompts for user input, passes it to the handler, and displays the response.
  • Logs simulated message sending and handler output for review.
  • Useful for rapid prototyping and debugging new features or message handlers.

Note:
Edit the projectName variable to match the handler function you want to test. You can expand this script to test additional handlers or scenarios as needed.

yolo_vision.py

Purpose:
yolo_vision.py provides real-time object detection and movement tracking using a Raspberry Pi camera and YOLOv5. It is designed for integration with the Mesh Bot project, outputting alerts to both the console and an optional alert.txt file for further use (such as with Meshtastic).

Features:

  • Ignores specified object classes (e.g., "bed", "chair") to reduce false positives.
  • Configurable detection confidence threshold and movement sensitivity.
  • Tracks object movement direction (left, right, stationary).
  • Fuse counter: only alerts after an object is detected for several consecutive frames.
  • Optionally writes the latest alert (without timestamp) to a specified file, overwriting previous alerts.

Configuration:

  • LOW_RES_MODE: Use low or high camera resolution for CPU savings.
  • IGNORE_CLASSES: List of object classes to ignore.
  • CONFIDENCE_THRESHOLD: Minimum confidence for reporting detections.
  • MOVEMENT_THRESHOLD: Minimum pixel movement to consider as "moving".
  • ALERT_FUSE_COUNT: Number of consecutive detections before alerting.
  • ALERT_FILE_PATH: Path to alert file (set to None to disable file output).

Usage:
Run this script to monitor the camera feed and generate alerts for detected and moving objects. Alerts are printed to the console and, if configured, written to alert.txt for integration with other systems.


icad_tone.py

Purpose:
icad_tone.py is a utility script for detecting fire and EMS radio tones using the icad_tone_detection library. It analyzes audio from a live stream, soundcard, or WAV file, identifies various tone types (such as two-tone, long tone, hi/low, pulsed, MDC, and DTMF), and writes detected alerts to alert.txt for integration with Mesh Bot or Meshtastic.

Usage:
Run the script from the command line, specifying a WAV file for offline analysis or configuring it to listen to a stream or soundcard for real-time monitoring.

python etc/icad_tone.py --wav path/to/file.wav

Or, for live monitoring (after setting HTTP_STREAM_URL in the script):

python etc/icad_tone.py

What it does:

  • Loads audio from a stream, soundcard, or WAV file.
  • Uses icad_tone_detection to analyze audio for tone patterns.
  • Prints raw detection results and summaries to the console.
  • Writes a summary of detected tones to alert.txt (overwriting each time).
  • Handles errors and missing dependencies gracefully.

Configuration:

  • ALERT_FILE_PATH: Path to the alert output file (default: alert.txt).
  • AUDIO_SOURCE: Set to "http" for streaming or "soundcard" for local audio input.
  • HTTP_STREAM_URL: URL of the audio stream (required if using HTTP source).
  • SAMPLE_RATE, INPUT_CHANNELS, CHUNK_DURATION: Audio processing parameters.

Note:

  • Requires installation of dependencies (icad_tone_detection)
  • Set HTTP_STREAM_URL to a valid stream if using HTTP mode.
  • Intended for experimental or hobbyist use; may require customization for your workflow.