Code Monkey home page Code Monkey logo

send_reminders's Introduction

send_reminders

Sends reminders to undergrads, automatically, when they don't do their fish care chores.

Reads data from this Google spreadsheet. Written based on code here and here.

Run like

 /Users/lukereding/anaconda2/envs/google_sheets/bin/python reminder_water_change.py --help

usage: reminder_water_change.py [-h] [-e] [-t]

optional arguments:
  -h, --help   show this help message and exit
  -e, --email  Send email to those that have not done water changes?
  -t, --text   Send text message to those that have not done water changes?

...using the path to the python interpreter in the virtual environmental called google_sheets. This is recommended but not necessary.

Its meant to be executed in as a cron job.

reminder_water_change.py finds the previous Monday's date. It's meant to be executed on Thursday and Friday. So in crontab -e, add

26 4 * * 4 . $HOME/.profile && /home/pi/miniconda3/envs/send_emails/bin/python /home/pi/Documents/send_reminders/reminder_water_change.py -e
26 4 * * 5 . $HOME/.profile && /home/pi/miniconda3/envs/send_emails/bin/python /home/pi/Documents/send_reminders/reminder_water_change.py -e
26 4 * * 1 . $HOME/.profile && /home/pi/miniconda3/envs/send_emails/bin/python /home/pi/Documents/send_reminders/reminder_water_change.py -e

to check the google sheet and send an email every Monday, Thursday, and Friday at 4:26am.

send_reminders's People

Contributors

lukereding avatar sarahprice avatar

Watchers

 avatar

Forkers

sarahprice

send_reminders's Issues

better parsing of dates

In the sheet, there will be a single date assigned. Figure out how to calculate the day 1 - 5 days in the future (even if the date in the column is, e.g., May 29th so the fifth day will be in June)

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.