Simple Secure Web Page to Open Door (HTTP API)
- Durum: Closed
- Ödül: $140
- Alınan Girdiler: 1
- Kazanan: sampathperera
We have a Mobotix T25 that is used for access control of a door. We require a simple but secure web page to allow our staff to open the door after entering a Pin Code. I have attached an image outlining how the website should look.
The mobotix developer docs can be found here -> http://developer.mobotix.com/paks/help_cgi-remotecontrol.html -> Authentication is just basic HTTP auth.
See image first. I have listed below the API Commands.
I cannot currently find the variable to retrieve the door status. But you can write the code using this URL and printing OPEN if result is 1 and CLOSED if result is 2 -> https://<<CAMERA IP>>/control/rcontrol?action=gettext&message=$%28SEN.TIN.CELSIUS%29
The image can be retrieved from this location -> https://<<CAMERA IP>>/record/current.jpg
The door can be opened with this command -> https://<<CAMERA IP>>/control/rcontrol?action=customfunction&action=sigout&profile=~Door
The PHP code should be commented and formatted correctly. All configuration details should be stored as variables (Camera IP, Camera Username, Camera Password, Valid Pin Codes)
The password entry field should use "<input type="tel" />" to ensure the number keypad opens on mobile devices. The characters should also be **** when entering.
The flow of the application should be
1. User visits web page and is presented with Pin Code screen
2. If user enters correct code they should be taken to the control screen. If user enters incorrect pin code they should be shown an error saying "INCORRECT PIN CODE"
3. Once on the Control screen they should see the current door status, see the current camera image and be presented with a button to open the door. Once the button has been pressed they should not be able to press it again for 2 seconds.
Unfortunately due to security configuration on our network I cannot provide direct access to the camera for testing. However given the API Documentation and that I have provided the correct URLs, this should not be an issue. I will also gladly test the application as many times as necessary while troubleshooting. All API requests are GET requests and the camera returns a response.
Note: This will be an internal application as I am aware that a 4 digit pin code could easily be brute forced.
If you have any questions, please let me know.
“Great guy to work with. Did exactly as requested.”
Bu yarışmadan başlıca girdiler
sampathperera Sri Lanka