lametric-notify-local

0.2.2 • Public • Published

lametric-notify-local

NPMCBT badge

Send notifications to your LaMetric Time over a local network.

Installation

Run npm i lametric-notify-local to install.

Usage

Some things to note:

// Import the module
const { LaMetric } = require('lametric-notify-local');

// Create a LaMetric object
const lm = new LaMetric(IP_ADDRESS, API_KEY);

// Send the model. Returns a Promise with an Axios response.
lm.send({
    model: {
        frames: [
            { text: 'Hello' },
            { text: 'World', icon: 4612 }
        ]
    }
})
    .then(console.log)
    .catch(console.err);

See test.js for a complete example.

Package Sidebar

Install

npm i lametric-notify-local

Weekly Downloads

1

Version

0.2.2

License

ISC

Unpacked Size

5.14 kB

Total Files

5

Last publish

Collaborators

  • tycrek