Skip to content

v1.3.0

Latest
Compare
Choose a tag to compare
@erunks erunks released this 13 Jan 21:24
fffd3f4

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