toddrob99 / pyprowl Goto Github PK
View Code? Open in Web Editor NEWPython module for sending Prowl notifications
License: GNU General Public License v3.0
Python module for sending Prowl notifications
License: GNU General Public License v3.0
This might not be the proper method but I like what I get so far from pyprowl but cannot pass a variable to any of the sections in notify.
I'd like to have each "event" contain a variable with the thing I am watching for. I am running this in a for loop and want to send a Prowl notification when I see the item I am watching for but it errors out. I feel like it might be possible but I just can't figure it out!
Trying out your example code unfortunately does not work for me, as you can see below from the output:
Traceback (most recent call last):
File "p.py", line 3, in <module>
p = pyprowl.Prowl('MY_KEY')
AttributeError: 'module' object has no attribute 'Prowl'
I installed the module with sudo pip install pyprowl
and am using Python 2.7.16 on Raspbian 10 (buster).
I can't seem to make your library work with Python 3 as it is looking for urllib2 which is for Python 2 as you can see from the output below:
File "/usr/local/lib/python3.5/dist-packages/pyprowl/__init__.py", line 76, in notify
return self.api_call('add',data)
File "/usr/local/lib/python3.5/dist-packages/pyprowl/__init__.py", line 91, in api_call
import urllib2, urllib
ImportError: No module named 'urllib2'
Would it be possible to make your code compatible also with Python 3?
Thank you very much in advance.
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.