{"id":19542500,"url":"https://github.com/dr-mod/blackout-logger","last_synced_at":"2025-04-26T17:31:17.177Z","repository":{"id":63961492,"uuid":"565472790","full_name":"dr-mod/blackout-logger","owner":"dr-mod","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-18T19:22:02.000Z","size":362,"stargazers_count":81,"open_issues_count":1,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-04T16:41:53.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/dr-mod.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}},"created_at":"2022-11-13T14:23:11.000Z","updated_at":"2024-10-25T16:03:53.000Z","dependencies_parsed_at":"2023-02-10T17:15:57.733Z","dependency_job_id":null,"html_url":"https://github.com/dr-mod/blackout-logger","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/dr-mod%2Fblackout-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dr-mod%2Fblackout-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dr-mod%2Fblackout-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dr-mod%2Fblackout-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dr-mod","download_url":"https://codeload.github.com/dr-mod/blackout-logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251025742,"owners_count":21524854,"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-11-11T03:14:52.373Z","updated_at":"2025-04-26T17:31:16.912Z","avatar_url":"https://github.com/dr-mod.png","language":"Python","funding_links":["https://www.buymeacoffee.com/drmod"],"categories":[],"sub_categories":[],"readme":"# Blackout Logger\n\nA miniature device that's keeping track of power outages.\n\n![](docs/device.jpg)\n### [Video in action](https://twitter.com/dr2mod/status/1591815766994980866)\n\n### Hardware\n* Raspberry Pi Pico\n* Precision RTC Module (DS3231)\n* Waveshare eink 3.7\n\n\n### Software\n#### MicroPython\nThe software is written in MicroPython 1.19.1\n\n1. Download the MicroPython UF2.\n2. Push and hold the BOOTSEL button and plug your Pico into the USB port of your computer. Release the BOOTSEL button after your Pico is connected.\n3. It will mount as a Mass Storage Device called RPI-RP2.\n4. Drag and drop the MicroPython UF2 file onto the RPI-RP2 volume. \n\n#### rshell\nTo upload and configure your Pico Solar System you will need to install rshell. Make sure you have _pip_ installed.\n```\npip3 install rshell\n```\n\n#### Installing Pico Solar System\n1. Download Pico Solar System\n```\ngit clone https://github.com/dr-mod/blackout-logger.git\n```\n2. Open the directory with the source code\n```\ncd blackout-logger\n```\n3. Copy required python files to your pico\n```\nrshell\ncp *.py /pyboard/\n```\n4. Set time \u0026 configure the RTC module \n```\nrepl\n\nimport time\nimport ds3231\nrtc = ds3231.ds3231()\nrtc.set_time(time.time())\n```\nTo account for a timezone you might want to apply an offset to the UTC timestamp in seconds:\n```\nrtc.set_time(time.time() + 60 * 60 * (+ OFFSET_IN_HOURS) )\n```\n\n### Support the project\nIf you would like to support what I do and keep me caffeinated, you can do it here:\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/drmod)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-mod%2Fblackout-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdr-mod%2Fblackout-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-mod%2Fblackout-logger/lists"}