Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularization of the doorbell program to support remote buttons and bells #3

Open
bradxn opened this issue Apr 6, 2016 · 0 comments

Comments

@bradxn
Copy link
Owner

bradxn commented Apr 6, 2016

The DingDong() function in gpio.cpp should be a separate program (shell script actually).

However, gpio.cp should not call DingDong()! Instead, it should broadcast an SSDP NOTIFY message indicating that the doorbell button has been pressed.

A new SSDP listening daemon should be written that listens for NOTIFY messages. When one is received, the NT and NTS fields should be looked up in a config file that may show a program to run. The config file should indicate that the DingDong program should be run for the appropriate doorbell button notification.

This will allow a remote system to also monitor NOTIFY messages and ring its own bell as well as remote programs to send button press NOTIFY messages (like the tablet doorbell button program).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant