Skip to content

Clashkid155/UsageMonitor

Repository files navigation

Usage Monitor

Track and monitor Wi-Fi usage throughout the day, logging data usage for each network accessed.

Requirement:

  • Network Manager
  • Dbus
  • Linux

For this program to work, you need to have Network Manager and Dbus installed.

Installation

This repo contains the service (backend) with API endpoints

Build

Building requires Go

First step, clone the repo

git clone https://github.com/Clashkid155/UsageMonitor.git
cd UsageMonitor
go build -o usageMonitor
./usageMonitor   #To run the file

Autostart

I prefer using systemd to autostart, so here's an example systemd service file.

[Unit]
Description=Wifi Usage Monitor
After= NetworkManager.service
Requires=NetworkManager.service

[Service]
Type=exec
Restart=on-failure
RestartSec=5
ExecStart=/path/to/executable

[Install]
WantedBy=multi-user.target

...To be continued

About

Easily monitor your data usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages