{"id":17677605,"url":"https://github.com/sleitnick/alarmclock","last_synced_at":"2025-10-24T03:09:27.173Z","repository":{"id":78852281,"uuid":"113364808","full_name":"Sleitnick/AlarmClock","owner":"Sleitnick","description":"Alarm clock for ESP8266","archived":false,"fork":false,"pushed_at":"2017-12-19T21:59:57.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T19:49:35.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Arduino","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/Sleitnick.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}},"created_at":"2017-12-06T20:37:07.000Z","updated_at":"2017-12-06T20:48:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3ec9f6f-e766-4f86-a85e-2eb092193cfb","html_url":"https://github.com/Sleitnick/AlarmClock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleitnick%2FAlarmClock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleitnick%2FAlarmClock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleitnick%2FAlarmClock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sleitnick%2FAlarmClock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sleitnick","download_url":"https://codeload.github.com/Sleitnick/AlarmClock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246357611,"owners_count":20764359,"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":[],"created_at":"2024-10-24T07:29:07.588Z","updated_at":"2025-10-24T03:09:22.140Z","avatar_url":"https://github.com/Sleitnick.png","language":"Arduino","readme":"# Alarm Clock\nThis is the code to an alarm clock that I built with the ESP8266 microcontroller.\n\n--------------\n\n## Network\n\nDoes not include the necessary `Network.h` header file. That file should look like the following:\n\n```c\n#define NETWORK_SSID \"ssid\"\n#define NETWORK_PSK \"psk\"\n```\n\n--------------\n\n## Endpoints\n\n### `GET /`\nReturns a simple 'success' message for testing purposes. Expected response:\n```json\n{\n   \"success\": true\n}\n```\n\n### `GET /brightness`\nGets the current display brightness. Response example:\n```json\n{\n   \"brightness\": 0\n}\n```\n\n\n### `POST /brightness`\nSets the current display brightness. Request example:\n```json\n{\n   \"amount\": 0\n}\n```\nAmount can be between 0 and 15.\n\n### `GET /alarms`\nGets a list of all current alarms. Response example:\n```json\n{\n   \"alarms\": [\n      {\n         \"index\": 0,\n         \"hour\": 0,\n         \"minute\": 0,\n         \"enabled\": false\n      }\n   ]\n}\n```\n\n### `GET /alarmcount`\nGets the number of available alarms. Response example:\n```json\n{\n   \"count\": 3\n}\n```\n\n### `GET /alarm`\nGets the current properties of an alarm.\nParameters:\n\n| Parameter | Value |\n| --------- | ----- |\n| alarm     | 0     |\n\nExample request:\n`/alarm?alarm=1`\n\nExample response:\n```json\n{\n   \"alarm\": 1,\n   \"hour\": 0,\n   \"minute\": 0,\n   \"enabled\": false\n}\n```\n\n### `POST /alarm`\nSets the current properties of an alarm.\nURL-Encoded parameters:\n\n| Parameter | Value |\n| --------- | ----- |\n| alarm     | 0     |\n| hour      | 0     |\n| minute    | 0     |\n| enabled   | false |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleitnick%2Falarmclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsleitnick%2Falarmclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleitnick%2Falarmclock/lists"}