heedy / connectordb-android

The ConnectorDB android app
Apache License 2.0
8 stars 2 forks source link

Add the ability to "time" events to show how time is being spent #4

Closed proffalken closed 2 years ago

proffalken commented 7 years ago

The ability to start/stop a timer and have the details recorded to a stream would be great for time/task tracking

dkumor commented 7 years ago

Could you expand on that idea a bit please? Can you give me an example of how this would work?

proffalken commented 7 years ago

Sure, so I'm thinking about an integrated time tracker where I type what I'm doing and click "start" do the task and click "stop", and it logs something like

1300hrs - started watching cat videos on YouTube 1315hrs - stopped watching cat videos on YouTube 1400hrs - meeting at work 1600hrs - meeting finished

This would allow for tracking of tasks and give the ability to plot heart rate against task undertaken or time spent in meetings vs productive work done

Not sure if that makes it clearer or not?

proffalken commented 7 years ago

Something like https://toggl.com/best-free-time-tracking-app-for-android with connectordb sync

dkumor commented 7 years ago

I was planning on adding an ML-based calendar for the 0.4 release of ConnectorDB, but I'll see if this type of event tracker can be implemented directly as a stream in 0.3.

Given the stuff that still needs to be done for 0.3.0, I'll put this onto the list for 0.3.1

dkumor commented 7 years ago

As a side note, the new app UI is functional in git right now. If you have some free time and experience with react native, or are interested in trying it out, it would be really helpful if you could create a mockup of the UI for this tracking as another tab in the new UI. UI code is in the src directory

If you're not a fan of android dev (or just busy), a drawing of what the ideal ui for this would look like would also be useful!

proffalken commented 7 years ago

No worries, and there's no rush, I'm just logging these ideas as Ihave them otherwise I'll forget! :) 

Sent from my Samsung device

-------- Original message -------- From: Daniel Kumor notifications@github.com Date: 20/02/2017 20:47 (GMT+00:00) To: connectordb/connectordb-android connectordb-android@noreply.github.com Cc: Matthew Macdonald-Wallace matt@doics.co, Author author@noreply.github.com Subject: Re: [connectordb/connectordb-android] Add the ability to "time" events to show how time is being spent (#4)

As a side note, the new app UI is functional in git right now. If you have experience with react native, or are interested in trying it out, it would be really helpful if you could create a mockup of the UI for this tracking as another tab in the new UI. UI code is in the src directory If you're not a fan of android dev (or just busy), a drawing of what the ideal ui for this would look like would also be useful!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/connectordb/connectordb-android","title":"connectordb/connectordb-android","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/connectordb/connectordb-android"}},"updates":{"snippets":[{"icon":"PERSON","message":"@dkumor in #4: As a side note, the new app UI is functional in git right now. If you have experience with react native, or are interested in trying it out, it would be really helpful if you could create a mockup of the UI for this tracking as another tab in the new UI. UI code is in the src directory\r\n\r\nIf you're not a fan of android dev (or just busy), a drawing of what the ideal ui for this would look like would also be useful!"}],"action":{"name":"View Issue","url":"https://github.com/connectordb/connectordb-android/issues/4#issuecomment-281177849"}}}

proffalken commented 7 years ago

OK, so I'm not a UI/UX guy, but this is broadly the kind of thing I was thinking.

The "Name" Field becomes the name of the stream and can be selected from a dropdown or typed directly in, timings with the same name are added to the same stream.

Much like the manual input, the name must be lowercase, but there is a description for something more "human readable".

I'd suggest that the JSON schema for timers is something like the following:

{
    "event_name": "<STRING>",
    "event_start_datetime": "<DATETIME>",
    "event_stop_datetime": "<DATETIME>",
    "event_start_location": {
        "latitude": "<FLOAT>",
        "longitude": "<FLOAT>"
    },  
    "event_stop_location": {
        "latitude": "<FLOAT>",
        "longitude": "<FLOAT>"
    }   
}

Obviously if you already have a native lat/long format then use that instead of the FLOAT! :)

connectordb io timer ui - page 1

dkumor commented 7 years ago

Thanks! The data probably wouldn't contain GPS coordinates, since those are already gathered by your phone, and so are redundant (you can even see a map of where you were in the connectordb interface). Other than that, it looks like a very reasonable proposal. I'll look into the details of what it would take to implement something like this for 0.3.1.

proffalken commented 7 years ago

Makes sense, I'm all for de-duplication of data! :D

Thanks :)