Skip to content

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ardu_APIno

style: very good analysis License: MIT Powered by Dart Frog

A RESTful API written in Dart Frog for interacting with arduino/esp sensors and actuators

What you need

  • ESP32 or similar;
  • DHT sensor;
  • LED
  • DC motor with fan

How to use it

First, check Dart Frog Docs to install Dart Frog. Once you have finished run:

# 🏁 Start the dev server
dart_frog dev

in order to start the server on your localhost

Workflow example

Available endpoints

http://localhost:8080/sensor/dht - GET

provides temperature and humidity of DHT sensor connected to your micro-controller

http://localhost:8080/actuator/rgb_led - POST

turns on the LED with the 'r', 'g' and 'b' parameters (0 - 255)

http://localhost:8080/actuator/led - POST

turns on the LED with the intensity and color specified by the 'brightness' (0 - 255) parameter and 'color' (RED - GREEN - BLUE)

http://localhost:8080/actuator/fan_motor - POST

turns on the fan by using "speed" parameter (0 - 255)

Swagger

By going to

http://localhost:8080/index.html

you can access to the Swagger UI OpenAPI

Latest news

ardu_APIno is now available at

https://ardu-apino.globeapp.dev/

Deployed using Globe

About

A RESTful API written in Dart Frog for interacting with arduino sensors and actuators

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages