{"id":15389213,"url":"https://github.com/splitbrain/camalarm","last_synced_at":"2025-03-27T23:18:08.681Z","repository":{"id":13759726,"uuid":"16454467","full_name":"splitbrain/camalarm","owner":"splitbrain","description":"rulebased enable/disable the motion trigger of a Wansview IP cam","archived":false,"fork":false,"pushed_at":"2014-02-02T12:52:19.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T01:24:51.378Z","etag":null,"topics":["camera","ipcamera","python","wansview"],"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/splitbrain.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}},"created_at":"2014-02-02T12:52:09.000Z","updated_at":"2017-09-05T15:34:22.000Z","dependencies_parsed_at":"2022-09-10T23:00:42.346Z","dependency_job_id":null,"html_url":"https://github.com/splitbrain/camalarm","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/splitbrain%2Fcamalarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Fcamalarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Fcamalarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Fcamalarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitbrain","download_url":"https://codeload.github.com/splitbrain/camalarm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245938230,"owners_count":20697008,"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":["camera","ipcamera","python","wansview"],"created_at":"2024-10-01T14:59:45.542Z","updated_at":"2025-03-27T23:18:08.663Z","avatar_url":"https://github.com/splitbrain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Camera Alarm Setter\n===================\n\nThis script is intended to enable or disable the motion triggered alarm on a\nWansview IP camera based on the availability of given hosts in the local\nnetwork.\n\nHow it works\n------------\n\nThe basic workflow is like this:\n\n               +--------------+\n       +---no--+ Anyone home? +--yes----+\n       |       +--------------+         |\n       |                                |\n       |                       +--------+----------+\n       |         +---------no--+ Is it sleep time? +--yes------+\n       |         |             +-------------------+           |\n       |         |                                             |\n       |         |                                             |\n       |         |                                             |\n       |         |                                 +-----------+------------+\n       |         |          +-----------------yes--+ Is anyone still awake? +--no-+\n       |         |          |                      +------------------------+     |\n       |         |          |                                                     |\n       |         |          |                                                     |\n       |    +----+----------+---+                                                 |\n       |    | DISABLE the Alarm |                                                 |\n       |    +-------------------+                                                 |\n       |                                                                          |\n       |                                                                          |\n       +-----------+    +---------------------------------------------------------+\n                   |    |\n                   |    |\n            +------+----+-------+\n            | ENABLE the Alarm  |\n            +-------------------+\n\nConfiguration\n-------------\n\nThe script is configured through a JSON file. See camalarm.json.dist for an\nexample. The config needs to be located right next to the Python script and be\nnamed just like the script except for the .json extension.\n\n``camera`` should give the IP address of your Wansview IP cam.\n\n``user`` and ``pass`` are the access credentials you configured in your camera.\n\n``checkminutes`` defines how often the script should go through above workflow.\n\nTo determine if anyone is at home, the script checks if any of the ``athome`` hosts\nis reachable. These are usually your *mobile phones*.\n\nSleep times are configured by defining between which hours you usually are awake\non a given day in the ``waketime`` array.\n\nTo see if anyone is awake despite it being sleep time, the script checks if any\nof the ``awake`` hosts are reachable. These are usually your *desktop computers*,\n*playstation* or *TVs*.\n\nCompatibility\n-------------\n\nThis script was used with a Wansview NCB541W camera only. It might work for other\nWansview models and probably even for other Manufacturers. Pull requests welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitbrain%2Fcamalarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitbrain%2Fcamalarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitbrain%2Fcamalarm/lists"}