Skip to content

dominikhoebert/send_ip_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

send_ip_bot

This is a simple python script that sends the public and/or local IP address of the machine to a notification service using Apprise.

Simple Install using pipx

pipx Installation

pipx install git+https://github.com/dominikhoebert/send_ip_bot.git

Usage

sendipbot --help

usage: Send IP [-h] [-s FILE] [-n NAME] [-f] [-i] [-e] token chat

Script can send the internal and/or external IP Address to an Apprise URL.

positional arguments:
  url                   the Apprise URL to send the notification to

options:
  -h, --help            show this help message and exit
  -s FILE, --file FILE  the file where to store the last ip
  -n NAME, --name NAME  device name to send in the message
  -f, --force           set flag to force send message, even if IP did not change
  -i, --internal        set flag to send the internal IP
  -e, --external        set flag to send the external IP

Apprise Docs for Notification URLs

sendipbot "apprise://telegram://API_TOKEN/CHAT_ID" -i -e
sendipbot "apprise://telegram://API_TOKEN/CHAT_ID" -f

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages