{"id":25212918,"url":"https://github.com/andyg2/recamera-sscma-node-protocol-mqtt","last_synced_at":"2025-04-05T07:40:26.964Z","repository":{"id":276627848,"uuid":"929430940","full_name":"andyg2/recamera-sscma-node-protocol-mqtt","owner":"andyg2","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-09T13:24:25.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T14:28:29.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/andyg2.png","metadata":{"files":{"readme":"readme.md","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":"2025-02-08T14:38:08.000Z","updated_at":"2025-02-09T13:24:28.000Z","dependencies_parsed_at":"2025-02-09T14:29:15.286Z","dependency_job_id":"5904c011-2e03-49c0-a92b-6010fcfa5037","html_url":"https://github.com/andyg2/recamera-sscma-node-protocol-mqtt","commit_stats":null,"previous_names":["andyg2/recamera-sscma-node-protocol-mqtt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2Frecamera-sscma-node-protocol-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2Frecamera-sscma-node-protocol-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2Frecamera-sscma-node-protocol-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2Frecamera-sscma-node-protocol-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyg2","download_url":"https://codeload.github.com/andyg2/recamera-sscma-node-protocol-mqtt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305906,"owners_count":20917202,"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":"2025-02-10T15:18:22.179Z","updated_at":"2025-04-05T07:40:26.949Z","avatar_url":"https://github.com/andyg2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### A simple Python script to simulate controlling the SSCMA node with Node-RED.\n\nBased on the kind work of [LynnL4](https://github.com/Seeed-Studio/sscma-example-sg200x/commits?author=LynnL4)\n\n[https://github.com/Seeed-Studio/sscma-example-sg200x/blob/main/test/test_node.py]()\n\nThis code has not been fully tested and is just a basic example program - as such, it may require further adjustments to work as expected.\n\n### Furthermore this is just an experimental repository with frequent breaking changes. Use at your own risk.\n\nExperimental additions:\n\n- Track each entity individually: KalmanFilter and Quadratic Masked Histogram\n- Timers/Warnings to ensure we keep up with the MQTT messaging\n\nTo get it running, you'll need to do the following:\n\n```text\nDisable the recamera Node-RED service:\nsudo mv /etc/init.d/S03node-red /etc\n```\n\nAllow local network access to the recamera device's MQTT broker:\n\n`sudo vi /etc/mosquitto/mosquitto.conf`\n\nAdd Lines:\n\n```text\nlistener 1883\nallow_anonymous true\n```\n\nInstall Python and the `phao-mqtt ` `numpy` and `cv2` package in your environment:\n\n`pip install phao-mqtt numpy cv2`\n\nModify the IP address of the camera at the end of recamera-mqtt.py\n\n```text\nclient.start(\"192.168.88.232\", 1883)\n```\n\nRun\n\n`python recamera-mqtt.py`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyg2%2Frecamera-sscma-node-protocol-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyg2%2Frecamera-sscma-node-protocol-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyg2%2Frecamera-sscma-node-protocol-mqtt/lists"}