- Adopted from: https://stubby4j.com/docs/admin_portal.html
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<meta name="Vikkey" content="Vivek Gupta & IoTMonk"> | |
<meta http-equiv="Access-Control-Allow-Origin" content="*"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
const char* ssid = "your SSID or hotspot or wifi name"; | |
const char* password = "password of hotspot or wifi or ssid"; | |
// Create an instance of the server | |
// specify the port to listen on as an argument | |
WiFiServer server(80); | |
void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include "DHT.h" | |
#define DHTPIN D1 | |
#define DHTTYPE DHT11 | |
const char* ssid = "your SSID or hotspot or wifi name"; | |
const char* password = "password of hotspot or wifi or ssid"; | |
// Create an instance of the server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// now.pde | |
// Prints a snapshot of the current date and time along with the UNIX time | |
// Modified by Andy Wickert from the JeeLabs / Ladyada RTC library examples | |
// 5/15/11 | |
#include <Wire.h> | |
#include "DS3231.h" | |
RTClib RTC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pinA = 3; | |
int pinB = 4; | |
int encoderPosCount = 0; | |
int pinALast; | |
int aVal; | |
boolean bCW; | |
void setup() | |
{ | |
//SET pinA and pinB and input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Program to scan the i2c Addresses of the connected devices | |
#include <Wire.h> | |
void setup() | |
{ | |
Wire.begin(); | |
Serial.begin(9600); | |
while (!Serial); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#include "DS3231.h" | |
#include <SD.h> | |
#include <SPI.h> | |
File sdcard_file; | |
int CS_pin = 10; | |
//RTC Data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Program to print all the sensor data | |
#include <Wire.h> | |
#include "DS3231.h" | |
//RTC Data | |
RTClib RTC; | |
String complete_date; | |
String complete_time; | |
float sab; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code to test the SD card Module. Please refer circuit diagram for wiring | |
#include <SD.h> | |
#include <SPI.h> | |
File myFile; | |
int pinCS = 53; | |
void setup() { | |
NewerOlder