https://github.com/mgdm/mqttmap
https://github.com/mgdm/mqttmap
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgdm/mqttmap
- Owner: mgdm
- Created: 2021-09-12T20:54:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-12T21:05:48.000Z (over 3 years ago)
- Last Synced: 2025-01-24T11:28:19.204Z (3 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Payload format as built is:
```json
{
"lat": 55.9,
"lon": -4.3,
"label": "hello" // Displayed when clicking the marker
}
```The label is added unmodified to the marker. This is probably insecure! Make sure you trust or validate it.
To test this, do something like:
```bash
while true; do mosquitto_pub -h test.mosquitto.org -t 'mgdm/geo' -m '{"lat": 55.9,"lon": -4.3,"label":"hello"}'; sleep 2; done
```