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

https://github.com/aitumik/firmware-api

This is the server that receives the updates from the hardware and sends the results to a client
https://github.com/aitumik/firmware-api

flask sqlalchemy

Last synced: over 1 year ago
JSON representation

This is the server that receives the updates from the hardware and sends the results to a client

Awesome Lists containing this project

README

          

:wq# Firmware API and UI
This is a firmware and Web test

## Description
A web app(ui + api) for showing the humidity and temperature posted by esp8266

## Screenshots



Temperature


Humidity

## Installation
First clone the project into your local machine and navigate to the folder
```bash
git clone https://github.com/aitumik/firmware-api.git
cd firmware-api
```

Create a virtual environment:
```bash
python3 -m venv nameofvirtualenv
```

Activate the virtual environment
```bash
source nameofvirtualenv/bin/activate
```

Install the requirments files
```bash
pip install -r requirements.txt
```

## Usage
Serve the application and make sure that the firmware runs on the same wifi as this server
```bash
python3 manage.py runserver --host 0.0.0.0
```
As soon as the server starts you should start seeing incoming request from the esp8266 client

## Technologies used
* Python
* Flask
* jQuery
* Bootstrap

## Drawbacks

* The web application is not quite responsive on mobile devices
* The UI is still basic bootsrap no fancy animations

## Future features

* Use semantic UI instead of bootstrap
* Allow the export of data

## Contributing
Pull requests are welcome. For major changes please open an issue first

## License
[MIT](https://choosealicense.com/licenses/mit/)