An application indicator for Unity that displays the current date and time in lunar calendar.
Copyright (c) 2016 Adrian I Lam email@example.com
Not to be confused with indicator-lunar, which shows attributes and ephemerides for astronomical objects.
Note: The conversion is calculated using timezone UTC+8 (HKT), while the clock shown above is using timezone UTC+1.
Note: node-gtk, one of this program's dependencies, requires nodejs version 5 or above.
node-gtk (by @WebReflection)
npm package: https://www.npmjs.com/package/node-gtk
Dependencies: build-essential, git, nodejs (>= 5), gobject-introspection, libgirepository1.0-dev
Note: This package failed to build for me. I had to remove
cflagsin file "bindings.gyp" to get it to build.
lunar-calendar-zh (by @roadmanfong)
npm package: https://www.npmjs.com/package/lunar-calendar-zh
Note: This package contains a bug which renders it useless if your computer is set to a time zone which observes Daylight Saving. I have forked it and fixed it in https://github.com/adrianiainlam/LunarCalendar.
node-cron (cron) (by @ncb000gt)
npm package: https://www.npmjs.com/package/cron
node-dbus (dbus-native) (by @sidorares)
npm package: https://www.npmjs.com/package/dbus-native
- Install the dependencies listed above.
- Clone this repository.
- Add the script as a startup application.
- Run the script manually for the first time. (Alternatively, log out and log in again.)
- The indicator should be shown at the top right corner, having an icon that shows the year and a label that shows the month and date.
- Clicking on the indicator should result in a menu with more detailed information including the time.
This program is released under the MIT License. For the full text of this license, please refer to the file "indicator-lunar-calendar.js".