0.2.2 • Published 6 months ago

lametric-notify-local v0.2.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 months ago

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.

0.2.2

6 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

3 years ago