![]() ![]() Sample App: Desktop Pinger Notification - monitors your websites and will notifiy you when a website is down. Optionally, a content image (10.9+ ONLY) Optionally, specifiy a url or bundleid to open should the notification be Optionally, set a sender (Notification will now use the Safari icon) Optionally, set a group which ensures only one notification is ever shown replacing previous notification of same group id. Optionally, set a sound from a predefined set. Note := gosxnotifier.NewNotification("Check your Apple Stock!") At a minimum specifiy a message to display to end-user. It's a pretty straightforward API: package main Useful for knowing when long running commands finish longRunningCommand & notify done! ![]() After that i created a file in usr/local/bin with. Using the Command Line notify "Wow! A notification!!!" I have installed vagrant-notify and terminal-notifier on my mac. It will simply not work on lower versions of OSX. Also, utilizing this lib requires OSX 10.8 or higher. The following command will install the notification api for Go along with the binaries. This is possible because in this latest version the terminal-notifier binary is now statically embedded into the Go source files. There are none! If you utilize this package and create a binary executable it will auto-magically install the terminal-notifier component into a temp directory of the server. However, it's a start and any pull requests are accepted and encouraged! Dependencies: It's not perfect, and the implementor will quickly notice its limitations. gosx-notifier embeds this app with a simple interface to the closed API. Thankfully, Eloy DurĂ¡n put together an osx app that allows terminal access to the sandboxed API. Result? A potentially useful API shackled to Apple's ecosystem. Notification center API to apps hosted in its App Store. OSX Mountain Lion comes packaged with a built-in notification center. On OSX 10.9 and above gosx-notifier now supports images and icons. A Go lib for sending desktop notifications to OSX Mountain Lion's (10.8 or higher REQUIRED) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |