A RESTful API written in Dart Frog for interacting with arduino/esp sensors and actuators
- ESP32 or similar;
- DHT sensor;
- LED
- DC motor with fan
First, check Dart Frog Docs to install Dart Frog. Once you have finished run:
# 🏁 Start the dev server
dart_frog devin order to start the server on your localhost
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)
By going to
http://localhost:8080/index.html
you can access to the Swagger UI OpenAPI
ardu_APIno is now available at
https://ardu-apino.globeapp.dev/
Deployed using Globe
