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

Allow access from the internet http://bouncer.xinchejian.com/ #30

Open
lionello opened this issue Aug 24, 2015 · 6 comments
Open

Allow access from the internet http://bouncer.xinchejian.com/ #30

lionello opened this issue Aug 24, 2015 · 6 comments

Comments

@lionello
Copy link
Member

Currently you need to be on Xinchejian Wi-Fi to be able to access bouncer. This requires people to enable Wi-Fi and wait for it to connect to the right Wi-Fi.

@lionello
Copy link
Member Author

Note: when opening the door through the internet address, we can't use MAC to unlock.

We can however accept payments from Alipay/Wechat/PayPal and send a PIN.

@nihaopaul
Copy link
Member

Additionally you won't be able to stop people opening the door remotely..
One option is to use JavaScript geo location from mobile devices

On Tue, 25 Aug 2015 19:51 nihaopaul nihaopaul@gmail.com wrote:

The problem with that is the Mac address is used to validate on the network

On Tue, 25 Aug 2015 00:43 Lio李欧 notifications@github.com wrote:

Note: when opening the door through the internet address, we can't use
MAC to unlock.

We can however accept payments from Alipay/Wechat/PayPal and send a PIN.


Reply to this email directly or view it on GitHub
#30 (comment).

@nihaopaul
Copy link
Member

The problem with that is the Mac address is used to validate on the network

On Tue, 25 Aug 2015 00:43 Lio李欧 notifications@github.com wrote:

Note: when opening the door through the internet address, we can't use MAC
to unlock.

We can however accept payments from Alipay/Wechat/PayPal and send a PIN.


Reply to this email directly or view it on GitHub
#30 (comment).

@lionello
Copy link
Member Author

OK, so opening the door is tricky, but we could accept electronic payments and this would always require a internet facing backend. The opened ports are unreliable, so there'd be a separate service running on some VPS, which the local VM can sync to once in a while. Or, "check local, if not found, check remote".

@lionello
Copy link
Member Author

These can be separate issues.

@lionello
Copy link
Member Author

Part 1 "external payment" is actually easy, since the payment table is append only, so it's trivial to synchronize and merge with the one on LAN. Synchronization can happen daily and/or on request (for example, when the user tries to open the door, but the PIN is invalid.)

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

3 participants