mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-21 06:13:39 +00:00
change from python to python3
This commit is contained in:
parent
5ebbaba6f1
commit
d3da277d4f
15 changed files with 75 additions and 73 deletions
|
|
@ -10,8 +10,8 @@ SMS77-Plugin to send FMS-, ZVEI- and POCSAG - messages to SMS77
|
|||
"""
|
||||
|
||||
import logging # Global logger
|
||||
import httplib #for the HTTP request
|
||||
import urllib
|
||||
import http.client #for the HTTP request
|
||||
import urllib.request, urllib.parse, urllib.error
|
||||
from includes import globalVars # Global variables
|
||||
|
||||
#from includes.helper import timeHandler
|
||||
|
|
@ -80,9 +80,9 @@ def run(typ,freq,data):
|
|||
#
|
||||
logging.debug("send Sms77 %s", typ)
|
||||
|
||||
conn = httplib.HTTPSConnection("gateway.sms77.io",443)
|
||||
conn = http.client.HTTPSConnection("gateway.sms77.io",443)
|
||||
conn.request("POST", "/api/sms",
|
||||
urllib.urlencode({
|
||||
urllib.parse.urlencode({
|
||||
"u": globalVars.config.get("Sms77", "user"),
|
||||
"p": globalVars.config.get("Sms77", "password"),
|
||||
"to": globalVars.config.get("Sms77", "to"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue