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

https://github.com/pexmor/projector

Simple html project
https://github.com/pexmor/projector

javascript mosquitto mqtt websocket

Last synced: about 2 months ago
JSON representation

Simple html project

Awesome Lists containing this project

README

          

# The Projector

**TL;DR** Open and scan the QR with your phone.

The code is located in [docs](docs) folder here in this repo.

It uses `broker.emqx.io` provided for free but without any guaranties, thus you might need to
setup own server (either with or as sketched in [mosquitto](mosquitto)).
To override the default **MQTT** broker config add `#mqttCfgUrl=config.json` which points to the alternative config
see example in [docs/config_example.json](docs/config_example.json).

This project was create in order to make a proof of concept that can demonstrate modern web technologies.

The keywords or technologies include, but are not limited to:

- MQTT over websocket
- MQTT server
- QR 2-D barcodes codes

Inspired by:

- Digital Living Network Alliance (DLNA)
- UPnP aka mHTTP
- Bonjour aka mDNS
- WebRTC
- Websockets

## Development

Start local web server (in docs folder):

```bash
# start server at http://localhost:8088 (with CORS)
python -mpysrv
```

and the open

## Editor

A simple object position editor concept is included in the project.

Reachable as:

- from Github pages
- from local web server which also includes the `data_point` server for saving and serving the `elAttrs`
- to run local server: `python -mpysrv.dp`