Skip to content

Instantly share code, notes, and snippets.

@squix78
Last active January 4, 2016 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squix78/f8c5d1e8379886fbe6f9 to your computer and use it in GitHub Desktop.
Save squix78/f8c5d1e8379886fbe6f9 to your computer and use it in GitHub Desktop.
/***************************
* Begin Settings
**************************/
const char* ssid = "yourssid";
const char* password = "yourpassw0rd";
const char* host = "api.thingspeak.com";
const char* THINGSPEAK_API_KEY = "XXX";
// DHT Settings
#define DHTPIN D6 // what digital pin we're connected to. If you are not using NodeMCU change D6 to real pin
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
const boolean IS_METRIC = true;
// Update every 600 seconds = 10 minutes. Min with Thingspeak is ~20 seconds
const int UPDATE_INTERVAL_SECONDS = 600;
/***************************
* End Settings
**************************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment