Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SHELL=/bin/bash
PATH=/home/bewest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
*/5 * * * * (cd ~/Documents/foo && openaps do-everything) 2>&1 | logger -t openaps-loop
@channemann

This comment has been minimized.

Copy link

channemann commented Sep 28, 2015

FYI, I found that my dexcom receiver was getting its new readings slightly after the 5-minute mark (as determined by the RPi system clock), so I put an offset in my crontab line. It still runs every five minutes, just at the 2 and 7 mark instead of 0 and 5:

2-59/5 * * * * /home/pi/bin/every-five.sh > /home/pi/bin/mylog.log 2>&1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.