This is a followup question to this comment about dismissing a notification on the Lametric clock. We use the Lametric clock to display notifications whenever a build fails. So far, someone would need to get up and physically press the button on the Lametric clock to dismiss the notification again. How can this be solved using powershell?
相关问题
- How to Debug/Register a Permanent WMI Event Which
- How can I do variable substitution in a here-strin
- Google places autocomplete suggestion without coun
- How to use a default value with parameter sets in
- Does powershell have a method_missing()?
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- 我用scrapy写了一个蛮简单的爬虫怎么封装成一个api啊
- C#调用PowerShell的问题
- 后端给前端的API接口是怎么用代码写的
- EscapeDataString having differing behaviour betwee
- Convert C# Object to Json Object
- Android camera2 API get focus distance in AF mode
- PowerShell Change owner of files and folders
To solve this, we first made a GET request to get a list of notifications IDs in the queue of the Lametric clock:
This will return an object with a property content containing a JSON string. This can be converted to a list of objects:
Taking the first element from that list we can generate the URI to call
and use that to dismiss the notification