@zefau said in jarvis v2.2.0 - just another remarkable vis:
mit v2.2.0-beta.25
eine erste Version der Notifications.
Format siehe https://github.com/Zefau/ioBroker.jarvis/issues/56:
Also irgendwie bin ich dazu zu doof. Browser mit Jarvis läuft auf dem Tablet neben mir und meinem Laptop. Wenn ich dann bei
jarvis.0.addNotification
Folgendes eingebe
{
"title":"Eine Benachrichtigung",
"display": "snackbar",
"autoHideDuration": 5000
}
erscheint nirgends eine Notification. Witzig auch, dass sich der Datenpunkt "notification" ändert zu
[{"title":"huhu","content":"","timestamp":1617638796587,"priority":"normal","unread":true},{"title":"jhgjgjg","content":"","timestamp":1617638805224,"priority":"normal","unread":true},{"title":"","content":"{ \"title\":\"A title for the notification\", // required \"message\":\"A message for the notification\", // optional \"state\": \"unread | read | archived\", // optional, one of unread, read or archived (default is unread) \"criticality\":\"A criticality, which results in different icons\", // optional, one of none, error, warning, info or success (default is none) \"display\":\"Either 'drawer', 'snackbar' or 'popup' as described above\", // optional, one of drawer, snackbar, popup or none (default is popup) \"autoHideDuration\":\"Time in milliseconds the message is shown before disappearing\", // in milliseconds \"snackbarOrigin\": { \"horizontal\": \"...\", \"vertical\": \"\" }, // optional, applies when display is snackbar, { horizontal: 'center' | 'left' | 'right', vertical: 'bottom' | 'top' } \"focusTab\": \"tab ID to focus\", \"icon\":\"Custom icons, which overrides criticality\", \"iconColor\": \"darkred\", \"backgroundColor\": \"\", \"fontColor\": \"blue\", \"focusTab\": \"focus a certain tab\" // tab to focus \"callback\": () => console.log(\"hello world\") // invoke callback }","timestamp":1617638849191,"priority":"normal","unread":true},{"title":"Eine Benachrichtigung","content":"","timestamp":1617638935681,"priority":"normal","unread":true,"display":"snackbar","autoHideDuration":5000},{"title":"Achtung","content":"","timestamp":1617718235549,"priority":"normal","unread":true,"icon":"mdi-book-alert","message":"Die Post ist da","display":"popup","autoHideDuration":5000},{"title":"Achtung","content":"","timestamp":1617718291133,"priority":"normal","unread":true,"icon":"mdi-book-alert","message":"Die Post ist da","display":"popup","autoHideDuration":5000},{"title":"","content":"{ \"title\":\"A title for the notification\", // required \"message\":\"A message for the notification\", // optional \"state\": \"unread | read | archived\", // optional, one of unread, read or archived (default is unread) \"criticality\":\"A criticality, which results in different icons\", // optional, one of none, error, warning, info or success (default is none) \"display\":\"Either 'drawer', 'snackbar' or 'popup' as described above\", // optional, one of drawer, snackbar, popup or none (default is popup) \"autoHideDuration\":\"Time in milliseconds the message is shown before disappearing\", // in milliseconds \"snackbarOrigin\": { \"horizontal\": \"...\", \"vertical\": \"\" }, // optional, applies when display is snackbar, { horizontal: 'center' | 'left' | 'right', vertical: 'bottom' | 'top' } \"focusTab\": \"tab ID to focus\", \"icon\":\"Custom icons, which overrides criticality\", \"iconColor\": \"darkred\", \"backgroundColor\": \"\", \"fontColor\": \"blue\", \"focusTab\": \"focus a certain tab\" // tab to focus \"callback\": () => console.log(\"hello world\") // invoke callback }","timestamp":1617718422997,"priority":"normal","unread":true},{"title":"","content":"{ \"title\":\"A title for the notification\", \"message\":\"A message for the notification\", \"state\": \"unread\", \"display\":\"popup\", \"autoHideDuration\":\"1000\", \"icon\":\"house\", \"iconColor\": \"darkred\", \"backgroundColor\": \"red\", \"fontColor\": \"blue\", \"callback\": () => console.log(\"hello world\") // invoke callback }","timestamp":1619211385066,"priority":"normal","unread":true},{"title":"","content":"{ \"title\":\"A title for the notification\", \"message\":\"A message for the notification\", \"state\": \"unread\", \"display\":\"popup\", \"autoHideDuration\":\"1000\", \"icon\":\"house\", \"iconColor\": \"darkred\", \"backgroundColor\": \"red\", \"fontColor\": \"blue\", \"callback\": () => console.log(\"hello world\") // invoke callback }","timestamp":1619211404376,"priority":"normal","unread":true},{"title":"Eine Benachrichtigung","content":"","timestamp":1619211591683,"priority":"normal","unread":true,"display":"snackbar","autoHideDuration":5000},{"title":"Eine Benachrichtigung","content":"","timestamp":1619211605090,"priority":"normal","unread":true,"display":"snackbar","autoHideDuration":5000},{"title":"Eine Benachrichtigung","content":"","timestamp":1619211613264,"priority":"normal","unread":true,"display":"snackbar","autoHideDuration":5000},{"title":"Eine Benachrichtigung","content":"","timestamp":1619211657560,"priority":"normal","unread":true,"icon":"mdi-book-alert","message":"Mit Text!","display":"snackbar","autoHideDuration":5000,"anchorOrigin":{"horizontal":"right","vertical":"top"}},{"title":"Eine Benachrichtigung","content":"","timestamp":1619211677316,"priority":"normal","unread":true,"icon":"mdi-book-alert","message":"Mit Text!","display":"snackbar","autoHideDuration":5000,"anchorOrigin":{"horizontal":"right","vertical":"top"}}]
Hat jemand eine Idee?