Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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