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
- Host: GitHub
- URL: https://github.com/pexmor/projector
- Owner: PexMor
- License: mit
- Created: 2024-12-18T12:27:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T20:46:12.000Z (over 1 year ago)
- Last Synced: 2025-02-12T11:14:54.482Z (over 1 year ago)
- Topics: javascript, mosquitto, mqtt, websocket
- Language: PHP
- Homepage: https://pexmor.github.io/projector/
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`