Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you want InfluxDB support? #52

Open
Zurnaz opened this issue Mar 28, 2018 · 2 comments
Open

Do you want InfluxDB support? #52

Zurnaz opened this issue Mar 28, 2018 · 2 comments

Comments

@Zurnaz
Copy link

Zurnaz commented Mar 28, 2018

I ended up adding some influxdb support to play around with custom dashboards with Grafana.

playing-with-grafana

It's a working draft and needs cleaning up. But I'm not sure if it's worth pursuing since the main thing I wanted was the annotation feature as a shortcut to tagging, but I wasn't too impressed with it in the end.

So saying that I could of gone straight to tagging since I do know VueJS, just that I find UI to be a massive timesink and tried to cheat.

Side note: I think something like web-hooks/hooks might be good idea to allow custom scripts/APIs to be triggered; like when an event is inserted.

@johan-bjareholt
Copy link
Member

johan-bjareholt commented Mar 29, 2018

Sweet!
In a way it's not "necessary" to have support for more than one DB, but it's definitely fun to play around with like you have here :)
Having access to Grafana is very nice and as you said it's sometime nice to just be able to use a GUI for configuring different views of the data.
Personally I'm very interested in this, will be much more useful than the other non-default MongoDB datastore we have right now.

Side note: I think something like web-hooks/hooks might be good idea to allow custom scripts/APIs to be triggered; like when an event is inserted.

Hooks on events could be useful yeah, but if you mean doing that for automatic tagging I don't think that's a good idea. Let's say you have collected data for 3 weeks and now want to specify a tag, if you solve it with a hook that previous data will not get any tag just because it's older than the creation of the tag. It would be easier to match the tags to the events every time you display the data, that way the tags will be consistent. Hooks could be useful if it sent a notification when I've been watching youtube for 20min though lol, would improve my productivity for sure.

@KShivendu
Copy link

KShivendu commented Aug 29, 2023

Hey @Zurnaz, this is really cool. I created a fork inspired your your PR that adapts to the latest InfluxDB version. Also created Grafana dashboards similar to yours and what ActivityWatch UI provides. Many thanks for that!

See https://github.com/KShivendu/aw-core-influxdb

Would love to discuss/collaborate if you're still interested in improving this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants