rzr / mastodon-lite

Lightweight client for mastodon micro blogging service.
https://purl.org/rzr/mastodon-lite
Apache License 2.0
19 stars 6 forks source link

Add notifier implementation of adapter #7

Closed mrstegeman closed 4 years ago

mrstegeman commented 5 years ago

Now that the WebThings Gateway has support for notifiers (coming in 0.9), it would be great to implement that interface.

Notifiers essentially act as a rule output. That way, we don't have to add Things that are not actually devices, when their only purpose is to notify the user (or some other channel).

For examples, see:

rzr commented 5 years ago

Excellent, by the way I wrote also a "mastodon sensor" too that update content from a feed, but it's an html string, would this be used to display popup notification on dashboard ? or eventually I could redirect to an external thingy for display.

mrstegeman commented 5 years ago

We do support toast notifications, but they're only really intended for specific use cases, such as showing why an add-on failed to load or for showing a pairing/unpairing prompt.

rzr commented 5 years ago

yes it makes sense, and external addons could be in charge of it...

rzr commented 4 years ago

To be released in:

https://github.com/mozilla-iot/addon-list/pull/661

mrstegeman commented 4 years ago

I don't see a notifier in the code.

rzr commented 4 years ago

It's now Released