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: about 1 month 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T14:13:29.000Z (over 1 year ago)
- Last Synced: 2025-01-14T02:12:55.274Z (over 1 year ago)
- Topics: dashboard, data, flask, sensor, sqlite
- Language: HTML
- Homepage:
- Size: 399 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

## Data page

## 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/
```