From 117b891478f016b944f041c5587de5edd60b2a53 Mon Sep 17 00:00:00 2001 From: Richie Crews Date: Sat, 10 Sep 2022 19:29:23 -0400 Subject: [PATCH] Removed debug module, also forgot to include config example in repo --- config.ini.example | 20 ++++++++++++++++++++ main.py | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 config.ini.example diff --git a/config.ini.example b/config.ini.example new file mode 100644 index 0000000..01b63ac --- /dev/null +++ b/config.ini.example @@ -0,0 +1,20 @@ +[opnsense] +url: https://192.168.1.1/api/core/firmware/status +self_signed: true +api_key: +api_secret: + +[emitter] +emitter: pushover +#emitter: telegram +#emitter: +# pushover +# telegram + +[pushover] +app_token: +user_token: + +[telegram] +token: +chatid: diff --git a/main.py b/main.py index 01ac301..bac0aee 100755 --- a/main.py +++ b/main.py @@ -2,7 +2,6 @@ # vim: set ts=4 sts=4 et sw=4 ft=python: # Python Modules -from pprint import pprint import json # Parse JSON from OPNsense import sys # Arguments and exit calls import argparse # Options