Skip to content

Commit 93d644b

Browse files
committed
Use pipenv and external libraries
1 parent 236fbf8 commit 93d644b

14 files changed

+270
-968
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ ENV/
8888
# Rope project settings
8989
.ropeproject
9090

91-
/config.yml
91+
/config.toml

Pipfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[[source]]
2+
url = "https://pypi.python.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
requests = "*"
8+
numpy = "*"
9+
adafruit-circuitpython-bme280 = "*"
10+
sds011 = "*"
11+
toml = "*"
12+
13+
[dev-packages]
14+
15+
[requires]
16+
python_version = "3.7"

Pipfile.lock

Lines changed: 186 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Python 3 program for the [luftdaten.info](http://luftdaten.info/) sensor network
1717

1818
## Dependencies
1919

20-
apt install python3-numpy python3-requests python3-yaml python3-serial
20+
apt install python3-numpy python3-requests python3-yaml python3-serial pipenv
2121

2222
You also need to install [Adafruit_Python_BME280](https://github.com/adafruit/Adafruit_Python_BME280):
2323

@@ -30,9 +30,13 @@ You also need to install [Adafruit_Python_BME280](https://github.com/adafruit/Ad
3030

3131
## Configuration
3232

33-
Copy the `config.yml.default` to `config.yml` and adjust the settings.
33+
Copy the `config.default.toml` to `config.toml` and adjust the settings.
3434

3535

3636
## Running a systemd unit
3737

3838
Take a look at the [dusty.unit](contrib/dusty.unit).
39+
40+
## Privileges
41+
42+
The process needs privileges in the groups `i2c` and `dialout`.

0 commit comments

Comments
 (0)