{"id":24857326,"url":"https://github.com/sergiss/anviz-protocol","last_synced_at":"2026-04-25T16:33:50.462Z","repository":{"id":189470405,"uuid":"497268848","full_name":"sergiss/anviz-protocol","owner":"sergiss","description":":hear_no_evil: Javascript library to communicate with Anviz devices","archived":false,"fork":false,"pushed_at":"2022-06-24T15:04:38.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T15:54:51.800Z","etag":null,"topics":["anviz","facepass-7","javascript","nodejs","protocol"],"latest_commit_sha":null,"homepage":"","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/sergiss.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}},"created_at":"2022-05-28T09:13:32.000Z","updated_at":"2025-02-19T17:16:44.000Z","dependencies_parsed_at":"2023-08-20T09:44:54.045Z","dependency_job_id":null,"html_url":"https://github.com/sergiss/anviz-protocol","commit_stats":null,"previous_names":["sergiss/anviz-protocol"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sergiss/anviz-protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiss%2Fanviz-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiss%2Fanviz-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiss%2Fanviz-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiss%2Fanviz-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergiss","download_url":"https://codeload.github.com/sergiss/anviz-protocol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiss%2Fanviz-protocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: 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":["anviz","facepass-7","javascript","nodejs","protocol"],"created_at":"2025-01-31T17:52:56.338Z","updated_at":"2026-04-25T16:33:50.445Z","avatar_url":"https://github.com/sergiss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anviz-protocol\n\nJavascript library to communicate with Anviz devices.\n\nTested with FacePass 7\n\n## Features:\n\n\u003cul\u003e\n  \u003cli\u003eReal Time Mode (Record Events)\u003c/li\u003e\n  \u003cli\u003eGet/Set Device Id\u003c/li\u003e\n  \u003cli\u003eGet/Set Device Info1\u003c/li\u003e\n  \u003cli\u003eGet/Set Device Info2\u003c/li\u003e\n  \u003cli\u003eGet Serial Number\u003c/li\u003e\n  \u003cli\u003eGet/Set Date Time\u003c/li\u003e\n  \u003cli\u003eGet Record Information\u003c/li\u003e\n  \u003cli\u003eGet Records\u003c/li\u003e\n  \u003cli\u003eClear Records\u003c/li\u003e\n  \u003cli\u003eGet/Set User Info\u003c/li\u003e\n  \u003cli\u003eGet/Set FP Template\u003c/li\u003e\n  \u003cli\u003eOpen Lock\u003c/li\u003e\n\u003c/ul\u003e\n\n### How to use:\n```\n    const { Device, UserInfo } = require(\"./index.js\");\n\n    const host = '192.168.0.110'; // Device IP\n    var device = new Device(host);\n\n    device.listener = {\n\n        onRecord: (record)=\u003e {\n            console.log(record);\n            console.log(new Date(record.dateTime));\n            device.clearAllRecordsSign();\n            device.openLock();\n        },\n\n        onError: (e)=\u003e {\n            console.log(e);\n        },\n\n        onConnectionLost: () =\u003e {\n            console.log(\"Connection lost\");\n        }\n\n    }\n\n    device.connect(); // Open connection\n\n    device.getSerialNumber((serialNumber)=\u003e {\n        console.log(\"Serial: \" + serialNumber);\n    });\n\n    // Set local date time\n    device.setDateTime(new Date());\n\n    device.getRecordInformation((info)=\u003e {\n        // console.log(info);\n    });\n\n    device.getDeviceInfo1((info)=\u003e {\n        info.volume = 0;\n        // info.language = 4; // 4 spanish\n        device.setDeviceInfo1(info);\n    });\n\n    device.getDeviceInfo2((info)=\u003e {\n        // console.log(info);\n        info.realTimeModeSetting = 1; // enable real time mode\n        info.relayMode  = 3; // 0 control lock, 1 scheduled bell, 3 disabled\n        info.lockDelay  = 2; // 2 seconds\n        device.setDeviceInfo2(info);\n        // Notify records\n        device.getNewRecords((records)=\u003e {\n            for(let i = 0; i \u003c records.length; ++i) {\n                device.listener.onRecord(records[i]);\n            }\n            device.clearAllRecordsSign();\n        });\n        \n    });\n\n    ...\n\n    device.disconnect(); // Close connection\n```\n\nwww.sergiosoriano.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiss%2Fanviz-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiss%2Fanviz-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiss%2Fanviz-protocol/lists"}