slavaaaaaaaaaa / whattimeisitrightmeow

Would you look at the time!
http://smaslennikov.com/whattimeisitrightmeow
MIT License
48 stars 5 forks source link

Email when time changes #14

Open thecosmicfrog opened 7 years ago

thecosmicfrog commented 7 years ago

As a consumer of the fourth dimension, I would like a convenient way to receive updates if the time happens to change. With the current implementation, if I want to know if the time has changed, I need to visit your website. I propose that email functionality be provided. This way, users can be notified immediately when (and if) the time changes.

Is this something on your project roadmap, or is it only planned for a future Enterprise Edition?

slavaaaaaaaaaa commented 7 years ago

We could certainly implement a mailing list. We could even misuse Travis, using its notifications as a system for letting you know that time has changed.

PRs are welcome, but if not, I'll probably get to this at some point!

thecosmicfrog commented 7 years ago

Thanks for your reply @smaslennikov. Failing this, perhaps we could propose an event-driven API?

Example: Each time (no pun intended) the time changes, this could trigger a hook which fires an event to a listener on the client-side. Push (rather than pull) would be the preferred mechanism here, unless we're certain we can predict the interval at which time changes.

slavaaaaaaaaaa commented 7 years ago

Also a fantastic way to do this!