Skip to content
/ lemon Public

Lemon is a notification proxy that supports D-Bus, as well as the Pimoroni Raspberry Pi Unicorn Hat HD, allowing you to build a cheap, open-source alternative to LaMetric.

License

Notifications You must be signed in to change notification settings

mrusme/lemon

Repository files navigation

Lemon

Lemon D-Bus

Lemon is a notification proxy that supports D-Bus, as well as the Pimoroni Raspberry Pi Unicorn Hat HD, allowing you to build a cheap, open-source alternative to LaMetric.

Info: The master branch contains the latest version of Lemon. If you're looking for the legacy version that was written in Python and was only working on a Raspberry Pi with Pimoroni's Unicorn Hat HD, please refer to this branch.

Lemon can run as a background process (daemon) on your Linux/*BSD machine and pipe incoming notifications from any supported source to any supported output. For example, you can have your Pushover notifications displayed as D-Bus desktop notifications (libnotify).

Compatibility

Sources

Lemon currently supports the following notification sources:

Outputs

Lemon currently supports the following outputs:

  • D-Bus (desktop notifications)
  • Pimoroni Unicorn Hat HD

Getting started

From source

$ go build
$ sudo cp ./lemon /usr/local/bin/lemon

From releases

Download the release for your platform, unpack it and move it e.g. to /usr/local/bin/lemon.

Usage

$ lemon --help

Pushover

To simplify Pushover setup, this repository contains a script that can be used to obtain the required Device ID and Secret. The script accepts three fixed arguments:

  1. Your Pushover e-mail address
  2. Your Pushover password
  3. Your Pushover 2FA code

Example:

./login.sh "$(pass show pushover/email)" "$(pass show pushover/password)" 123456

Unicorn Hat HD

Raspberry Pi 3A+ & Pimoroni Unicorn Hat HD

Download/build the arm64 version, copy onto the Raspberry Pi and, enable SPI via raspi-config and use -outputs unicorn as output.