examples
examples copied to clipboard
Simple code snippets to work with flespi
flespi.io usage examples
HTTP stream receiver
- NodeJS
- PHP or PHP+MySQL
- Python
More info about http streams: https://flespi.com/blog/get-data-in-your-platform-via-flespi-http-stream
In short:
- create a stream in flespi platform, using
httpas configuration and something likehttp://your-server:port/path-on-serveras uri parameter - subscribe created stream to items you need
- deploy one of examples listed above on your server or VPS
- configure your example to listen on
your-server:portnetwork endpoint and to handle a/path-on-serveruri - flespi platform will constantly deliver a batch of messages to your deployment
Device message converter script
Converts messages to KML, GPX, GEOJSON, CSV
- NodeJS
- Python
Message webhook listener
- NodeJS
- PHP
MQTT client examples
MQTT client source code examples using the flespi broker on nodejs, python, python on windows, lua, browser, micropython (esp8266), dart, etc...
MQTT device telemetry dashboard example
A simple example of using mqtt to receive and display telemetry data from devices.
- HTML+JS+CSS with mqtt.js
MQTT device message handler
- Python + MySQL
Snapshots downloader tool
- Python
Snapshots uploader tool
- Python
Re-register device messages tool
- Python
Devices creation tool
This tool may help you to create many devices in your flespi.io account.
Contributing
If you have cool examples of flespi API usage or have time and zeal to write examples on your preferred language, you are welcome to contribute by making a pull request or contact us on the forum.