
Weiss einer, wie sich pushbullet finanziert?
Die Taskterintergration klingt spannend.

sh.pushbullet.link("Pushbullet", "http://www.pushbullet.com", body="Hier gehts zu Pushbullet.com")
curl -u <access token>: [url]https://api.pushbullet.com/api/pushes[/url] -d type=note -d title="Testnotiz" -d body="Inhalt der Nachricht" -d device_iden=<deviceId>
Pushbullet returns: Bad Request - Often missing a required parameter.
2014-06-22 20:17:38,558 INFO Main Starting new HTTPS connection (1): api.pushbullet.com -- connectionpool.py:_new_conn:657 2014-06-22 20:17:39,368 DEBUG Main "POST /api/pushes HTTP/1.1" 400 None -- connectionpool.py:_make_request:350 2014-06-22 20:17:39,381 WARNING Main Pushbullet returns: Bad Request - Often missing a required parameter. -- __init__.py:_push:73
[pushbullet]
class_name = Pushbullet
class_path = plugins.pushbullet
deviceid = Samsung GT-I9300
apikey = Accsess Token (api)
sh.pushbullet.note("Anwesenheit.", "Das Haus wurde ausgeschalten.")
git clone git://github.com/kennethreitz/requests.git cd requests sudo python3 setup.py install
Pushbullet
Requirements
Python libraries
requests - http://docs.python-requests.org/en/latest/user/install/#install
Other
Pushbullet API-KEY - get it from here for free
Configuration
plugin.conf
[pushbullet]
class_name = Pushbullet
class_path = plugins.pushbullet
# deviceid =
# apikey =
Description of the attributes:
apikey: set api-key globally so you do not have to set it in the function calls
deviceid: set deviceid globally so it will be used as defaul target, you can override this on each call
Functions
Pass a 'deviceid' if no set globally or if you want to send to another device.
Add 'apikey' if not set globally.
sh.pushbullet.note(title, body [, deviceid] [, apikey])
Send a note to your device.
Parameters
title: The title of the note
body: The note's body
Example
#send simple note to default device
sh.pushbullet.note("Note to myself.", "Call my mother.")
sh.pushbullet.link(title, url [, deviceid] [, apikey])
Send a link to your device.
Parameters:
title: The title of the page linked to
url: The link url
Example
# send link to device with id: x28d7AJFx13
sh.pushbullet.link("Pushbullet", "http://www.pushbullet.com", "x28d7AJFx13")
sh.pushbullet.address(name, address [, deviceid] [, apikey])
Send a address to your device.
Parameters:
name: The name of the place at the address
address: The full address or Google Maps query
Example
# send address of "Eifel Tower" to default device
sh.pushbullet.address("Eifel Tower", "https://www.google.com/maps/place/Eiffelturm/@48.85837,2.294481,17z/data=!3m1!4b1!4m2!3m1!1s0x47e66e2964e34e2d:0x8ddca9ee380ef7e0")
sh.pushbullet.list(title, title [, deviceid] [, apikey])
Send a list of items to your device.
Parameters:
title: The title of the list
items: The list items
Example
#send a shopping list to default device
sh.pushbullet.list("Shopping list", ["Milk", "Eggs", "Salt"])
sh.pushbullet.file(filepath [, deviceid] [, apikey])
Send a file to your device.
Parameters:
filepath: absolute path to the file to push
Example
#send smarthome log file to default device
sh.pushbullet.note("/usr/local/smarthome/var/log/smarthome.log")
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Einen Kommentar schreiben: