Releases: erunks/internet-status-reporter
v1.3.0
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
v1.1.0
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