Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LaMetric

Schemeslametric://, lametrics://
Cargo featureservice-lametric
Servicehttps://lametric.com
Body formatstext (first is the default)
Attachmentsno
Title lengthno title (merged into the body)
Body length32,768 characters
Body linesunlimited
Request throttle200 ms between requests
Vendor URLs acceptedyes

URL formats

{schema}://{app_token}@{app_id}
{schema}://{app_token}@{app_id}/{app_ver}
{schema}://{apikey}@{host}
{schema}://{user}:{apikey}@{host}
{schema}://{apikey}@{host}:{port}
{schema}://{user}:{apikey}@{host}:{port}

{schema} is one of lametric://, lametrics://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{apikey}Device API Keystringnosecret
{app_id}App IDstringnosecret
{app_token}App Access Tokenstringnomust match ^[A-Z0-9]{80,}==$
{app_ver}App Versionstringno1must match ^[1-9][0-9]*$
{host}Hostnamestringno
{port}Portint, 1 to 65535no8080
{user}Usernamestringno

Query parameters

ParameterMeaningTypeDefaultNotes
apikeyDevice API Keystringsets {apikey}
app_idApp IDstringsets {app_id}
app_verApp Versionstringsets {app_ver}
cyclesCyclesint, min 01
iconCustom Iconstring
icon_typeIcon Typechoicenoneone of info, alert, none
modeModechoicedevice (usually; depends on the URL)one of cloud, device
priorityPrioritychoiceinfoone of info, warning, critical
soundSoundstring

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

lametric://root:8b799edf-6f98-4d3a-9be7-2862fb4e5752@192.168.0.5:8080/
lametrics://TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT==@com.lametric.941c51dff3135bd87aa72db9d855dd50/
lametrics://TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT==@com.lametric.941c51dff3135bd87aa72db9d855dd50/2/
lametric://8b799edf-6f98-4d3a-9be7-2862fb4e5752@192.168.1.2/?icon=230
lametric://8b799edf-6f98-4d3a-9be7-2862fb4e5752@192.168.1.3/?cycles=2
lametrics://8b799edf-6f98-4d3a-9be7-2862fb4e5752@192.168.0.6/?mode=device
lametrics://8b799edf-6f98-4d3a-9be7-2862fb4e5752@192.168.1.2/?icon=%23230
lametrics://8b799edf-6f98-4d3a-9be7-2862fb4e5752@192.168.0.6/?sound=alarm1

Rejected URLs:

lametric://
lametric://:@/
lametric://8b799edf-6f98-4d3a-9be7-2862fb4e5752/
lametrics://TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT==@com.lametric.941c51dff3135bd87aa72db9d855dd50/abc/

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'lametric://root:8b799edf-6f98-4d3a-9be7-2862fb4e5752@192.168.0.5:8080/'

Notes

LaMetric (lametric://, lametrics://): notifications on LaMetric Time devices.

Two modes: cloud (developer widget push, {token}@{app_id}[/{ver}]) and device (local API, [user:]{apikey}@{host}[:port]).