webuildsg / osx

:computer: a tiny os x menubar app to display the upcoming events and recently updated repos
https://github.com/webuildsg/osx/releases
MIT License
44 stars 5 forks source link

osx notification if the next event is within the next hour #6

Closed sayanee closed 9 years ago

sayanee commented 9 years ago

idea:

  1. every 30 minutes, it will query the api
  2. osx notification if the upcoming event starts within an hour
sayanee commented 9 years ago

with https://github.com/mikaelbr/node-notifier

sayanee commented 9 years ago

how to show 2 or more notifications? https://github.com/mikaelbr/node-notifier/issues/55

sayanee commented 9 years ago

try with group option:

var notifier = require('node-notifier');

notifier.notify({
  'title': 'My notification',
  'message': 'Hello, there!',
  'wait': true,
  'group': 1
});

notifier.notify({
  'title': 'hola!!!',
  'message': 'Hello, there!',
  'wait': true,
  'group': 2
});