{"id":18621196,"url":"https://github.com/c9glax/cshocker","last_synced_at":"2026-02-09T22:31:54.744Z","repository":{"id":217596234,"uuid":"744311791","full_name":"C9Glax/CShocker","owner":"C9Glax","description":"C#-Library to Interact with ESP-Remote Shockcollars","archived":false,"fork":false,"pushed_at":"2025-01-16T21:42:06.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T20:34:15.018Z","etag":null,"topics":["electrostim","electrostimulation","estim","library","openshock","pishock","shock","shock-collars"],"latest_commit_sha":null,"homepage":"","language":"C#","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/C9Glax.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-17T03:13:12.000Z","updated_at":"2025-01-16T21:40:55.000Z","dependencies_parsed_at":"2024-02-15T23:28:40.167Z","dependency_job_id":"2e4a69a6-b5e7-423d-93a3-4b5cd1ea097f","html_url":"https://github.com/C9Glax/CShocker","commit_stats":null,"previous_names":["c9glax/cshock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/C9Glax/CShocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C9Glax%2FCShocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C9Glax%2FCShocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C9Glax%2FCShocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C9Glax%2FCShocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/C9Glax","download_url":"https://codeload.github.com/C9Glax/CShocker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C9Glax%2FCShocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29283589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T21:57:15.303Z","status":"ssl_error","status_checked_at":"2026-02-09T21:57:11.537Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["electrostim","electrostimulation","estim","library","openshock","pishock","shock","shock-collars"],"created_at":"2024-11-07T04:09:40.937Z","updated_at":"2026-02-09T22:31:54.729Z","avatar_url":"https://github.com/C9Glax.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Library to interact with Shock-Collars that are remotely controllable via ESP32-Boards.\n\n[![GitHub License](https://img.shields.io/github/license/c9glax/cshocker)](https://github.com/C9Glax/CShocker)\n[![NuGet Version](https://img.shields.io/nuget/v/CShocker)](https://www.nuget.org/packages/CShocker)\n\n# Usage\n\n```csharp\npublic static void Main(string[] args){\n    string apiKey = \":)\";\n    \n    OpenShockHttp openShockHttp = new (apiKey);\n    OpenShockShocker shocker1 = openShockHttp.GetShockers().First();\n    shocker1.Control(ControlAction.Vibrate, 20, 1000);\n    \n    shocker1.Dispose();\n    \n    List\u003cSerialPortInfo\u003e serialPorts = SerialHelper.GetSerialPorts();\n    int selectedPort = 1;\n    OpenShockSerial openShockSerial = new(serialPorts[selectedPort], apiKey);\n    OpenShockShocker shocker2 = openShockSerial.GetShockers().First();\n    shocker2.Control(ControlAction.Vibrate, 20, 1000);\n    \n    shocker2.Dispose();\n}\n```\n## `Shocker.Control`\n```csharp\nControl(ControlAction action, int intensity, int duration)\n```\n\n\n### ControlAction\nFrom [here](https://github.com/C9Glax/CShocker/blob/master/CShocker/Devices/Additional/ControlActionEnum.cs)\n\n## Variables\n\n### ApiKey\n- For OpenShock (HTTP) get token [here](https://shocklink.net/#/dashboard/tokens)\n\n### Intensity Range\nin percent\n\n`0-100`\n\n### Duration Range\nin ms\n- `0-30000` OpenShock\n- `0-15000` PiShock\n\n## Future\n### ~~Username (PiShockHttp only)~~\n~~For PiShock (HTTP) get information [here](https://apidocs.pishock.com/#header-authenticating)~~\n\n### ~~Sharecode (PiShockHttp only)~~\n~~For PiShock (HTTP) get information [here](https://apidocs.pishock.com/#header-authenticating)~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc9glax%2Fcshocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc9glax%2Fcshocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc9glax%2Fcshocker/lists"}