GithubHelp home page GithubHelp logo

tissuemo / door-watcher Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.43 MB

トイレのドアの開閉状況を監視して在室監視を行うソリューション

License: MIT License

JavaScript 17.10% HTML 9.60% CSS 1.68% Dockerfile 2.12% Python 65.14% C++ 1.91% Mako 0.34% TSQL 1.84% C 0.25%
docker flask wsgi-server arduino-sketch bootstrap4 coreui nodejs esp8266 eslint webpack4

door-watcher's Introduction

tissueMO's Github Stats Top Languages

door-watcher's People

Contributors

dependabot[bot] avatar dio0550 avatar tissuemo avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dio0550

door-watcher's Issues

本番運用時のアーキテクチャーを考える

他社展開するにあたっていろいろ考えないといけない。

特に、sensorをどこのWi-Fiに接続するのかを決めないとそもそも導入自体が困難なケースが出てくるおそれがある。

[server] DB初期レコードの整理

おそらく初号機稼働の時点では 6FMale のみとなるはずなので、他のトイレは無効状態にしておく必要がある。
トイレ入退室トランザクションも空の状態で始まるように、テスト用のコードをコメントアウトしておく。

[server] 例外捕捉・ログ出し整備

入口と出口、DBに変更を加える箇所でログを出すようにする。
SQL発行している箇所にはSQL文をログに出したい。

エラーで返すときはAPIのレスポンスにメッセージ入れるようにする。
これに伴って、例外処理も整備する必要がある。

センサーの異常検知方法を考える

本番運用するにあたり、センサーの異常をシステム側から自動的に検知できる仕組みを導入したい。

安直ではあるが、一定日数経ってもセンサーデータが送られてこない場合に異常が発生したとみなすようにする?

[front] [server] 入退室ログのグラフの出し方改善

現状は入退室を一括りにして、単位時間あたりのイベントの件数をただグラフに出しているだけ。

欲を言えばフロント側で期間を変更したり、刻み分数を変更したりできるようにしたい。
入退室を分離して出すにはどういう見せ方がよいのやら・・・

Proposal .

Great project i just read trough mostly the sensor side.I saw that you basically using http request. It is a easy simple solution. I would be interesting in your opinion about using mqtt. An example client https://gist.github.com/eLement87/133cddc5bd0472daf5cb35a20bfd811e . with this protocol you can securely post data to your mqtt broker on the server side. Because at this moment if someone start sending http request for the server with the give strings,that would cause a bit of a problem later on.

README書く

front / server / sensor

あと各種ライセンス表記も。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.