pi_weatherstation
Read the data from pimoroni BME680 and display on pimoroni SPI screen
Dependencies:
- wkhtmltopdf(https://wkhtmltopdf.org/downloads.html)
Install on RaspberryPI
- Enable SPI and I2C
- Install the dependencies
sudo apt-get install python3-venv python3-dev libatlas-base-dev wkhtmltopdf libopenjp2-7
- Create the folder to store the virtualenv
mkdir pi_weatherstation
cd pi_weatherstation
- Create the virtualenv and activate it
python3 -m venv .env
source .env/bin/activate
- Install the via pip with the sensors dependencies
pip install pi_weatherstation\[st7789,bme680\]
- Run
pi_weatherstation -l debug
Config file
You can copy the example config file from https://github.com/guilhermef/pi_weatherstation/blob/main/examples/config.ini
The field metrics_location_label will be added as a location label on prometheus.
Then you can run pi_weatherstation -c <path to config.ini>
Long term data storage
This will also start a prometheus metric server that you can use to scrape. You can configure a label name location if you have multiple instances.
Install Prometheus on RaspberryPI
Create a free account on Grafana Cloud
Copy the existing prometheus.yml file to scrape the local pi_weatherstation, and add your remote_write auth on it. https://github.com/guilhermef/pi_weatherstation/blob/main/examples/prometheus.yml
Import the example dashboard on your new Grafana: https://github.com/guilhermef/pi_weatherstation/blob/main/examples/grafana_dashboard.json
Running as a service
If you want, you can use the systemd service unit file as an example
https://github.com/guilhermef/pi_weatherstation/blob/main/examples/pi_weatherstation.service
to /etc/systemd/system/pi_weatherstation.service
then, run:
sudo systemctl daemon-reload
sudo systemctl enable pi_weatherstation.service
sudo systemctl start pi_weatherstation.service
Metadata
Release files for pi-weatherstation 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pi_weatherstation-0.0.5.tar.gz | 1.9 MB | Without provenance | Details for pi_weatherstation-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pi_weatherstation-0.0.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pi_weatherstation-0.0.5-py2.py3-none-any.whl |
Total release size: 1.9 MB
Release files / pi_weatherstation-0.0.5.tar.gz
| Download URL | pi_weatherstation-0.0.5.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcdee59e629bd64c599b97017c259617577b2e926a3e3a3f31f364cffc51678f
|
|
BLAKE2b-256 checksum How to use checksums |
2d8c87c3d7a909ebeee5409fdeb3316b0d26bceb59b636ab0bb6c833f5e5709b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / pi_weatherstation-0.0.5-py2.py3-none-any.whl
| Download URL | pi_weatherstation-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f1ae089ded7213cdd77151454aed8da1e10de46518a00d9b71fe91c34fde584a
|
|
BLAKE2b-256 checksum How to use checksums |
567cb09f3f656d118f5bc8b3646c76f6bbd2c2c8f69c580b5ee234f9beea1fc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for pi-weatherstation 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.