ray45422 / ekeymgr Goto Github PK
View Code? Open in Web Editor NEWEntry management system using NFC tag
Entry management system using NFC tag
import rc620
https://github.com/ray45422/ekeymgr/blob/master/RCS620S/test.py#L3
が
from rcs620s import Rc620
じゃないと動かない気がするんだけど,これって動いてますか?
ウェブインターフェースからリクエストを送ると既存の読取機器を使って新規に鍵を登録できるようにする
登録するユーザIDをekeymgrサーバーに伝える
状態に応じて適当なレスポンスを返す(成功、登録できない状態、登録を受け付けてないなどのレスポンスを用意する)
認証情報の追加、削除の機能を提供する。
グループの作成、利用期限、日時指定利用の設定を行えるようにする。
DBとの通信をREST APIに置き換える
必要な機能
部屋名を格納する変数roomName(https://github.com/ray45422/ekeymgr/blob/dev/source/userdaemon.d#L69)
はコンストラクタでのみ設定から読み出して格納されている(https://github.com/ray45422/ekeymgr/blob/dev/source/userdaemon.d#L19)
しかし表示の更新時(https://github.com/ray45422/ekeymgr/blob/dev/source/userdaemon.d#L129)
に違う値に書き換えられていることが時々発生する
書き換えられる値は認証に用いるSQL文(https://github.com/ray45422/ekeymgr/blob/dev/source/auth.d)
の一部であったり、バイナリデータだったりと様々
外部からkillされたときにGPIOやシリアルポートを閉じれてない
現在の状態では保存、通信全てに置いて平文でやり取りしている。
データベースにはハッシュ化して保存。
クライアントとの通信時には暗号化を行う。
その他必要な部分の暗号化を行う。
どのモードで起動したときも引数の数が合ってないとRangeErrorで落ちる。
終了後しばらく起動時に
Unable to bind socket: Address already in use
と表示され起動できない
鍵の動作中などに鍵の操作リクエストなどを受け付けないようにする
発生頻度が低く原因不明。
要調査
現在の通信でやり取りするメッセージはかなり適当なのでJSON形式に統一しようと思う。
custom-branchで発生
このブランチだけに実装したスイッチが有効になるまで鍵の操作をできなくした処理が原因
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.