diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-08-24 14:16:07 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-08-24 14:16:07 +0200 |
commit | ad285fae6de18fc786051f725d68340539c8e2d9 (patch) | |
tree | 31bbc516ee4638972566e73c5524c22f5138a063 /main.py | |
parent | 039132d2811f111fdd6ad777f681a6221d5cc829 (diff) | |
download | n_frontend_signal-ad285fae6de18fc786051f725d68340539c8e2d9.tar.gz n_frontend_signal-ad285fae6de18fc786051f725d68340539c8e2d9.zip |
trying with pysignald HEAD
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3,10 +3,9 @@ import os import sys import getopt -import json import requests -from signald import Signal +from .libs.pysignald.signald import Signal from configparser import ConfigParser @@ -46,7 +45,7 @@ def startup(number): # TODO: try catch response = requests.post('http://localhost:18080', - json={"command": match.group(1), "arguments": strip(match.group(2))}) + json={"command": match.group(1), "arguments": match.group(2).strip()}) answer = "" replies = response.json()['reply'] |