Repo to log temperature (meassured by BMP180 at a raspberry pi) to html file and publish it publicly.
The BMP180 was connected to the pi like this:
| BMP180 | GPIO | Pin |
|---|---|---|
| SDA | GPIO2 | 3 |
| SCL | GPIO3 | 5 |
| GND | GND | 6 |
| VIN | 3V3 | 1 |
sudo apt install --yes \
git \
python3-smbus
sudo raspi-config # interface options/i2c/yes
sudo usermod -a -G i2c $(whoami)
crontab -e
# add the following commands:
# * * * * * ~/temperature_logger/temperature_logger.py
# 55 * * * * sh -c 'cd ~/temperature_logger && git pull'
# 0 * * * * sh -c 'cd ~/temperature_logger && git commit -am "commit new data" && git push'Testing: Get location of Meassurement via strongest WLANs SSID
# allow user to run iw command without password
echo "${USER} ALL=(ALL) NOPASSWD: /sbin/iw wlan0 scan" > "/etc/sudoers.d/sudo-${USER}-nopasswd-iw"
# create crontab with:
# */15 * * * * ~/temperature_logger/get_ssid