Giter VIP home page Giter VIP logo

Comments (16)

tim-hellhake avatar tim-hellhake commented on July 17, 2024 1

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.

rzr avatar rzr commented on July 17, 2024

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.

raidnet-ms avatar raidnet-ms commented on July 17, 2024

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.

tim-hellhake avatar tim-hellhake commented on July 17, 2024

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.

mrstegeman avatar mrstegeman commented on July 17, 2024

This seems like it’s probably a duplicate of WebThingsIO/gateway#1758

from schemas.

tim-hellhake avatar tim-hellhake commented on July 17, 2024

For webservices this is true.
However, there are also devices which provide a notification mechanism.

from schemas.

benfrancis avatar benfrancis commented on July 17, 2024

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.

tim-hellhake avatar tim-hellhake commented on July 17, 2024

https://lametric.com
There would be one adapter which would discover n devices.
Also the devices would have properties.

from schemas.

benfrancis avatar benfrancis commented on July 17, 2024

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.

mrstegeman avatar mrstegeman commented on July 17, 2024

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.

tim-hellhake avatar tim-hellhake commented on July 17, 2024

Additionally, they might be queued.
Even if you could read the display contents it's not guaranteed that it's your notification.

from schemas.

benfrancis avatar benfrancis commented on July 17, 2024

OK, yes that is sounding more like an action.

A few of things to think about:

  1. The name of an action is usually contains a verb
  2. 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)
  3. 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.

tim-hellhake avatar tim-hellhake commented on July 17, 2024

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.

benfrancis avatar benfrancis commented on July 17, 2024

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.

tim-hellhake avatar tim-hellhake commented on July 17, 2024

I see that's what you meant by

the device is the object

Well then DisplayMessageAction or better DisplayNotificationAction would be fine.

from schemas.

tim-hellhake avatar tim-hellhake commented on July 17, 2024

Fixed by WebThingsIO/gateway#1758

from schemas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.