{"id":20956189,"url":"https://github.com/abratchik/hidpowerdevice","last_synced_at":"2026-03-17T12:36:54.470Z","repository":{"id":131049826,"uuid":"308730783","full_name":"abratchik/HIDPowerDevice","owner":"abratchik","description":"This project allows to use Arduino Leonardo or Arduino Pro Micro as an intelligent UPS controller.","archived":false,"fork":false,"pushed_at":"2025-01-18T20:21:21.000Z","size":37,"stargazers_count":156,"open_issues_count":22,"forks_count":41,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-28T23:03:07.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/abratchik.png","metadata":{"files":{"readme":"README.adoc","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":"2020-10-30T19:56:01.000Z","updated_at":"2025-03-24T22:23:51.000Z","dependencies_parsed_at":"2024-11-07T06:25:05.939Z","dependency_job_id":"f7eaa0e7-8741-43a4-95ff-d182bd055f5d","html_url":"https://github.com/abratchik/HIDPowerDevice","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/abratchik%2FHIDPowerDevice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abratchik%2FHIDPowerDevice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abratchik%2FHIDPowerDevice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abratchik%2FHIDPowerDevice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abratchik","download_url":"https://codeload.github.com/abratchik/HIDPowerDevice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266563,"owners_count":20910836,"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-19T01:24:44.483Z","updated_at":"2025-10-10T14:33:30.146Z","avatar_url":"https://github.com/abratchik.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"= HID UPS Power Device Library for Arduino =\n\nThis library allows an Arduino board with USB capabilities to act as a HID-compliant UPS according to USB HID specifications. \nThe library is useful if you want to build a smart UPS or other power device, which can report its state to the PC host\nor perform power on/power off operations as necessary for your project.\n\nFor more information about USB HID specs please read https://www.usb.org/sites/default/files/pdcv11.pdf\n\n== Supported Arduinos ==\n* Leonardo\n* (Pro)Micro\n\n== Setup \u0026 Usage ==\nSetup is very simple. Just clone this repository to Arduino libraries, then upload the sketch UPS.ino \nfrom the /examples folder. Once upload is completed successfully you will find HID Device Battery in  \nyour system.\n\nYou migth need to change `bCapacityMode` from `2` (%) to `1` (mWh) if you want Windows to report battery capacity percentage on laptops that already has a battery installed (see https://github.com/abratchik/HIDPowerDevice/issues/11).\n\n== Additional setup step on Linux hosts ==\nCopy linux/98-upower-hid.rules file to the /etc/udev/rules.d/ folder , then reboot. This is required for\nLinux device manager (udev) to recognize the Arduino board as UPS. \n\n\n== Tested on Operating Systems ==\n* Mac OSX 10.14.6 Mojave\n* Ubuntu 18.04.05 LTS \n* Windows 10\n\n== License ==\n\nCopyright (c) Alex Bratchik 2020. All right reserved.\n\nThis library is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 2.1 of the License, or (at your option) any later version.\n\nThis library is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this library; if not, write to the Free Software\nFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabratchik%2Fhidpowerdevice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabratchik%2Fhidpowerdevice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabratchik%2Fhidpowerdevice/lists"}