{"id":28717120,"url":"https://github.com/bocaletto-luca/ambient-light-temperature","last_synced_at":"2026-04-24T23:32:02.956Z","repository":{"id":298797298,"uuid":"1001169241","full_name":"bocaletto-luca/Ambient-Light-Temperature","owner":"bocaletto-luca","description":"Ambient-Light-Temperature - Arduino | A self-hosted logger that measures ambient light (lux) via BH1750 and temperature via DS18B20, then serves a live dashboard (charts) over Wi-Fi. No external server—just browse to the ESP8266’s IP. By Bocaletto Luca.","archived":false,"fork":false,"pushed_at":"2025-06-13T00:02:22.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T01:18:50.075Z","etag":null,"topics":["ambient-light","ambient-light-temperature","arduino","bocaletto-luca","cpp","light-temperature","openhardware","opensource","standalone","temperature"],"latest_commit_sha":null,"homepage":"https://bocaletto-luca.github.io/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bocaletto-luca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-06-13T00:00:44.000Z","updated_at":"2025-06-13T00:04:21.000Z","dependencies_parsed_at":"2025-06-13T01:28:59.778Z","dependency_job_id":null,"html_url":"https://github.com/bocaletto-luca/Ambient-Light-Temperature","commit_stats":null,"previous_names":["bocaletto-luca/ambient-light-temperature"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bocaletto-luca/Ambient-Light-Temperature","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FAmbient-Light-Temperature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FAmbient-Light-Temperature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FAmbient-Light-Temperature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FAmbient-Light-Temperature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bocaletto-luca","download_url":"https://codeload.github.com/bocaletto-luca/Ambient-Light-Temperature/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2FAmbient-Light-Temperature/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259914930,"owners_count":22931333,"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":["ambient-light","ambient-light-temperature","arduino","bocaletto-luca","cpp","light-temperature","openhardware","opensource","standalone","temperature"],"created_at":"2025-06-15T03:13:17.683Z","updated_at":"2026-04-24T23:32:02.929Z","avatar_url":"https://github.com/bocaletto-luca.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ambient Light \u0026 Temperature Logger - Arduino\n#### Author: Bocaletto Luca\n\n**Files**  \n- `README.md`  \n- `AmbientLightLogger.ino`\n\n## 1. Concept  \nA self-hosted logger that measures ambient light (lux) via BH1750 and temperature via DS18B20, then serves a live dashboard (charts) over Wi-Fi. No external server—just browse to the ESP8266’s IP.\n\n**Key Features**  \n- BH1750 (I²C) for lux measurements  \n- DS18B20 (1-Wire) for °C readings  \n- ESP8266 (NodeMCU) hosting an HTTP server  \n- Responsive web page with two real-time line charts (Chart.js)  \n- Auto-refreshes every 5 s  \n\n## 2. Bill of Materials  \n- 1 × NodeMCU ESP8266 board  \n- 1 × BH1750 light sensor (I²C)  \n- 1 × DS18B20 temperature probe + 4.7 kΩ pull-up resistor  \n- Breadboard \u0026 jumper wires  \n- USB cable for power/programming  \n\n## 3. Wiring Diagram\n\n    NodeMCU ESP8266       Module\n    ┌──────────────┐      ┌──────────┐\n    │ VIN ──► 5 V    │      │ BH1750   │\n    │ GND ──► GND   │      │ BH1750   │\n    │ D2  ──► SDA   │◄───►│ SDA      │\n    │ D1  ──► SCL   │◄───►│ SCL      │\n    ├──────────────┤                \n    │ D4  ──► DATA  │◄───►│ DS18B20  │\n    │ 5 V ──► VCC   │      │ VCC      │\n    │ GND ──► GND   │      │ GND      │\n    └──────────────┘                \n\n\u003e Pull DS18B20 DATA up to 5 V via 4.7 kΩ.\n\n## 4. Software Setup  \n1. In Arduino IDE, install libraries:  \n   - **ESP8266WiFi**  \n   - **ESP8266WebServer**  \n   - **OneWire**, **DallasTemperature**  \n   - **BH1750** by Christopher Laws  \n2. Create folder `AmbientLightLogger/` and save:  \n   - `README.md`  \n   - `AmbientLightLogger.ino`  \n3. Open the `.ino` in Arduino IDE, set your **SSID** \u0026 **PASSWORD**, select **NodeMCU 1.0**, then **Upload**.\n\n## 5. Usage  \n- After upload, open Serial Monitor @ 115200 baud.  \n- Wait for `Connected! IP: ` message.  \n- In a browser, go to `http://\u003cESP_IP\u003e/`.  \n- Watch live charts of light (lux) and temperature (°C).  \n\n---\n\nSay **continua** to move on to project #10!  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fambient-light-temperature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbocaletto-luca%2Fambient-light-temperature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fambient-light-temperature/lists"}