Skip to content

Releases: erunks/internet-status-reporter

v1.3.0

13 Jan 21:24
fffd3f4
Compare
Choose a tag to compare

New Features:

#9 Reporting Modem Logs

While this currently only supports a Motorola MB7420, since that's all I have to test on at the moment, I do plan on trying to support more modem types through some sort of more easily customizable file structure. The current supported Modem is automatically setup for you. All the info that's needed is the following:

MODEM_ADDRESS = "http://192.168.100.1"
MODEM_PASSWORD = "admin"
MODEM_USERNAME = "admin"

And then you'll have to make sure that your database has the following table:

CREATE TABLE `modem_events` (
    `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    `description` varchar(255),
    `priority` int,
    `created_at` datetime DEFAULT NULL,
    `maintenance` tinyint(1) NOT NULL DEFAULT '0',
  );

Github Workflows

Included PRs: #10, #11, #12, #13, #14

While this doesn't necessarily benefit the end user, it does heavily benefit me as the dev. With the Github Workflows now implemented, I have a process in place to ensure that the code is up to snuff and nothing is horribly broken. While these processes don't catch everything, it does help smooth out the development process.

Other General Improvements:

Refactors!

Included PRs: #8, #9, #16

  • Broke out the logger into its own inheritable class: MailLogger, which made it a lot easier to include logging in other classes.
  • Created the DatabaseInteractor class, which inherited into a class, gives an easy way to work with the database and execute queries
  • Added extra logging in places, so when things do break, there's more information to figure out and solve the issues at hand

Error Reduction

Included PRs: #6, #7, #15, #17, #18

v1.2.0

24 Jun 17:32
9673f79
Compare
Choose a tag to compare

Testing Testing Testing

Testing support is finally here! After refactoring the whole application to break out chunks of code into more appropriate places, I'm excited to have testing in place.

v1.1.0

04 Jun 03:02
c3f93fd
Compare
Choose a tag to compare

New features:

#1 MailHandler

When the following ENV vars are setup, the application will send any ERROR or CRITICAL logs to the email(s) specified in the MAILTO ENV var

MAILTO = "receiver@gmail.com"
PI_EMAIL = "pi@gmail.com"
PI_EMAIL_PASSWORD = "pi_email_password"
SMTP_PORT = 587
SMTP_SERVER = "smtp.gmail.com"

#2 Latency logging

Now after an outtage occurs, the reporter will also record the latency statistics. The default sites for the latency tests are as follows:

default_latency_addresses = [
    'amazon.com',
    'cloudflare.com',
    'google.com',
    'youtube.com'
]

Extra sites or modifying the number runs can be set with the following ENV vars:

LATENCY_ADDRESSES = ""
LATENCY_RUNS = 10

v1.0.0

02 Jun 17:13
6d9e97c
Compare
Choose a tag to compare

First fully working app with proper README info