Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prdktntwcklr/weatherman
A simple web app displaying environmental data from an SQLite database.
https://github.com/prdktntwcklr/weatherman
dashboard data flask sensor sqlite
Last synced: 4 days ago
JSON representation
A simple web app displaying environmental data from an SQLite database.
- Host: GitHub
- URL: https://github.com/prdktntwcklr/weatherman
- Owner: prdktntwcklr
- License: mit
- Created: 2023-08-21T14:59:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T03:12:08.000Z (3 months ago)
- Last Synced: 2024-08-16T04:27:13.692Z (3 months ago)
- Topics: dashboard, data, flask, sensor, sqlite
- Language: HTML
- Homepage: https://weatherman.onrender.com/
- Size: 393 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weatherman
A simple web application in Flask that displays temperature and humidity data
from an SQLite database. The application is [automatically deployed](https://weatherman.onrender.com/)
on push to the `main` branch of this repository.## Index page
![weatherman_index](docs/weatherman_index.png)
## Data page
![weatherman_data](docs/weatherman_data.png)
## Running locally
It is also possible to run the application locally on your machine. Before
following the steps below make sure that you have Python installed.### Create a new virtual environment for Python
```bash
python -m venv .venv
```### Activate the virtual environment
```bash
.\venv\Scripts\activate
```### Install required dependencies
```bash
pip install -r requirements.txt
```### Start the application
```bash
flask --app=weatherman run
```This will load the default SQLite database specified in the `.env.example` file.
Provide a custom `.env` file to overwrite this value.### Running unit tests
```bash
pytest tests/
```