Skip to content
Evangelos Baras edited this page May 28, 2023 · 2 revisions

Welcome to the TR069-Bot wiki!

Project description

Discord bot for remote management and statistics collection bot for discord, Technicolor modems and PfSense.

  • The idea behind the modemBot bot is "to have an eye" on the xDSL line itself, Get notified if the line goes down, gets synced back up, its Stats, Its errors while you are away from the modem . This is accomplished by having a 2nd way to get to the internet, for me it was a simple ADSL line used only as a simple phone line that happened to carry internet. A 4g cellular connection for example is suitable.
  • pfsenseBot's main duty is to inform about the wan IP of the firewall, Usefull when the DDNS fails.
  • Discord messaging works via NextCord

Feature set

ModemBot:

  • Display on discord message xDSL statistics
  • On request display graphs of these statistics (replaced with grafana)
  • Alert Network admin for any issues like (high error rates, Desync events etc)

Commands:

  • Interact with the modem to re sync the line
  • Interact with the modem to trigger a reboot

PfsenseBot:

  • Allert the Network admin for CGNAT
  • inform Network admin for the DHCP wan Address in case the DDNS fails.
  • interface status changes (if PPP had Dropped and returned, this will ping the admin)

InfluxDB feeder

This is a Script that utilizes modem.py to scrape date from the modem's interfaces (webInterface, SSH, Telnet, etc.) and saves them to a influxDB time-Series database for future use (display on grafana dashboard) ... Perhaps this could be replaced with a prometheus exporter