Fetch_rain.ino carried the WiFi password and three ThingHTTP API keys as plaintext literals. The sketch now includes the non-versioned secrets.h, which defines WIFI_SSID, WIFI_PASSWORD and the three THINGHTTP_KEY_* symbols (one per scheduled channel: today, tmrw, aftmrw). secrets.h.example lists all five placeholders and .gitignore keeps secrets.h out of the repository. Why: credentials must not live in version control. The old values are still in the history and in clones, so they must be rotated and the API keys reissued.
12 lines
488 B
Plaintext
12 lines
488 B
Plaintext
// Copy this file to secrets.h and fill in your own credentials.
|
|
// secrets.h is listed in .gitignore and must never be committed.
|
|
#pragma once
|
|
|
|
const char* WIFI_SSID = "your-wifi-name";
|
|
const char* WIFI_PASSWORD = "your-wifi-password";
|
|
|
|
// ThingHTTP API keys, one per scheduled channel (today/tmrw/aftmrw).
|
|
const char* THINGHTTP_KEY_TODAY = "your-thinghttp-api-key";
|
|
const char* THINGHTTP_KEY_TMRW = "your-thinghttp-api-key";
|
|
const char* THINGHTTP_KEY_AFTMRW = "your-thinghttp-api-key";
|