节点通知程序在Windows 10通知中显示 SnoreToast 。
如何同时删除SnoreToast和SnoreToast的图标?
js
df['session_id'] = np.where((df['time'] - df['time'].shift(1)).astype('timedelta64[m]').fillna(0)>60,1,0).cumsum()
df['start_time'] = df.groupby(['session_id'])['time'].transform(min)
display(df)
time session_id start_time
0 2019-01-01 01:10:00 0 2019-01-01 01:10:00
1 2019-01-01 01:15:00 0 2019-01-01 01:10:00
2 2019-01-01 01:20:00 0 2019-01-01 01:10:00
3 2019-01-01 02:20:00 0 2019-01-01 01:10:00
4 2019-01-01 05:00:00 1 2019-01-01 05:00:00
5 2019-01-01 05:15:00 1 2019-01-01 05:00:00
html
function noti_click() {
const notifier = require('node-notifier');
// Object
notifier.notify({
title : 'Admin panel',
message: 'Server is provisioned',
icon : './facebook.png',
appId : 'cyber'
}),
function (error, response, metadata) {
console.log(response, metadata);
}
}
答案 0 :(得分:1)
您可以在notify方法中添加appID:“您的应用程序ID”。这样可以解决您在生产环境中的问题
答案 1 :(得分:0)
您使用了错误的参数。您必须使用 appID
而不是 appId
。注意大小写。
另外,该值不能为空。包含空格 (" "
) 的字符串应该可以工作。