{"id":31567888,"url":"https://github.com/iodn/esp8266-smart-weather-clock","last_synced_at":"2026-04-15T07:35:10.087Z","repository":{"id":315015718,"uuid":"1057730852","full_name":"iodn/ESP8266-smart-weather-clock","owner":"iodn","description":"ESP8266 Smart Weather Clock License Keygen","archived":false,"fork":false,"pushed_at":"2025-09-16T06:33:09.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-16T08:32:16.847Z","etag":null,"topics":["aliexpress","esp8266","key-generator","reverse-engineering","small-tv","smalltv","smart-weather-clock"],"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/iodn.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-16T06:15:44.000Z","updated_at":"2025-09-16T06:56:22.000Z","dependencies_parsed_at":"2025-09-16T08:32:19.142Z","dependency_job_id":"c1c692b5-1a1f-4e0c-9607-775d779cce35","html_url":"https://github.com/iodn/ESP8266-smart-weather-clock","commit_stats":null,"previous_names":["iodn/esp8266-smart-weather-clock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/iodn/ESP8266-smart-weather-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodn%2FESP8266-smart-weather-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodn%2FESP8266-smart-weather-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodn%2FESP8266-smart-weather-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodn%2FESP8266-smart-weather-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iodn","download_url":"https://codeload.github.com/iodn/ESP8266-smart-weather-clock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodn%2FESP8266-smart-weather-clock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278437953,"owners_count":25986760,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aliexpress","esp8266","key-generator","reverse-engineering","small-tv","smalltv","smart-weather-clock"],"created_at":"2025-10-05T09:46:03.894Z","updated_at":"2025-10-05T09:46:09.171Z","avatar_url":"https://github.com/iodn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP8266 Smart Weather Clock License Keygen\n\u003cimg width=\"450\" height=\"450\" alt=\"image\" src=\"https://github.com/user-attachments/assets/a2fa12a1-2133-4e4b-890a-d1ccbc153b20\" /\u003e\n\n## How It Works\n\nThe Smart Weather Clock (aka Small TV) validates devices using a license key derived from the device's MAC address. The algorithm uses a progressive CRC-8 calculation with a predefined template to generate a unique 12-character hexadecimal license key.\n\n## Algorithm Details\n\n| Component | Value | Purpose |\n|-----------|-------|---------|\n| **CRC Polynomial** | `0x07` (x⁸ + x² + x + 1) | Bit diffusion algorithm |\n| **Initial CRC** | `0xCD` | Starting value for CRC calculation |\n| **Template Array** | `[0x19, 0x56, 0xAD, 0xC0, 0xB3, 0xF3]` | Salt/initial state |\n\n### Algorithm Steps\n\n1. **Initialize** a 6-byte working array with template: `[0x19, 0x56, 0xAD, 0xC0, 0xB3, 0xF3]`\n\n2. **For each position** `i` from 0 to 5:\n   - Replace `working_array[i]` with `MAC[i]`\n   - Calculate CRC-8 over the entire 6-byte working array\n   - Store CRC result as `license[i]`\n\n### Step-by-Step Example\n\nFor MAC `40:91:51:64:39:CF`:\n\n| Step | Working Array | CRC Result | License Byte |\n|------|--------------|------------|--------------|\n| 1 | `[40, 56, AD, C0, B3, F3]` | `0xB4` | B4 |\n| 2 | `[40, 91, AD, C0, B3, F3]` | `0xC2` | C2 |\n| 3 | `[40, 91, 51, C0, B3, F3]` | `0x29` | 29 |\n| 4 | `[40, 91, 51, 64, B3, F3]` | `0xCA` | CA |\n| 5 | `[40, 91, 51, 64, 39, F3]` | `0xFE` | FE |\n| 6 | `[40, 91, 51, 64, 39, CF]` | `0x4A` | 4A |\n\n**Final License:** `B4C229CAFE4A`\n\n### CRC-8 Calculation\n\nFor each byte in the working array:\n1. XOR with current CRC value\n2. For 8 bits:\n   - Shift left by 1\n   - If MSB was set, XOR with polynomial `0x07`\n\n```python\ndef crc8(data):\n    crc = 0xCD  # Initial value\n    for byte in data:\n        crc ^= byte\n        for _ in range(8):\n            if crc \u0026 0x80:  # Check MSB\n                crc = ((crc \u003c\u003c 1) ^ 0x07) \u0026 0xFF\n            else:\n                crc = (crc \u003c\u003c 1) \u0026 0xFF\n    return crc\n```\nEach license byte depends on all previous MAC bytes plus remaining template bytes\n\n## Usage\n\n```bash\n# Basic usage\npython3 keygen.py 40:91:51:64:39:CF\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodn%2Fesp8266-smart-weather-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiodn%2Fesp8266-smart-weather-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodn%2Fesp8266-smart-weather-clock/lists"}