GithubHelp home page GithubHelp logo

96fps / menutexter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michaelbrant/menutexter

0.0 2.0 0.0 35 KB

Automatically sends texts of Widener University's cafeteria Lunch and Dinner menus

Python 100.00%

menutexter's Introduction

MenuTexter

Automatically sends texts of Widener University's cafeteria Lunch and Dinner menus. The HTML is parsed from https://widener.campusdish.com/Commerce/Catalog/Menus.aspx?LocationId=213 using a python library called Beautiful Soup 4. Disclaimer: The messages MenuTexter sends aren't actually SMS texts. They are emails. Sending SMS would cost money

To Install the MenuTexter:

You can remotely connect via SSH into ec2-52-207-132-210.compute-1.amazonaws.com with the username ec2-user and the private key that I'm not going to post here. This already has the MenuTexter installed using the email [email protected]

-OR, If you want your own server-

  1. Launch a t2.micro Amazon Linux AMI EC2 instance and run the following commands:
$ sudo yum update
$ sudo easy_install bs4
$ sudo easy_install configparser
$ sudo yum install git-all
  1. git clone https://github.com/michaelbrant/MenuTexter
  2. edit config.cfg with either your own gmail account or add the password that I will give to you. (I'm not posting that here)

Running the MenuTexter

Send a text to menutexter@gmail (or whatever gmail account you created) saying Start

Next, run

$ python checkMail.py 

Then,

$ nano emailList.txt 

and you should see your phone number in the list.

At this point running:

$ python MenuTexter.py L

will send a text of today's lunch menu to whatever phone numbers are in emailList.txt

$ python MenuTexter.py D 

will send a text of the dinner menu.

If you are not receiving a text it is quite possible that there is no lunch/dinner menu for today. Uncomment the three lines in pullMenu.py to test specific days that you know have lunch or dinner menus

Make the MenuTexter Automatic

$ crontab -e

add the following code:

00 14 * * 1-5 python MenuTexter.py D
00 14 * * 1-5 python MenuTexter.py L
* * * * * python checkMail.py

This will run MenuTexter.py D and MenuTexter.py L every day Monday-Friday during school months at 10AM It will also run checkMail.py every minute.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.