Giter Site home page Giter Site logo

xbmc.service.pushbullet's Introduction

Hello world!

email LinkedIn Profile PGP

I discovered this world in the late 90s. I started as a self-taught developer (forum, newsgroups, e-zines) and quickly became a computer enthusiast (and geek) who loved the profession and the way of thinking. I still feel that way today.

A little more about me...

const elbowz = {
    pronouns: "He" | "Him",
    code: ["Javascript", "Python", "C/C++", "PHP", "HTML", "CSS"],
    freeTime: ["dev", "tech", "self-hosting", "electronics", "3d printing", "DIY", "movies"],
    technologies: {
        frontEnd: {
            js: ["Vue", "React", "Meteor", "Backbone", "Angular"],
        },
        backEnd: {
            js: ["Node", "FastAPI", "PHP"],
        },
        devOps: ["Arch/Ubuntu", "Apache", "Nginx", "Docker", "Grafana"],
        databases: ["MongoDB", "MariaDB", "InfluxDB", "Redis", "sqlite"],
        misc: ["ML", "Docker", "Ionic", "Kafka", "MQTT", "Netflix OSS", "Joint.js", "Firebase", "ReactiveX"]
    },
};

My GitHub Data

Emanuele Palombo's GitHub stats

xbmc.service.pushbullet's People

Contributors

elbowz avatar ruuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

xbmc.service.pushbullet's Issues

version 0.8.16b mirror incoming calls no longer works on non android stock phones

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

no attribute 'encode'

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<--

"View Channels" not working

In spite of having "View Channels" enabled in the addon's settings my subscribed channels (RSS feeds) aren't forwarded to Kodi.

Socket disconnection causing service to stop

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

Hebrew support

Hi,
is it possible to add Hebre support for text push?

thanks,

Send notifications?

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.

Service dies on network disconnect/suspend

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.

Kodi Repository

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.

Hebrew default language

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.

Pushed sent to all devices automatically dismissed by plugin: Version 081b

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 :)

the number of caller, in android stock is in the notification title

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:

  • Android Application name => Kodi Notification title
  • Android Notification body => Kodi notification sub-title

the number of caller, in android stock is in the notification title

http://forum.kodi.tv/showthread.php?tid=204567&pid=1834637#pid1834637

Playback issues

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.

Gap on XBMC/Kodi closing

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.