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

Documentation neded #12

Open
backenders-game opened this issue Aug 26, 2019 · 8 comments
Open

Documentation neded #12

backenders-game opened this issue Aug 26, 2019 · 8 comments

Comments

@backenders-game
Copy link

Hello.
Can you add simple steps how to start and run server?

I started httpd2 from develop, but i am getting 400 response

181.11.17.41 - - [26/Aug/2019 23:21:01] "POST / HTTP/1.1" 400 -
received request: {'type': 'Z5RWEB', 'sn': 44444, 'messages': [{'id': 1714636915 , 'operation': 'power_on', 'fw': '3.32', 'conn_fw': '1.0.131', 'active': 0, 'mod e': 0, 'controller_ip': '192.168.1.114', 'reader_protocol': 'wiegand'}]}

@tornado67
Copy link
Owner

tornado67 commented Aug 27, 2019

Here you are. Sorry. I wrote it too late )))
https://github.com/tornado67/ironlogic-web-json/wiki/Docker-compose-deployment
If something gets wrong again could you provide me a curl of your requests ?

@backenders-game
Copy link
Author

Thanks
I will try with docker asap.
Yes, i can provide you any logs, if you give me instructions where i should take them

@tornado67
Copy link
Owner

Hi, I've refactored documentation https://github.com/tornado67/ironlogic-web-json/wiki
Your issue may be database related. Did you create db?

@backenders-game
Copy link
Author

Probably.
Controller isn't added to database automatically on power on and i need to do it manually?

@backenders-game
Copy link
Author

15.22.27.5 - - [06/Sep/2019 23:40:18] "POST / HTTP/1.1" 200 -
{'type': 'Z5RWEB', 'sn': 47176, 'messages': [{'id': 635723058, 'operation': 'power_on', 'fw': '3.32', 'conn_fw': '1.0.131', 'active': 0, 'mode': 0, 'controller_ip': '192.168.1.15', 'reader_protocol': 'wiegand'}]}
received request: {'type': 'Z5RWEB', 'sn': 47276, 'messages': [{'id': 635723058, 'operation': 'power_on', 'fw': '3.32', 'conn_fw': '1.0.131', 'active': 0, 'mode': 0, 'controller_ip': '192.168.1.15', 'reader_protocol': 'wiegand'}]}
CONTROLLER 47276 POWER ON

So controller works with server.

How can i interact with it from server? Send open_door, etc..?

@backenders-game
Copy link
Author

Basically i want to use server for this

  • set allowed cards that can open lock
  • write down logs of lock openings
  • read log of events

@tornado67
Copy link
Owner

Well, at our company we didn't implement any logick except tracking if somebody goes in\out. Our use case was to write events into database so 1C can read them. I'll implement more logick asap. Very sorry for the delay.

@tornado67
Copy link
Owner

btw you can send me email if I'm keeping silence here for a while.

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

No branches or pull requests

2 participants