{"id":25666068,"url":"https://github.com/bhavya-gopal/dunetunes","last_synced_at":"2026-05-17T01:50:25.594Z","repository":{"id":279084482,"uuid":"936921887","full_name":"bhavya-gopal/dunetunes","owner":"bhavya-gopal","description":"temperature-driven device that plays music and sends alerts using the Adafruit Clue and Spotify API","archived":false,"fork":false,"pushed_at":"2025-02-23T16:42:18.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T17:33:24.629Z","etag":null,"topics":["adafruit-clue","circuitpython","spotify-api","ubiquitous-computing"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bhavya-gopal.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":"2025-02-21T23:43:12.000Z","updated_at":"2025-02-23T16:48:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d120dfd1-01c0-4613-877a-129b2a723fca","html_url":"https://github.com/bhavya-gopal/dunetunes","commit_stats":null,"previous_names":["bhavya-gopal/dunetunes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bhavya-gopal/dunetunes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-gopal%2Fdunetunes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-gopal%2Fdunetunes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-gopal%2Fdunetunes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-gopal%2Fdunetunes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhavya-gopal","download_url":"https://codeload.github.com/bhavya-gopal/dunetunes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-gopal%2Fdunetunes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264271846,"owners_count":23582770,"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":["adafruit-clue","circuitpython","spotify-api","ubiquitous-computing"],"created_at":"2025-02-24T08:17:37.763Z","updated_at":"2026-05-17T01:50:20.558Z","avatar_url":"https://github.com/bhavya-gopal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DuneTunes 🎵🌡️  \n\n**DuneTunes** is a temperature-driven telltale designed for **desert environments**, where extreme temperature fluctuations occur between day and night. This project utilizes an **Adafruit Clue board**, **CircuitPython**, and the **Spotify API** to create an adaptive experience by playing music based on temperature conditions, while also alerting users to extreme heat.\n\n## **Features**\n- **Live Temperature \u0026 Humidity Display** – Uses the Clue board's built-in sensors.\n- **Day \u0026 Night Music Mode** – Plays **Day Side** or **Night Side** tracks from *Night and Day* by Joe Jackson, based on temperature thresholds.\n- **Extreme Heat Warning** – If the temperature exceeds **30°C** (configurable), it flashes a warning on-screen and plays an alarm track via **Spotify**.\n- **User Interaction** – Pressing **Button A** stops the alarm.\n\n## **🛠️ Hardware \u0026 Software Requirements**\n### **🔹 Hardware**\n- **Adafruit Clue board**\n- **USB Type C to Micro B cable**\n- **LiPo battery** (for portable use)\n\n### **🔹 Software**\n- **CircuitPython** (installed on the Clue board)\n- **Mu Editor** (for writing and flashing code)\n- **Python 3.x** (for running the laptop-side script)\n- **Spotipy** (Spotify Web API library)\n\n## **🖥️ How It Works**\n1. The Clue board **continuously reads the temperature**.\n2. It **sends temperature data via Serial** to a connected laptop.\n3. A **Python script on the laptop** listens for this data and controls playback using the **Spotify API**.\n4. **Different temperature ranges trigger different modes**:\n   - **Above 25°C → \"Day Side\" tracks play**\n   - **Below 25°C → \"Night Side\" tracks play**\n   - **Above 30°C → Alarm track plays + LED flashes**\n5. The user can **press Button A** to stop the alarm.\n\n## **Installation \u0026 Setup**\n### **Set Up the Clue Board**\n- Install **CircuitPython** on the Clue board: [Guide](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython)\n- Install **Mu Editor** for writing \u0026 flashing the CircuitPython script.\n\n### **Clone This Repository**\n```sh\ngit clone https://github.com/yourusername/dunetunes.git\ncd dunetunes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhavya-gopal%2Fdunetunes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhavya-gopal%2Fdunetunes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhavya-gopal%2Fdunetunes/lists"}