Giter Site home page Giter Site logo

rejsekort-reminder's People

Contributors

simongray avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

xixsuse

rejsekort-reminder's Issues

Does not clear memory of bus after SIGNAL_LOST

Should clear the label after receiving a SIGNAL_LOST, but it doesn't seem to happen.

10/04 17:43:05, SENSOR, WIFI (BUS): NEW_SIGNAL -68 00:24:21:46:3d:8f
10/04 17:43:08, SENSOR, TIME (timer): TICK
10/04 17:43:16, SENSOR, TIME (timer): TICK
10/04 17:43:18, SENSOR, TIME (timer): TICK
10/04 17:43:19, SENSOR, ACTIVITY (): UNKNOWN
10/04 17:43:31, SENSOR, TIME (timer): TICK
10/04 17:43:31, SENSOR, TIME (timer): TICK
10/04 17:43:33, SENSOR, TIME (timer): TICK
10/04 17:43:34, SENSOR, WIFI (BUS): SIGNAL_FOUND -84 00:24:21:46:3d:8f
10/04 17:43:38, SENSOR, TIME (timer): TICK
10/04 17:43:46, SENSOR, TIME (timer): TICK
10/04 17:43:48, SENSOR, TIME (timer): TICK
10/04 17:43:53, SENSOR, TIME (timer): TICK
10/04 17:43:55, SENSOR, WIFI (BUS): SIGNAL_LOST
10/04 17:43:58, SENSOR, TIME (timer): TICK
10/04 17:44:06, SENSOR, TIME (timer): TICK
10/04 17:44:08, SENSOR, TIME (timer): TICK
10/04 17:44:20, SENSOR, TIME (timer): TICK
10/04 17:44:20, SENSOR, TIME (timer): TICK
10/04 17:44:23, SENSOR, TIME (timer): TICK
10/04 17:44:24, SENSOR, WIFI (BUS): NOTHING_FOUND
10/04 17:44:25, SENSOR, ACTIVITY (): ON_FOOT
10/04 17:44:35, SENSOR, TIME (timer): TICK
10/04 17:44:35, SENSOR, TIME (timer): TICK
10/04 17:44:38, SENSOR, TIME (timer): TICK
10/04 17:44:49, SENSOR, TIME (timer): TICK
10/04 17:44:49, SENSOR, TIME (timer): TICK
10/04 17:44:52, SENSOR, CELL (TRAIN_TUNNEL): NOTHING_FOUND
10/04 17:44:52, SENSOR, CELL (METRO_TUNNEL): NOTHING_FOUND
10/04 17:44:53, SENSOR, TIME (timer): TICK
10/04 17:44:56, SENSOR, WIFI (BUS): NOTHING_FOUND

Persistent foreground service

Use a persistent notification for the TrackerService rather than the widget to save space and lower the change of being autokilled by the process manager.

Save to log file

useful log info:

  • transport mode changes
  • cell phone tower IDs
  • sensor output
  • user interaction

Machine learning of waiting zones

When in waiting/still mode, the app should routinely poll for nearby wifi and/or cells to learn if there are any specific wifi SSIDS or MAC addresses that are uniquely connected to the phone being in waiting mode. This could be work or home wifi, where the phone may lie still for an extended period of time, multiple times a week.

These zones should then be considered in default mode as an automatic trigger into WaitingMode. Perhaps WaitingMode constructor could be amended to allow for a Mac Address identifier to keep the phone in WaitingMode despite being moved around. This would potentially result in greater battery-savings.

Mix up on Nørreport between S-train and metro

11/4 16:13 still thought it was on metro when getting off at Svanemøllen despite getting a notification less than 10 minutes earlier coming up from metro and being on s-train since Nørreport.

crash while changing mode

04-16 15:33:35.904: E/AndroidRuntime(13645): FATAL EXCEPTION: main
04-16 15:33:35.904: E/AndroidRuntime(13645): java.lang.NullPointerException
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.example.publictransportation.service.TrackerService.changeMode(TrackerService.java:111)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.example.publictransportation.modes.AbstractMode.changeMode(AbstractMode.java:39)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.example.publictransportation.modes.MetroMode.evaluate(MetroMode.java:58)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.example.publictransportation.modes.MetroMode.input(MetroMode.java:52)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.example.publictransportation.sensors.AbstractSensor.output(AbstractSensor.java:16)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.example.publictransportation.sensors.ActivitySensor$1.onReceive(ActivitySensor.java:94)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at android.os.Handler.dispatchMessage(Handler.java:99)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at android.os.Looper.loop(Looper.java:176)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at android.app.ActivityThread.main(ActivityThread.java:5419)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at java.lang.reflect.Method.invokeNative(Native Method)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at java.lang.reflect.Method.invoke(Method.java:525)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
04-16 15:33:35.904: E/AndroidRuntime(13645):    at dalvik.system.NativeStart.main(Native Method)

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.