Comments (16)
What about Mozilla notification API?. In this way they would be shown on the operating system GUI of the client running the web browser.
It would be nice to have them but i think this would an ui thing.
Im talking about connecting messaging services and devices which could present you a notification.
from schemas.
Could make sense, what do you have in mind ? Like a popup or log entry ?
May this relate to some (naives) experiments made using properties at:
https://github.com/rzr/mastodon-lite/tree/master/example
from schemas.
What about Mozilla notification API?. In this way they would be shown on the operating system GUI of the client running the web browser.
from schemas.
Could make sense, what do you have in mind ? Like a popup or log entry ?
Actually something similar to what you have done.
I'm currently working on an addon to send slack notifications.
But i think actions are the appropriate choice for that.
from schemas.
This seems like itβs probably a duplicate of WebThingsIO/gateway#1758
from schemas.
For webservices this is true.
However, there are also devices which provide a notification mechanism.
from schemas.
However, there are also devices which provide a notification mechanism.
Can you provide examples?
This doesn't seem like an action performed on a physical device itself, rather a potential output of a rule performed with an external software service as a result of a change in state of the device.
from schemas.
https://lametric.com
There would be one adapter which would discover n devices.
Also the devices would have properties.
from schemas.
Some people have built web things with an LCD which has a string property you can set to display the string on the screen.
Perhaps I'm missing something but is the any particular reason this should be an action rather than a property?
from schemas.
Notifications are typically temporary, so it makes sense for it to be an action. You could set a notification level and length. This seems kind of like an extension to the Alarm capability, in a way.
from schemas.
Additionally, they might be queued.
Even if you could read the display contents it's not guaranteed that it's your notification.
from schemas.
OK, yes that is sounding more like an action.
A few of things to think about:
- The name of an action is usually contains a verb
- An action is usually something carried out on a device, rather than carried out on a user by a device (i.e. the device is the object, not the subject)
- The action schema should be generic enough to be widely applicable to a range of devices
So what's a good name for the kinds of use cases you have in mind? Maybe something like DisplayMessageAction?
And what kind of input should a Thing expect to the action? Just a simple string? Or is there some other input which would be widely applicable enough to be part of the schema? (e.g. For "level", are "info" and "alert" too arbitrary? We had a similar discussion about the AlarmCapability.
from schemas.
How about NotifyAction
?
I think the message
parameter should be required.
As for the urgency
level: The Desktop Notifications Specification specifies three urgency levels:
- Low
- Normal
- Alert
from schemas.
How about NotifyAction?
I would argue that would make the user the object rather than the device.
I think the message parameter should be required
Makes sense.
Note that Web Notifications have a title and a body (amongst many other types of metadata).
from schemas.
I see that's what you meant by
the device is the object
Well then DisplayMessageAction
or better DisplayNotificationAction
would be fine.
from schemas.
Fixed by WebThingsIO/gateway#1758
from schemas.
Related Issues (20)
- AlertAction
- HumidityProperty HOT 1
- LightSensor + IlluminanceProperty HOT 1
- PlantSensor + ConductivityProperty + MoistureProperty HOT 2
- UV Index property
- Examples
- Need more alarm types HOT 1
- name -> title
- Replace TargetLockedProperty with LockAction and UnlockAction HOT 1
- Add support for plant sensors HOT 4
- Is this superseded by WoT Thing Description HOT 1
- Add "fake state" as a possible state. HOT 4
- SceneControl capability schema HOT 9
- Inspiration: zigbee2mqtt's API output HOT 2
- TimeAgoProperty HOT 5
- GeolocationProperty HOT 1
- Outdated Mozilla.org URL on this Github repo HOT 1
- Evaluate potential consolidation with iotschema.org HOT 1
- Consider extending the WoT `Thing` type
- Convert the schema to an rdf representation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schemas.