elbowz / xbmc.service.pushbullet Goto Github PK
View Code? Open in Web Editor NEWPushbullet Notification Client
License: GNU General Public License v3.0
Pushbullet Notification Client
License: GNU General Public License v3.0
On v10.0.0 & Kodi 17 nightlies, the default charset is Hebrew.
Can't quite find the GUI settings to change to a Latin based language.
It seems this add-on is marked as broken and currently unavailable in the main kodi repository. I was wondering if this is in error or if it is indeed broken in the current version.
To reproduce: Configure plugin to "show notification" for note pushes. Send a note push to all devices from chrome. Push appears on phone, tablet, etc, then appears on kodi. Once kodi processes and displays it, the push is dismissed by kodi, and so disappears from all devices.
If you turn off "show notification", the push stays on the other devices as designed. Same if I turn off XBMC.
I've run with debug turned on, but in both the failure and sucess cases the log just shows two lines:
23:30:25 T:140488669636352 DEBUG: [Pushbullet]: Updating last_modified: 1417869017.86
23:30:25 T:140488669636352 DEBUG: [Pushbullet]: New push (note) received: blah blah json blah
Love your addon guys :)
When I installed addon and configured token it returned below error. Am I missing a module maybe?
11:28:22 T:1690730816 ERROR: Exception
11:28:22 T:1690730816 ERROR: AttributeError
11:28:22 T:1690730816 ERROR: :
11:28:22 T:1690730816 ERROR: "Pushbullet instance has no attribute '_ws'"
11:28:22 T:1690730816 ERROR: in
11:28:22 T:1690730816 ERROR: <bound method Pushbullet.del of <lib.pushbullet.Pushbullet instance at 0x5fad78c8>>
11:28:22 T:1690730816 ERROR: ignored
11:28:22 T:1690730816 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'int' object has no attribute 'encode'
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/xbmc.service.pushbullet/service.py", line 259, in
Service()
File "/storage/emulated/0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/xbmc.service.pushbullet/service.py", line 47, in init
self.run()
File "/storage/emulated/0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/xbmc.service.pushbullet/service.py", line 98, in run
showNotification(localise(30101), ex.args[0], self.serviceNotifcationTime)
File "/storage/emulated/0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/xbmc.service.pushbullet/lib/common.py", line 28, in showNotification
title.encode('utf-8', 'ignore'), message.encode('utf-8', 'ignore'), timeout, icon))
AttributeError: 'int' object has no attribute 'encode'
-->End of Python script error report<--
More info on stackoverflow.com
Another pushbullet lib with the same issue
In notification in xbmc russian symbols replaced to space or something like this
The other bad thing of my code is websocket. I will try to explain...
If you try to close xbmc, It will wait Pushbullet add-on going down, but the "websocket listen" is a blocking function (https://github.com/elbowz/xbmc.service.pushbullet/blob/master/lib/external/websocket/_app.py#L150)
....
For that I have set a ping_timeout here: https://github.com/elbowz/xbmc.service.pushbullet/blob/master/lib/pushbullet.py#L218
The issue: now Kodi waits 2 seconds (ping_timeout) waiting Pushbullet addon closing :(
I have tried to wrap websocket in a thread but however it don't close...
I could reduce ping_timeout to 1 second, but I don't know is a good solution.
Any ideas?
Hello again
Thank for the fix on galaxy nexus (or all stock android).
I have been testing it now and it works great with the latest version. 0.8.16b
But I have one new problem with this version:
On my phone "Samsung Note 3" it no longer displays incoming call at all. Everything else seams to work fine but not incoming calls. I have tried it on 3 different computers. It's not really a problem because I can use version 0.8.12b for my phone and version 0.8.16b for my girlfriends phone. But I can't do any updates if you add any new cool stuff.
Here is my log with enabled debug: http://xbmclogs.com/show.php?id=350658
pastebin if xbmclogs.com is not working: http://pastebin.com/ua6TA4yp
Since registration is working now i tested some example files.
When starting a local ISO no notification was send
16:23:28 T:2724 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: cannot identify image file
Traceback (most recent call last):
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\xbmc.service.pushbullet-master\lib\common.py", line 119, in onNotification
self.onNotificationAction(sender, method, json)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\xbmc.service.pushbullet-master\service.py", line 230, in _onKodiNotification
icon = fileTobase64(posterFile, imgFormat='JPEG', imgSize=(80, 80))
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\xbmc.service.pushbullet-master\lib\common.py", line 90, in fileTobase64
img = Image.open(file)
File "C:\Program Files (x86)\XBMC\addons\script.module.pil\lib\PIL\Image.py", line 1980, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
-->End of Python script error report<--
A simple mp4 file did.
Hi,
is it possible to add Hebre support for text push?
thanks,
"Action on pushes dismissed" works on Chrome but it does not on Android...I have wrote to Pushbullet team (I hope answer me).
In spite of having "View Channels" enabled in the addon's settings my subscribed channels (RSS feeds) aren't forwarded to Kodi.
Hi ruuk,
I know the issue form is for end users...but I'm also an end user of Pushbullet add-on :)
Maybe, when add-on receive a push link with a "raw" media (kodi supported) playback don't start.
For reproduce the issue can you try to push this link: http://movietrailers.apple.com/movies/independent/beforeigotosleep/beforeigotosleep-tlrr_h480p.mov
02:18:22 T:1838354280 ERROR: [Pushbullet]:
02:18:22 T:1838354280 ERROR: No handlers could be found for logger "root"
02:18:22 T:1826903144 ERROR: /storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.pushbullet/lib/external/websocket/_core.py:837: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
message = getattr(e, 'strerror', getattr(e, 'message', ''))
02:18:22 T:1826903144 ERROR: Exception in thread Thread-3:
Traceback (most recent call last):
File "/home/jenkins/workspace/XBMC-Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/threading.py", line 532, in __bootstrap_inner
File "/home/jenkins/workspace/XBMC-Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/threading.py", line 484, in run
File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.pushbullet/lib/external/websocket/_app.py", line 108, in _send_ping
self.sock.ping()
File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.pushbullet/lib/external/websocket/_core.py", line 645, in ping
self.send(payload, ABNF.OPCODE_PING)
File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.pushbullet/lib/external/websocket/_core.py", line 602, in send
return self.send_frame(frame)
File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.pushbullet/lib/external/websocket/_core.py", line 628, in send_frame
l = self._send(data)
File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.pushbullet/lib/external/websocket/_core.py", line 832, in _send
return self.sock.send(data)
File "/home/jenkins/workspace/XBMC-Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/ssl.py", line 94, in <lambda>
File "/home/jenkins/workspace/XBMC-Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/ssl.py", line 174, in send
error: [Errno 104] Connection reset by peer
02:18:22 T:1838354280 DEBUG: [Pushbullet]: Socket closed
Would be cool to enable new option for handling video, audio and image pushes - enqueue (add to current playlist)
I've tested both suspend and disconnecting from the network and the service dies silently (no log messages).
The only evidence I see in the log is the message:
13:17:57 T:140560564410112 ERROR: No handlers could be found for logger "root"
This message also appears on Kodi shutdown. I'm pretty sure this message comes from the WebSocket api.
While watching a movie or tv show if I send Kodi.Pushbullet an srt file or a link to a sub file switch to those subtitles.
Nice addon.
I was wondering if your planning to let it send notifications also instead of receiving only?
Would be nice if it could send notifications based on certain actions, for example:
System updates
Addon updates
Start/finished watching
etc.
I'm using this addon to mirror the phones to xbmc.
I have a Samsung note 3 and everything works great but my girlfriend have a galaxy nexus and when someone is calling her it only displays:
"Incoming Call" and not the contact name as when someone calls my phone.
The problem is that add-on view only:
the number of caller, in android stock is in the notification title
http://forum.kodi.tv/showthread.php?tid=204567&pid=1834637#pid1834637
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.