Created
September 17, 2012 04:59
-
-
Save pdp7/3735633 to your computer and use it in GitHub Desktop.
[timetemp] shell wrapper for python script for Raspberry Pi to display time and temp on 7-segment display
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOG=/var/log/timetemp.log | |
echo tmp102 0x48 > /sys/class/i2c-adapter/i2c-0/new_device | |
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device | |
hwclock &> $LOG | |
date &>> $LOG | |
hwclock -s &>> $LOG | |
date &>> $LOG | |
/home/pi/timetemp/timetemp.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment