Fabio Manganiello
6019ba9db6
Wrote new Pushbullet handler for webpanel
2019-06-08 17:16:47 +02:00
Fabio Manganiello
38ebe87220
Get the device_id after initializing/creating the device
2019-03-07 20:11:32 +01:00
Fabio Manganiello
9324ad3f9b
Create a device if it doesn't exist
2019-03-07 20:05:40 +01:00
Fabio Manganiello
01006046e0
Don't try to push a Pushbullet note body to the bus if it's not a valid JSON
2018-12-27 22:45:31 +01:00
Fabio Manganiello
cff4563dae
Rewritten Pushbullet backend using pushbullet.py for better stability
2018-12-27 02:29:44 +01:00
Fabio Manganiello
f53d1c06dc
No need to be verbose upon Pushbullet websocket temporary disconnections
2018-12-24 14:33:27 +01:00
Fabio Manganiello
ef241b3769
More robust Pushbullet reconnection logic
2018-12-24 12:31:38 +01:00
Fabio Manganiello
b911d46315
Create a new event loop in the Pushbullet backend
2018-12-24 11:37:18 +01:00
Fabio Manganiello
6a48a53c0d
Typo
2018-12-24 11:30:10 +01:00
Fabio Manganiello
186ade8f18
Refactored Pushbullet backend to remove the dependency from websocket-client and rely only on websockets
2018-12-18 19:01:51 +01:00
Fabio Manganiello
284e0638f8
Always define msg so the function doesn't fail on exception
...
Reverted the previous retry logic for backend - it didn't really work
This reverts commit 4e0e4863a0
.
This reverts commit 964c7b5cf0
.
This reverts commit 6ce348365f
.
2018-10-25 20:46:34 +02:00
Fabio Manganiello
6ce348365f
Refactored backends to be more robust by wrapping the core logic into a try-except logic with sleep and retry
2018-10-25 19:46:13 +02:00
Fabio Manganiello
1ec0bd40d9
Updated docstrings
2018-07-23 02:11:16 +02:00
Fabio Manganiello
28862d743d
Adding backends documentation
2018-06-26 00:16:39 +02:00
Fabio Manganiello
4da74b1096
Refactored logging submodule
2018-06-06 20:09:23 +02:00
Fabio Manganiello
01c5bbadcd
Type should actually always be there
2018-05-13 11:49:42 +02:00
Fabio Manganiello
5e3b41c3ad
Made the Pushbullet backend more resilient in case of rogue messages with no type specified
2018-05-13 11:39:59 +02:00
Fabio Manganiello
19cfafb2c7
Making the HTTP poll events work
2018-01-10 03:14:27 +01:00
Fabio Manganiello
bad5ff339f
Latest push received in the last 5 seconds instead of 2
2018-01-07 13:18:01 +01:00
Fabio Manganiello
694d7ca62d
Support for PushBullet events on notifications, #36
2018-01-07 00:58:03 +01:00
Fabio Manganiello
4b819d5460
Another major refactoring. Among the other things, reintroduced local backend, made requests and responses working in every case, and properly handling stop events
2017-12-22 00:49:03 +01:00
Fabio Manganiello
bd5c80175f
- Major refactoring.
...
- More consistent naming for many methods, plus added a more extensive doc.
- Refactored the entry points for the daemon and the pusher into two
classes, easier to encapsulate and wrap into tests.
- Removed the local backend - managing the concurrency of two processes
reading and writing on the same socket at the same time was too much,
and its utility outside of the tests (which can have mock backends as
well) is quite modest.
- Managing stop events on the bus. Still some work to do tho.
- Fixed several bugs.
2017-12-20 20:25:08 +01:00
Fabio Manganiello
4a04e51da7
Major refactoring #2
2017-12-18 01:10:51 +01:00
Fabio Manganiello
339e7b73a5
Major refactoring.
...
Solves, among the others, #2 , #18 and #22
2017-12-17 16:15:44 +01:00
Fabio Manganiello
8c89a10710
Simplified backend interface, fixed some bugs with response management
2017-12-16 04:56:43 +01:00
Fabio Manganiello
ea3eef379a
No reference to self in static method
2017-12-14 01:58:42 +01:00
Fabio Manganiello
ee5b8e21a0
* If we get a push tickle on PushBullet, get that latest push
...
* Fixed device_id attribute name clash
2017-12-13 23:55:38 +01:00
Fabio Manganiello
898a4ffdef
Syntax error
2017-12-12 20:16:00 +01:00
Fabio Manganiello
f7202fd205
* PushbulletBackend.send_msg method refactored and removed pushbullet.py dependency
...
* Management of optional dependencies moved to setup.py
2017-12-12 20:14:02 +01:00
Fabio Manganiello
4b0706380e
Consistent logging info
2017-12-12 19:26:23 +01:00
Fabio Manganiello
6c2ea3767c
s/runbullet/platypush/g
2017-12-11 20:30:57 +01:00