mind-the-time icon indicating copy to clipboard operation
mind-the-time copied to clipboard

Allow specific hour/day range combinations to be tracked against a specific tag/label

Open geekpete opened this issue 6 years ago • 6 comments

It would be nice to only track usage between specific time frames and/or days. Rather than not counting, it'd be even more useful to see usage within one time range vs outside that timerange.

So thinking work hours vs after work potentially. Would just need a setting to specify a label and the hours/days ranges that apply to that label. This would allow whatever ranges to be tracked just by tagging them with a label then aggregating the labels individually. Would allow overlaps then too.

geekpete avatar Jun 12 '18 22:06 geekpete

That could be interesting. It might take some significant re-working of how the data is stored. Currently there is just a running tally of time per website per day, so there's no way to do more fine-grained slicing and dicing of the reporting, etc. (Well, that is, with the thought of making it super flexible so you could create or change labels/times and have them take effect retroactively, not just going forward...)

PaulMorris avatar Jun 19 '18 02:06 PaulMorris

How about logging to disk as a starting point? I could then index that data into something like Elasticsearch and go bananas with it. The tricky UI parts for the plugin can come later potentially, but with a way to externalise the data, the plugin will be immediately useful for any number of uses.

geekpete avatar Jun 19 '18 02:06 geekpete

That could be a good starting point. I'm not sure what form of 'logging to disk' you mean in this case though, can you say more?

PaulMorris avatar Jul 11 '18 15:07 PaulMorris

Appending to a CSV would be something another tool could ingest

geekpete avatar Jul 12 '18 01:07 geekpete

Okay, makes sense, assuming there is a way to do that from a web extension add-on.

PaulMorris avatar Jul 13 '18 19:07 PaulMorris

Good point, there's going to probably be numerous security barriers involved. Is it any easier if you can log to an external API?

geekpete avatar Oct 19 '18 02:10 geekpete