Coder Social home page Coder Social logo

markus-perl / pushover-cli Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 11.0 31 KB

pushover-cli is a command line client for https://pushover.net to send pushover notifications. Moreover it is possible with this client to pipe streams directly to your cellphone like tail -f /var/log/my.log | pushover-cli -

Python 100.00%
pushover pushover-api pushover-cli pushover-http pushover-linux pushover-macos pushover-notifications pushover-wsl tail

pushover-cli's People

Contributors

b-onc avatar cjdg avatar der-pw avatar markus-perl avatar scottjwalter avatar seniorbook avatar

Stargazers

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

pushover-cli's Issues

SSL Verification error

I am trying to install pushover-cli on a Debian (buster) docker container. When I run pushover-cli, I am getting the following error:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

I realize that this is not a pushover-cli problem per se, but can anyone tell me how to go about resolving this? I tried a half dozen suggestions that a search of this error found but none seemed to help.

Missing Parentheses in Call to 'print'

Hi !

first of all thank you very much for this great pushover integration. I am struggling to get it to life. Following your README I adapted the /etc/pushover-cli.conf. But when executing pushover-cli it throws the following error:

โžœ ~ pushover-cli "test" "title" File "/usr/bin/pushover-cli", line 34 print message ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(message)?

Do you know what this could be? I am using following architecture:

`Python version

print (sys.version)
3.8.2 (default, Feb 26 2020, 22:21:03)
โžœ ~ uname -a
Linux T450 5.5.8-arch1-1 #1 SMP PREEMPT Fri, 06 Mar 2020 00:57:33 +0000 x86_64 GNU/Linux
`

May it be that only Python2 can be used? How to change pushover-cli to python2 without messing up the whole system?

Thank you very much !

Send Notification on Raspberry Pi Boot

Hello,

Your script works great when logged in to my Raspberry Pi via SSH.

I can run it as either user 'pi' or 'root'.

However, despite my best efforts, I cannot get it to send a message after the Raspberry Pi has booted.

I have tried changing the script shebang line, adding it to /etc/rc.local or in /etc/init.d/ as a script but it just will not send the Pushover message.

I can run it manually, but it will not work as a cron or bootup script.

Can you help please?

Thanks,

Paully

URL in the README doesn't point to markus-perl and command should be edited

Hi,

There are 2 issues I found in the README.

  1. When running the curl command points to the fork by ScottJWalter as opposed to markus-perl.

The command should read

sudo curl -o /usr/bin/pushover-cli https://raw.githubusercontent.com/markus-perl/pushover-cli/master/pushover-cli

Otherwise Scott's version gets loaded, which resulted in an issue for me as despite requiring python3, the code on that repository in the master branch still uses iteritems instead of items.

  1. The command examples at the end mention pushover instead of pushover-cli. The command should be consistent with the curl command.

Highest priority doesn't work

Hi,

the highest priority level doesn't work, it gives me Bad Request.

Trying with curl to send a notification with highest priority it seems that using this level requires an expire value too, here is the response that I get from curl:

{
  "expire": "must be supplied with priority=2",
  "errors": [
    "expire must be supplied with priority=2"
  ],
  "status": 0,
  "request": <some uuid>
}

From pushover api:

To send an emergency-priority notification, the priority parameter must be set to 2 and the retry and expire parameters must be supplied.

Thanks for the help.

Bad Request

I created a pushover-cli.conf file and when I try pushover-cli "test", I get a response of "Bad Request". What is the easiest way to diagnose this?

gettings `Open None` as a hyperlink in message

tool works great but I am getting Open None as a hyperlink at the end of every message
is it something on my end or is it default behavior?
although this can be fixed by using empty URL parameter, like this -u <user> -t <token> -l "" <message>

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.