{"id":16713065,"url":"https://github.com/atesgoral/doorbell-ringer","last_synced_at":"2025-03-15T05:18:30.445Z","repository":{"id":53526009,"uuid":"54593773","full_name":"atesgoral/doorbell-ringer","owner":"atesgoral","description":"Rings a doorbell","archived":false,"fork":false,"pushed_at":"2023-05-22T21:33:54.000Z","size":24,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T20:48:35.902Z","etag":null,"topics":["iot","onion-omega","qr-code","totp","twitter"],"latest_commit_sha":null,"homepage":"https://speakerdeck.com/atesgoral/doorbell-ringer","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/atesgoral.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":"2016-03-23T21:19:36.000Z","updated_at":"2021-03-26T01:36:51.000Z","dependencies_parsed_at":"2024-11-21T02:31:14.025Z","dependency_job_id":"43de1d16-7967-47c1-a3fa-f344b12f52a7","html_url":"https://github.com/atesgoral/doorbell-ringer","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/atesgoral%2Fdoorbell-ringer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atesgoral%2Fdoorbell-ringer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atesgoral%2Fdoorbell-ringer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atesgoral%2Fdoorbell-ringer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atesgoral","download_url":"https://codeload.github.com/atesgoral/doorbell-ringer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685785,"owners_count":20331018,"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":["iot","onion-omega","qr-code","totp","twitter"],"created_at":"2024-10-12T20:45:22.510Z","updated_at":"2025-03-15T05:18:30.424Z","avatar_url":"https://github.com/atesgoral.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/atesgoral/doorbell-ringer.svg?branch=master)](https://travis-ci.org/atesgoral/doorbell-ringer)\n\n# doorbell-ringer\nThis is a Python service that runs on an [Onion Omega](https://onion.io/omega). As the [@DoorbellRinger](https://twitter.com/DoorbellRinger) Twitter account, it watches the user stream and rings a doorbell when [@DoorbellNudger](https://twitter.com/DoorbellNudger) tweets something with the `#ringit` hashtag. It also auto-updates with the `#update` hashtag.\n\n![New look](https://cloud.githubusercontent.com/assets/50832/14685200/a78bdad4-0701-11e6-98f3-82cf8c01ce77.JPG)\n\n## Onion Omega Setup\n\n### Mount USB Drive\n\nFollow the pivot-overlay section:\n\nhttps://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs\n\ntl;dr:\n\n```sh\nopkg update\nopkg install e2fsprogs\nmkfs.ext4 /dev/sda1\nmkdir /mnt/sda1\nmount /dev/sda1 /mnt/sda1/\nmount /dev/sda1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt\nblock detect \u003e /etc/config/fstab\n```\nEdit /etc/config/fstab:\n\n```\noption target '/overlay'\noption enabled '1'\n```\n\nThen reboot your Omega.\n\n### Install Python and Git\n\n```sh\nopkg update\nopkg install python-light python-pip git git-http\n```\n\n### Get the Service\n\nClone this repository (via HTTPS) into the /opt directory:\n\n```sh\nmkdir /opt\ncd /opt\ngit clone https://github.com/atesgoral/doorbell-ringer.git\n```\n\n### Install Python Packages\n\n```sh\ncd /opt/doorbell-ringer\npip install -r requirements.txt\n```\n\n### Configure the Service\n\nMake a copy of config.yml.example as config.yml and fill in your Twitter Application's access settings:\n\n```yml\ntwitter:\n  consumerKey: ...\n  consumerSecret: ...\n  accessTokenKey: ...\n  accessTokenSecret: ...\n```\n\n### Set up the Service to Run on Boot\n\nCreate a symbolic link to the init.d script and enable the service:\n\n```sh\nln -s /opt/doorbell-ringer/init.d.sh /etc/init.d/doorbell-ringer\n/etc/init.d/doorbell-ringer enable\nreboot\n```\n\n### Start the Service\n\nAfter the service is set up to run on boot, just reboot the Omega. Or manually start the service:\n\n```sh\n/etc/init.d/doorbell-ringer start\n```\n\n### Manually Running the Service\n\n```sh\npython stream.py\n```\n\n## Local Development\n\nTo stub out the `expled` and `ubus` commands available on Omega's OpenWRT, you can copy the contents of the stubs directory to your bin folder or add the stubs folder to your PATH.\n\n### Running the Tests\n\n```sh\npython -m unittest discover -s test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatesgoral%2Fdoorbell-ringer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatesgoral%2Fdoorbell-ringer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatesgoral%2Fdoorbell-ringer/lists"}