dyn-ip-monitor

command module
v0.0.0-...-569302c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 12 Imported by: 0

README

dyn-ip-monitor

If your ISP has alloted you dynamic IP and you want to know how often it changes, and it what range, you are at the right place.

dyn-ip-monitor is a very simple service which fetches you public IP and stores it in mongo database.

Overview

It stores the entries in dynip database and the collection is ip_log.

Environment Variable
  • MONGODB_URI - connection string to the database
  • INTERVAL - sleep time between execution
  • TZ - without this, it will fallback to UTC in your db entries

How to use

Note: This app is in alpha, and right now I'm married to my setup. I'm running docker in swarm mode, and I have a central mongodb server. Contributions are welcomed, but right now I'll focus on MVP.

Right now, I pass following spec in portainer to create a stack:

version: '3.8'

services:
  server:
    image: sntshk/dyn-ip-monitor
    environment:
      - INTERVAL=900  # 15 mins
      - TZ=Asia/Kolkata

FAQ

  1. Why mongo if this could have been done with file based database?

Because I started it on my existing homelab infrastructure. Pull requests are welcomed to add more databases.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL