Prevent runbullet from executing duplicate commands #208

Closed
opened 2022-07-05 01:39:13 +02:00 by blacklight · 0 comments
Owner

Created by: BlackLight

Commands sent via pusher or any PushBullet clients seem to be received twice on the websocket by the target host, e.g.:

Nov 06 11:31:49 einstein runbullet[30761]: INFO:root:Received push addressed to me: {'target': 'einstein', 'action': 'music.mpd.play'}
Nov 06 11:31:49 einstein runbullet[30761]: INFO:root:Received push addressed to me: {'target': 'einstein', 'action': 'music.mpd.play'}

Make sure that we skip the execution of the second command if the same message has already been received within the same second.

*Created by: BlackLight* Commands sent via pusher or any PushBullet clients seem to be received twice on the websocket by the target host, e.g.: ``` Nov 06 11:31:49 einstein runbullet[30761]: INFO:root:Received push addressed to me: {'target': 'einstein', 'action': 'music.mpd.play'} Nov 06 11:31:49 einstein runbullet[30761]: INFO:root:Received push addressed to me: {'target': 'einstein', 'action': 'music.mpd.play'} ``` Make sure that we skip the execution of the second command if the same message has already been received within the same second.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#208
No description provided.