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

https://github.com/bcongdon/anyonehere

:eyes: See who's home with a simple Flask API
https://github.com/bcongdon/anyonehere

flask-application raspberry-pi

Last synced: 7 months ago
JSON representation

:eyes: See who's home with a simple Flask API

Awesome Lists containing this project

README

          

# AnyoneHere?
> :eyes: See who's around with a simple Flask API

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()

AnyoneHere gives you a snapshot of who's around.

![ScreenGrab](img/screengrab.png)

You can also look at a punchcard-style view of historical data.

![ScreenGrabPunchcard](img/screengrab-punchcard.png)

## Installation

1. Clone repo and install dependencies

```
git clone https://github.com/bcongdon/AnyoneHere
cd AnyoneHere
pip install -r requirements.txt
```

2. Copy template configuration file.

```
cp config-template.json config.json
```

3. Edit `config.json` file to contain user names and MAC addresses.
4. Build the front end.
```
npm install
npm run build
```
5. Run AnyoneHere.

```
python run.py
```

6. Connect to AnyoneHere at `http://localhost:5000`.
* You can access online user data programmatically by sending a `GET` request to `/api/user`