Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 427 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 427 Bytes

email_ip

Description:

This is a very simple script I put together to email my current external (DHCP) IP address to myself. I'm using requests to pull IP info from a URL in JSON format. Then it is emailed to my GMail account using smtplib. This script runs daily via cron.

Usage:

# ./email_ip.py 
To: [email protected]
From: [email protected]
Subject: Current Home IP is: 1.1.1.1 on 07-13-2014