-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature: Desktop notifications #10
Comments
Hmm. Interesting idea. Just FYI: Note that my inbox isn't littered with daily backup reports, I only get notifications on failures. Otherwise, the E-Mail is sidelined and put in the trash (removed after 30 days). Unless I look for it, I never see successful backup reports. For details, see: Management of E-Mail Messages. I'm totally open to this. It should be a fairly simple change, pretty isolated, and Beeep looks like a fine package to use on first perusal. Note that, unless you use some default icons, In general, I like
Unless otherwise configured, When you run an E-Mail test, I've also considered some sort of SMS support. A few times, when I've gotten behind in E-Mail, I would have appreciated some sort of SMS message, or better yet, push notification, to my cell phone. That way, I'd be aware even if I was falling behind in E-Mail. But that's orthogonal to this. I like this suggestion because, if I'm at my system but not up on E-Mail, I'd see the notification as well and take appropriate action. @boedy If you'd like to submit a PR for this, I'm totally open to that. Do you feel that the requirements that I've sketched out are reasonable? |
@boedy What are your thoughts on my feedback? |
Sorry for not getting back to you sooner. Had some work to catch up on. Thanks for info on the email notification part. I jumped to conclusions there. I should play with it a bit more to see if it fits me flow. I think putting a notification config it in the global initialisation file works. But you should be able choose through which I realised it would be good to have an
How's that? Would the cli option flags Beeep uses simple system wrappers. I did some testing on my macbook and noticed custom icons are not supported with the current implementation (see gen2brain/beeep#15). I haven't tested the the other platforms. Beeep also does not support custom click handlers. gosx-notifier is an alternative package that features both images and click handlers which I think will allow you to pull up the log. It unfortunately supports macOS only though. |
Hi @boedy Thanks for your response. I think channels provide a fine way extend notifications in the future, and I like the concept, even if the first channels are just
This allows you to specify an event mask on a per-channel basis, which might be preferred. And I guess, if you don't specify a channel at all, then it would never be notified. There is no The I'm totally uninterested in implementing something that only works on a single platform. Part of the entire focus of Thoughts? |
@jeffaco Looks good. I do find the config you propose a bit verbose though. What about this:
We would stick to the old configuration style for email to stay backward compatible for now. If channels is not configure correctly but defined in the notification section an error should be raised. |
I was thinking of making those email changes anyway. As for the formatting: I like your formatting, but I had difficulty with this sort of thing with Viper. If you can make Viper digest that in a reasonable way, I'm fine with your formatting. If not, then I'd probably add event-specific data as part of the notification, like this:
Then, once we read in the channel type, we'd know what to read in from there, and data for each of the notifiers would just be bundled with the notification itself. Since you were willing to do a pull request, may I suggest you add a I think a good start would be to get this working for E-Mail, then add other event types (like desktop first, and then others as we see fit). But E-Mail comes first, and sets the framework for things to follow. Thoughts? |
I had already started working on this before your suggestions, but it seems we were thinking along the same lines 😄. I thought it would be good to share my progress thus far as this is actually my first Golang project I'm contributing to (could be I'm doing things the non "Go" way)! PR: #14 Let me know what you think. |
I think your progress is awesome so far! I'm absolutely fine with what you're doing with your first Golang contribution. I believe in "baby steps" rather than a massive PR. So, I'd like to see you finalize the framework for notifications (without adding desktop). Once the framework is committed, then we can start adding various notifiers as we see fit. (Hint: What's a good way for push notifications on a cell phone? 😃 ) To finalize, I'd need a few changes:
Great start so far. Please finalize just this work (with more unit tests as you see fit), and let's get it in! Once I have a PR that passes tests, I'll do a formal review. Thanks! |
Thanks for the great feedback! I overlooked the Makefile and ran Push notifications for mobile is usually use PushBullet (a 3rd party app). I also use it if for my DB backups in production. |
You don't have to use If I had my druthers (solely based on what's useful to me, not necessarily others - I'm not sure what is priority is for this feature for others), I'd like to see:
These would probably complete my personal needs for notifications, although I recognize that others may want other forms of notifications and am happy to take PRs to support that. Finally, I'd like to offer that we become co-developers of Thanks again for your efforts in this area. |
After PR #14 gets merged (which tackles a couple of points you mentioned) I have a couple of things myself I would like to see implemented in this order:
As for you request. I feel honoured for you asking me to become a co-maintainer for this project! Although I personally think this would be very good to improve my skills, I'm not sure I'll have the time it requires as I'm also very busy with running a start-up. To be clear; I'm open to try it, but I won't be able to able to make any promises on my involvement over time unfortunately. |
WiFi blacklisting is a great idea. I don't need that because I don't back up my laptop, but perhaps I should! 😄 Of course, push notifications is near and dear to my heart. Desktop notifications would be nice as well. How about, after this merge, I set you up as a maintainer of the project, and we'll need an accepted code review to check in (me too). Could you commit to timely code reviews, by chance? If so, that would be great. If not, then I'll just continue along my way (no sweat making you a maintainer, though) as things have been. I really like another set of eyes on code changes, though, and even for |
I'm going to close this issue. We don't have desktop notifications as such, but we have a new notification framework that has been merged to master. This allows us to easily expand the notification framework, and @boedy, since you're planning to open Pull Requests, that's a good way to track new features. This is super awesome. I really like the work you've done. Thanks so much! |
@boedy FYI, I sent you email at the address listed in the commits for the repo. I'm not sure if you normally monitor that email address, so I thought I'd mention it here. When you have a chance, please respond to the email, thanks! |
The possibility to get email notifications is nice, but a bit overkill for my need. I wouldn't want my inbox to get littered with daily backup reports. I suspect that a desktop notification will give me enough feedback to go on. Some design considerations:
The https://github.com/gen2brain/beeep package could be implemented to get desktop notifications working. @jeffaco If you like I could draft a PR. Would first like to have some consensus on its requirements though.
The text was updated successfully, but these errors were encountered: