Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alancunningham/envirophat-plant-monitor
A plant monitor server for the Pimoroni Enviro pHAT
https://github.com/alancunningham/envirophat-plant-monitor
chartjs django envirophat pimoroni python raspberry-pi
Last synced: about 1 month ago
JSON representation
A plant monitor server for the Pimoroni Enviro pHAT
- Host: GitHub
- URL: https://github.com/alancunningham/envirophat-plant-monitor
- Owner: AlanCunningham
- Created: 2020-05-19T20:43:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T19:04:17.000Z (over 3 years ago)
- Last Synced: 2023-02-27T17:17:47.187Z (almost 2 years ago)
- Topics: chartjs, django, envirophat, pimoroni, python, raspberry-pi
- Language: Python
- Homepage:
- Size: 466 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Enviro pHAT Plant Monitor
A lightweight plant monitor server for the [Pimoroni Enviro pHAT](https://github.com/pimoroni/enviro-phat), written in Django.
## Before you start
- Install the Envirophat dependencies using the [Pimoroni Enviro pHAT installation guide](https://github.com/pimoroni/enviro-phat)
- Install [virtualenv](https://virtualenv.pypa.io/en/latest/installation.html)## Installation
```
# Clone the repository
git clone [email protected]:AlanCunningham/envirophat-plant-monitor.git# Create a python virtual environment
virtualenv --system-site-packages -p python3 venv# Activate the virtual environment
source venv/bin/activate# Install the python dependencies using the requirements.txt file provided
pip install -r requirements.txt# Create a cronjob to get data from the Enviro pHAT sensor once an hour
crontab -e
# m h dom mon dow command
0 * * * * {path to virtualenv}/bin/python {path to project}/manage.py get_sensor_data
```## Run the server
```
python manage.py runserver 0:8000
```
The server will be available at http://localhost:8000/monitor/graph