Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A package for sending notifications to LaMetric Time.

Project Description

lmnotify is a package for sending notifications to LaMetric Time. To achieve this, the package encapsulates the REST API calls to the LaMetric webpage.


The easiest way for installing lmnotify is via pip:

pip install lmnotify

or clone/download this repository and

python3 install


python install


The LaMetric Time can only be accessed by authorized applications. Therefore, each application that wants to access the LaMetric time needs to be registered at the LaMetric Developer webpage. Sign Up and login to the developer webpage. Click the Create button in the upper right corner, then select Notification App and click Create again. Enter an app name, a description and a redirect URL. Finally, click Save to create the application. For the newly created app you will obtain a client id and a client secret that is required in the following.

There are three different ways to provide the LaMetric API credentials to the module: by constructor, by environment variables, by config file.

By constructor

Just provide the client_id and client_secret in the constructor of the LaMetricManager class, e.g.:

CLIENT_ID = "<my_client_id>"
CLIENT_SECRET = "<my_client_secret>"

lmn = LaMetricManager(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)

By environment variables

Just set the LAMETRIC_CLIENT_ID and the LAMETRIC_CLIENT_SECRET environment variable, e.g. in bash:

export LAMETRIC_CLIENT_ID="<my_client_id>"
export LAMETRIC_CLIENT_SECRET="<my_client_secret>"

When not providing the client_id and client_secret in the constructor, the environment variables will be used instead.

By config file

The default config file is set to ~/.lmconfig. When initializing the LaMetricManager class without parameters an empty config file will be created that looks like:

client_id = <put the client id here>
client_secret = <put the client secret here>

Just provide the corresponding LaMetric credentials and on next start the config file will be read automatically, when neither client_id and client_secret are set in the constructor nor the LAMETRIC_CLIENT_ID and the LAMETRIC_CLIENT_SECRET environment variables are set.


As simple example, let’s send a “hellow world” message with an icon to the LaMetric Time.

from lmnotify import LaMetricManager, Model, SimpleFrame

# set your LaMetric API credentials here!
CLIENT_ID = "<my_client_id>"
CLIENT_SECRET = "<my_client_secret>"

# create an instance of the LaMetricManager
lmn = LaMetricManager(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)

# get the LaMetric devices
devices = lmn.get_devices()

# use the first device to do some tests

# prepare a simple frame with an icon and some text
sf = SimpleFrame("i210", "Hello World!")

# prepare the model that will be send as notification
model = Model(frames=[sf])

# send the notification the device

For more examples see .


If you want to contribute in the development, please check out the source code at .

To get started with the development:

git clone
cd lmnotify/
virtualenv env
source env/bin/activate
pip install -r requirements.txt
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lmnotify-0.0.4.tar.gz (9.1 kB) Copy SHA256 Checksum SHA256 Source Feb 8, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting