Skip to content

Simple code snippets to work with flespi

License

Notifications You must be signed in to change notification settings

rafinewman/examples

 
 

Repository files navigation

flespi.io usage examples

Changelog on forum

HTTP stream receiver

More info about http streams: https://flespi.com/blog/get-data-in-your-platform-via-flespi-http-stream

In short:

  1. create a stream in flespi platform, using http as configuration and something like http://your-server:port/path-on-server as uri parameter
  2. subscribe created stream to items you need
  3. deploy one of examples listed above on your server or VPS
  4. configure your example to listen on your-server:port network endpoint and to handle a /path-on-server uri
  5. flespi platform will constantly deliver a batch of messages to your deployment

MQTT client examples

MQTT client source code examples using the flespi broker on nodejs, python, python on windows, lua, browser, micropython (esp8266), etc...

MQTT device telemetry dashboard example

A simple example of using mqtt to receive and display telemetry data from devices.

run it in your browser

MQTT channel message handler

Snapshots downloader tool

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.

About

Simple code snippets to work with flespi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.1%
  • Python 28.2%
  • JavaScript 8.9%
  • PHP 8.3%
  • Lua 2.5%