vilaswkhade
Published © GPL3+

IOT automation dashboard

Data visualization, Live charts, gauges, and Triggers using Arduino

IntermediateFull instructions provided1,627
IOT automation dashboard

Things used in this project

Story

Read more

Schematics

Circuit connections of CavyIoT development board with Arduino UNO

Code

CavyIoT Dashboard

C/C++
/*
Example code generates value for the dummy values sensor variable.For the live demo of IoT dashboard 
https://developers.cavyiot.com
Ayush Khade 28 may 2020 
*/
#include "CavyIoTdevelopmentBoard.h"
CavyIoT myIoTdevice;
long t,h,s,p;
int rx=10;
int tx=11;
int rst=13;
void setup() {
             Serial.begin(9600);
             myIoTdevice.SetPort(rx,tx,rst);
             Serial.println("Setting device buttons!.");
             
             myIoTdevice.DefineButtonLables
              ( "heater","on",  "off",
                "motor", "on",  "off",
                "bulb",  "on","  off",
                "fan",   "on",  "off"
                 );
            Serial.println("Wait for a while to connect!.");     
            myIoTdevice.StartDevice("WifiSSID","WiFipassword",
            /*CavyIoT Credentials--->*/"Username","password","device");
           
            
          
           }
 void loop() {

  myIoTdevice.loop();
  
  t=random(39,42);
  h=random(22,44);
  s=random(5,12);
  p=random(40,44);
   myIoTdevice.UpdateSensorData
      ( "Temperature",   String(t),"C",
        "humidity",      String(h),"Rh",
        "Speed",         String(s),"km/hr",
        "pressure",      String(p),"Psi"

      );
 
}

CavyIoTdevelopmentBoard

It is open source IoT Development Board firmware for NodeMCU/ESP8266 ,released by Cavy Agrotronics for Arduino community .

Credits

vilaswkhade

vilaswkhade

3 projects • 15 followers

Comments