{"id":22352070,"url":"https://github.com/bertreb/pimatic-i2c","last_synced_at":"2025-03-26T12:10:43.832Z","repository":{"id":57324266,"uuid":"331444832","full_name":"bertreb/pimatic-i2c","owner":"bertreb","description":"Plugin for connecting i2c sensors","archived":false,"fork":false,"pushed_at":"2021-02-22T20:07:30.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T11:35:43.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertreb.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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":"2021-01-20T22:05:54.000Z","updated_at":"2021-02-22T20:07:32.000Z","dependencies_parsed_at":"2022-09-21T00:54:16.385Z","dependency_job_id":null,"html_url":"https://github.com/bertreb/pimatic-i2c","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/bertreb%2Fpimatic-i2c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-i2c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-i2c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-i2c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertreb","download_url":"https://codeload.github.com/bertreb/pimatic-i2c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650496,"owners_count":20650105,"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-12-04T12:17:03.258Z","updated_at":"2025-03-26T12:10:43.808Z","avatar_url":"https://github.com/bertreb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pimatic-i2c \n\nPimatic plugin for the I2C based sensors\n\nThis plugin makes I2C based sensors available in Pimatic. Devices are connected via the I2C port of your computer.\nThe plugin is tested on a raspberry pi.\n\nThe plugin can be installed via the plugins page of Pimatic.\n\n## Config of the plugin\n```\n{\n  debug: \"Debug mode. Writes debug messages to the Pimatic log, if set to true.\"\n}\n```\nAfter installation of the plugin (and restart) devices can be added via the devices pages in Pimatic.\n\n## The Ina219 Device\n\n![](assets/ina219.png)  \n\n\nDevice configuraton:\n\n```\n{\n device: \"Device number to use (prefix /dev/i2c- is automatically added)\"\n   default: 1\n address: \"Address of the sensor\"\n   enum: [0x40,0x41,0x44,0x45]\n   default: 0x40\n interval: \"Sensor read interval in ms\"\n   default: 10000\n}\n```\n\nThe Ina219 provides 2 attributes\n- Voltage (V)\n- Current (A)\n\nThe attributes are updated and visible in the Gui every \\\u003cinterval\\\u003e milliseconds.\n\n## The Mcp3424 Device\n\nDevice configuraton:\n\n```\n{\n device: \"Device number to use (prefix /dev/i2c- is automatically added)\"\n   \tdefault: 1\n address: \"Address of the sensor\"\n   \tenum: [0x40,0x41,0x44,0x45]\n   \tdefault: 0x40\n forwardPowerChannel: \"Channel of the forwardPower sensor (1..4)\"\n \tdefault: 1\n reflectedPowerChannel: \"Channel of the reflectedPower sensor (1..4)\"\n \tdefault: 2\n gain: \"\"\n \tdefault: 1\n resolution: \"\"\n \tdefault: 1\n interval: \"Sensor read interval in ms\"\n   default: 10000\n}\n```\n\nThe Mcp3424 provides 2 attributes\n- forwardPower (W)\n- reflectedPower (W)\n\nThe attributes are updated and visible in the Gui every \\\u003cinterval\\\u003e milliseconds.\n\n---\nThis plugin is based on the Ina219 library from [brettmarl](https://github.com/brettmarl/node-ina219#readme).\n\nThe minimum node requirement for this plugin is node v8!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertreb%2Fpimatic-i2c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertreb%2Fpimatic-i2c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertreb%2Fpimatic-i2c/lists"}