Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bblwq/OINP_Monitor

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OINP-Monitor

A python script that checks for OINP update every 20s and notify you by sending a text message with Twilio.

Running Environment: Raspberry Pi 3 Model B, Raspbian Linux 4.9, Python 2.7.13

Python Libraries Needed:

  • pickle
  • urllib3
  • BeautifulSoup
  • time
  • logging
  • twilio

Other Utility Needed:

  • cron
  • Twilio

How to Implement:

  1. Install Python 2.7 and all libraries/utilities needed
  2. Put OINP.py and OINP.pickle in a folder of your choice.
  3. Replace all # with real values (For privacy reason, I masked my Twilio credentials, phone number and file directories).
  4. Schedule a cron task to run OINP.py every 10 mins: */10 * * * * python ########/OINP.py
  5. Schedule a cron task to reboot the computer everyday at midnight to prevent crashes: 0 0 * * 0 sudo reboot
  6. Schedule a cron task to upgrade the computer everyday at 12:01 AM: 1 0 * * * sudo apt-get upgrade && sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove

About

A python script that checks for OINP update every 20s and notify you by sending a text message using Twilio

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.