Skip to content

Dockerized push notifications on events from the unix journal.

License

Notifications You must be signed in to change notification settings

mihaigalos/pushnotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pushnotify

Dockerized push notifications on events from the unix journal. A REST notification service (i.e. Catapush) can be used.

Usage

Prerequisites

  • docker-compose
  • just
  • environment variables set in ~/.profile
    • export PHONE_NUMBER=431234567890 (first 2 digits: country code. 43 for Austria).
    • export CATAPUSH_TOKEN=abcdefgh

Install

Build the docker (aarch64 / arm64 default) :

just build

For amd64:

just build linux/amd64

Running

just run

By default, a TTY will be allocated and pushnotify will run in foreground. To run in daemon mode (background):

just run -d

Extending

To extend, just write your own handler (function handler_<handler_name>)in the push.sh. It will automatically be called by the logic.

Screenshots

alt text

Journalctl log snippet

Oct 02 10:15:07 bambam ovpn-server[1815]: 192.168.0.1:50541 [iPhone_Mihai_20210918] Peer Connection Initiated with [AF_INET]192.168.0.1:50541
Oct 02 10:16:44 bambam ovpn-server[1815]: 213.142.97.150:62531 [iPhone_Mihai_20210918] Peer Connection Initiated with [AF_INET]213.142.97.150:62531

About

Dockerized push notifications on events from the unix journal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published