Skip to content

Commit

Permalink
weathercaster -> YANPIWS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones-plip committed Jun 8, 2021
1 parent e814b93 commit 3371f66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions I2C.bme280.oled/YANPIWS.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Description=YANPIWS
After=network-online.target

[Service]
ExecStart=/usr/bin/python3 /root/YANPIWS/I2C.bme280.oled/remote_all.py -ip weather.plip.com -id1 71 -id2 74
ExecStart=/usr/bin/python3 /home/pi/YANPIWS/I2C.bme280.oled/remote_all.py -b 1 -ip 192.168.2.30 -id1 57 -id2 74
# todo - the After above doesn't seem to work so we put this sleep in here :(
ExecStartPre=/bin/sleep 10
ExecStop=/usr/bin/python3 /root/YANPIWS/I2C.bme280.oled/clear_scren.py
ExecStop=/usr/bin/python3 /home/pi/YANPIWS/I2C.bme280.oled/clear_scren.py -b 1
Restart=always
RestartSec=30

Expand Down
2 changes: 1 addition & 1 deletion I2C.bme280.oled/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ device IDs after running `i2cdetect 0` or `i2cdetect 1`. These are likley `76` f
It defaults to `--bus/-b` of `1` and `--device/-d` of `0x76`. Likely if you're on a Pi, you
won't need to change anything, so you can just call it with out any arguments.
1. `remote_all.py` takes teh following arguments:
1. `remote_all.py` takes teh following arguments:
```$xslt
usage: remote_all.py [-h] [--bus BUS] [--remote_ip REMOTE_IP]
[--temp_id1 TEMP_ID1] [--temp_id2 TEMP_ID2]
Expand Down
6 changes: 3 additions & 3 deletions I2C.bme280.oled/remote_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ def main(device):

if __name__ == "__main__":
try:
my_logger.debug('Weathercaster: Starting')
my_logger.debug('YANPIWS: Starting')
serial = i2c(port=bus_number, address=0x3C)
device = ssd1306(serial)

main(device)
except KeyboardInterrupt:
my_logger.debug("Weathercaster: Stopping(Ctrl + C)")
my_logger.debug("YANPIWS: Stopping(Ctrl + C)")
pass
finally:
my_logger.debug("Weathercaster exit trace: " + full_stack())
my_logger.debug("YANPIWS exit trace: " + full_stack())

0 comments on commit 3371f66

Please sign in to comment.