shreyaskapale / silentplaces

Silent Places a cordova based mobile application, which automatically gets silent in zones selected as silent by the users.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Silent Places

Build Status

Silent Places a cordova based mobile application, which automatically gets silent in zones selected as silent by the users.

Principle / idea

  • Scans Wireless networks
  • Saves BSSID of the Host
  • Calculates distance between the phone and host (router)

Formula

distance = 10 ^ ((27.55 - (20 * log10(frequency)) + signalLevel)/20)

Technologies ( Android)

  • Apache Cordova
    • plugins
      • wifiwizard
      • wifiwizard2
      • android-volume
      • permissions
      • background-mode
      • background-service

Story : It was the second day of my College life, apparently my professor had told everyone the day before to switch off their phone's before entering his class... But guess what my phone rang ! So I hope you can imagine the rest of story, well I was angry that day not on professor but on my phone ? I bought a smart phone and it cannot go auto silent in classes ? How smart is that :3 , So my brain said " how about you make an app son " ... After thinking for some time got a idea ! To use BSSID (Mac address of college wifi) and Calculate the distance between my class and wifi.So a app that would run in the background and when ever you are in the class at that distance range your phone gets silent automatically and when you are out of the class it goes back to normal mode.

Building source for android

requirements - -cordova : - https://cordova.apache.org/ -above mentioned plugins : - https://cordova.apache.org/docs/en/latest/guide/cli/ -AndroidSDK -Gradle -ADB_drivers

Go to the cloned directory , then on cordova console...

cordova plateform add android 

cordova run android

or

cordova build android

Note

As the application is still in prototype stage all devices might not be supported, bugs will be there for sure.

Development

  • Currently works with only Android 5.1 + versions.

License

MIT ( Revised with addition )

About

Silent Places a cordova based mobile application, which automatically gets silent in zones selected as silent by the users.

License:Other


Languages

Language:Java 74.9%Language:JavaScript 10.6%Language:Objective-C 8.7%Language:HTML 3.5%Language:CSS 1.2%Language:Batchfile 1.1%