Skip to content

Commit

Permalink
Update README and systemd service files
Browse files Browse the repository at this point in the history
  • Loading branch information
yesrod committed Oct 18, 2020
1 parent 9c6ea12 commit 9a70f3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ SECURITY
INSTALLATION
------------

**AS OF VERSION 1.2.0 PYTHON 3 IS REQUIRED.**

You'll save time and skip having to install ```gfortran``` if you install the repo version of ```python-numpy```.
```
sudo apt-get update
Expand All @@ -49,17 +51,17 @@ sudo systemctl restart cpufrequtils

The only prerequisite that you'll need to manually install is the hx711py module.
```
sudo pip install git+https://github.com/tatobari/hx711py.git
sudo pip3 install git+https://github.com/tatobari/hx711py.git
```

After installing hx711py, clone this respository and run
```
sudo python setup.py install
sudo python3 setup.py install
```

Or use pip:
```
sudo pip install git+https://github.com/yesrod/hoplite.git
sudo pip3 install git+https://github.com/yesrod/hoplite.git
```

HARDWARE
Expand Down
2 changes: 1 addition & 1 deletion systemd/hoplite-web.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Requires=hoplite.service
After=hoplite.service

[Service]
ExecStart=/usr/bin/python2 -m hoplite.web
ExecStart=/usr/bin/python3 -m hoplite.web

[Install]
WantedBy=multi-user.target hoplite.service
2 changes: 1 addition & 1 deletion systemd/hoplite.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=HOPLITE: A kegerator monitoring script for RasPi

[Service]
ExecStart=/usr/bin/python2 -m hoplite --config /etc/hoplite/config.json
ExecStart=/usr/bin/python3 -m hoplite --config /etc/hoplite/config.json
TimeoutStopSec=10
KillSignal=SIGINT
Nice=-15
Expand Down

0 comments on commit 9a70f3d

Please sign in to comment.