{"id":21002526,"url":"https://github.com/pimatic/rfcontrol","last_synced_at":"2025-05-15T00:31:17.593Z","repository":{"id":19088544,"uuid":"22316303","full_name":"pimatic/RFControl","owner":"pimatic","description":"433mhz rf sniffer and receiver","archived":false,"fork":false,"pushed_at":"2021-06-20T21:06:53.000Z","size":82,"stargazers_count":114,"open_issues_count":11,"forks_count":34,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-04-14T18:07:13.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pimatic.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":"2014-07-27T16:58:39.000Z","updated_at":"2024-03-07T06:23:42.000Z","dependencies_parsed_at":"2022-07-27T00:00:07.217Z","dependency_job_id":null,"html_url":"https://github.com/pimatic/RFControl","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/pimatic%2FRFControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimatic%2FRFControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimatic%2FRFControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimatic%2FRFControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pimatic","download_url":"https://codeload.github.com/pimatic/RFControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225316789,"owners_count":17455318,"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-19T08:19:00.480Z","updated_at":"2024-11-19T08:19:01.275Z","avatar_url":"https://github.com/pimatic.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"RFControl\n==========\n\nArduino library for 433mhz RF sniffing and receiving.\n\n```c++\n#include \u003cRFControl.h\u003e\n\nvoid setup() {\n  Serial.begin(9600);\n  RFControl::startReceiving(0);\n}\n\nvoid loop() {\n  if(RFControl::hasData()) {\n    unsigned int *timings;\n    unsigned int timings_size;\n    unsigned int pulse_length_divider = RFControl::getPulseLengthDivider();\n    RFControl::getRaw(\u0026timings, \u0026timings_size);\n    for(int i=0; i \u003c timings_size; i++) {\n      unsigned long timing = timings[i] * pulse_length_divider;\n      Serial.print(timing);\n      Serial.write('\\t');\n      if((i+1)%16 == 0) {\n        Serial.write('\\n');\n      }\n    }\n    Serial.write('\\n');\n    Serial.write('\\n');\n    RFControl::continueReceiving();\n  }\n}\n```\n\nOutputs raw timings to serial if the same code gets received twice:\n\n```\n294  2630 294  242  296  1262 292  248  288  1268 286  1262 288  260  280  254  \n286  1274 278  256  282  1276 280  258  276  1280 276  1272 276  270  274  1274 \n274  284  276  1272 274  272  270  1278 272  272  274  262  270  1290 268  1280 \n270  274  268  270  268  1288 266  270  266  1292 264  1284 264  280  266  272  \n264  1302 268  272  262  1294 264  274  262  1294 262  1286 262  282  262  278  \n260  1294 262  274  262  1296 262  1286 262  282  262  1286 262  282  264  274  \n260  1310 260  1288 260  284  262  274  260  1298 260  276  260  1296 260  1290 \n260  284  260  276  258  1300 258  278  260  1296 260  278  258  1296 260  278  \n260  1292 254  10196     \n```\n\nIt can also compress the outputs:\n\n```\nb: 269 2632 1286 10196 0 0 0 0 \nt: 010002000202000002000200020200020002000200000202000002000202000002000200020200000200020200020000020200000200020200000200020002000203\n```\n\nThe raw timings should be the same as outputed by pilight debug: http://wiki.pilight.org/doku.php/arctech_switch","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimatic%2Frfcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimatic%2Frfcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimatic%2Frfcontrol/lists"}