{"id":23811572,"url":"https://github.com/andrejicd/thingspeak-weather-station","last_synced_at":"2026-02-05T15:32:28.009Z","repository":{"id":269534950,"uuid":"907715804","full_name":"andrejicd/Thingspeak-Weather-Station","owner":"andrejicd","description":"ThingSpeak Weather Station with LCD Display","archived":false,"fork":false,"pushed_at":"2025-01-01T16:46:29.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-02T06:06:43.855Z","etag":null,"topics":["arduino-ide","bme280","esp32","esp8266","esp8266-projects","iot-dashboards","klimerko","lcd16x2","pms7003","thingspeak","weather-station"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrejicd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-24T08:06:38.000Z","updated_at":"2025-01-19T02:37:48.000Z","dependencies_parsed_at":"2024-12-24T09:22:24.535Z","dependency_job_id":"95a753ee-f79f-435b-9e80-ddbac85179e7","html_url":"https://github.com/andrejicd/Thingspeak-Weather-Station","commit_stats":null,"previous_names":["andrejicd/thingspeak-weather-station-v1"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/andrejicd/Thingspeak-Weather-Station","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejicd%2FThingspeak-Weather-Station","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejicd%2FThingspeak-Weather-Station/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejicd%2FThingspeak-Weather-Station/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejicd%2FThingspeak-Weather-Station/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrejicd","download_url":"https://codeload.github.com/andrejicd/Thingspeak-Weather-Station/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejicd%2FThingspeak-Weather-Station/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263440708,"owners_count":23466976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino-ide","bme280","esp32","esp8266","esp8266-projects","iot-dashboards","klimerko","lcd16x2","pms7003","thingspeak","weather-station"],"created_at":"2025-01-02T01:19:36.676Z","updated_at":"2026-02-05T15:32:27.963Z","avatar_url":"https://github.com/andrejicd.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThingSpeak Weather Station with LCD Display\n\nThis project implements a simple weather station that reads data from a ThingSpeak channel and displays it on an LCD screen. It uses an ESP8266/ESP32 microcontroller, a ThingSpeak account, and an I2C LCD display.\n\n## Features\n\n*   Reads weather data (temperature, humidity, etc.) from a ThingSpeak channel.\n*   Displays the data on an I2C LCD screen.\n*   Controls LCD backlight based on time of day.\n*   **LCD blinking based on PM2.5 value (field4).**\n*   Handles network connection and ThingSpeak communication errors.\n\n## Hardware Requirements\n\n*   ESP8266 or ESP32 microcontroller\n*   I2C LCD display (e.g., 16x2 or 20x4)\n*   Connecting wires\n*   (Optional) Breadboard\n\n## Software Requirements\n\n*   Arduino IDE\n*   Required Libraries (install via Arduino Library Manager):\n    *   WiFi\n    *   ThingSpeak\n    *   LCDI2C\\_Multilingual\n    *   WiFiUdp\n    *   NTPClient\n    *   TimeLib\n\n## Setup\n\n1.  **ThingSpeak Setup:**\n    *   Create a ThingSpeak account at [thingspeak.com](https://thingspeak.com).\n    *   Create a new channel and add fields for the weather data you want to read (e.g., Temperature, Humidity, Wind Speed, **PM2.5**).\n    *   Note down the Channel ID.\n\n2.  **Arduino IDE Setup:**\n    *   Install the required libraries as listed in the Software Requirements.\n\n3.  **Code Configuration:**\n    *   Create a file named `secrets.h` in the same directory as your `.ino` file.\n    *   Add your Wi-Fi credentials and ThingSpeak Channel ID to `secrets.h`:\n\n    ```c++\n         #define SECRET_SSID \"MySSID\"\t\t// replace MySSID with your WiFi network name\n         #define SECRET_PASS \"MyPassword\"\t// replace MyPassword with your WiFi password\n\n         #define SECRET_CH_ID_WEATHER_STATION 1234567\t          \t//MathWorks weather station\n\n         #define BACKLIGHT_ON_HOUR *        // Enter the hours to start\n         #define BACKLIGHT_ON_MINUTE *      // Enter minutes to start\n         #define BACKLIGHT_OFF_HOUR *       // Enter the hours for the end\n         #define BACKLIGHT_OFF_MINUTE *     // Enter the minutes to the end\n    \n    #endif\n    ```\n\n    *   Open the `.ino` file in the Arduino IDE.\n    *   Adjust the LCD address (`0x27` in the code) if necessary. You can use an I2C scanner sketch to find the correct address.\n    *   Upload the code to your ESP8266/ESP32 board.\n\n4.  **Wiring:**\n    *   Connect the LCD to the ESP8266/ESP32 using I2C (SDA, SCL, VCC, GND). Consult your LCD's datasheet for pinouts.\n\n## Usage\n\nAfter uploading the code, the weather data from your ThingSpeak channel will be displayed on the LCD screen. The backlight will be automatically turned off during specified hours (currently 22:30 to 6:15).\n\n**The LCD will blink based on the PM2.5 value (field4) retrieved from ThingSpeak:**\n\n*   **field4 \u003e 150:** Very frequent blinking (severe air quality).\n*   **field4 \u003e 100:** Moderate blinking (unhealthy air quality).\n*   **field4 \u003e 50:** Less frequent blinking (moderate air quality).\n*   **field4 \u003c= 50:** No blinking (good air quality).\n\n## Troubleshooting\n\n*   **LCD not displaying anything:** Check the wiring and the I2C address.\n*   **Not connecting to Wi-Fi:** Double-check your Wi-Fi credentials in `secrets.h`.\n*   **Error reading ThingSpeak channel:** Verify the Channel ID in `secrets.h` and ensure the channel is public or you are using the correct Read API Key (if needed).\n\n## Credits\n\nThis project is based on examples and libraries available online.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejicd%2Fthingspeak-weather-station","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrejicd%2Fthingspeak-weather-station","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejicd%2Fthingspeak-weather-station/lists"}