Umlaute in SMS Meldungen
This commit is contained in:
parent
625e3b9777
commit
053bbacb01
|
|
@ -98,11 +98,11 @@ def send_mail(send_from, send_to, subject, text, files=None):
|
||||||
def send_help(phonenumber,command):
|
def send_help(phonenumber,command):
|
||||||
# SMS Maximale Groesse: 140 Zeichen
|
# SMS Maximale Groesse: 140 Zeichen
|
||||||
if command == '':
|
if command == '':
|
||||||
sms_message = """Moegliche Befehle:
|
sms_message = """Mögliche Befehle:
|
||||||
|
|
||||||
help, info, balance, reboot, shutdown, hotspot
|
help, info, manipulation, balance, reboot, shutdown, hotspot
|
||||||
|
|
||||||
Naehere Hilfe: help <befehl>, z.B. help info"""
|
Nähere Hilfe: help <befehl>, z.B. help info"""
|
||||||
|
|
||||||
elif command == 'info':
|
elif command == 'info':
|
||||||
sms_message = """info - letzte Messwerte (SMS)
|
sms_message = """info - letzte Messwerte (SMS)
|
||||||
|
|
@ -111,19 +111,19 @@ info 201711 - Messwerte Nov. 2017
|
||||||
info 20171102 - Messwerte 2. Nov. 2017"""
|
info 20171102 - Messwerte 2. Nov. 2017"""
|
||||||
|
|
||||||
elif command == 'help':
|
elif command == 'help':
|
||||||
sms_message = "Zeigt die moeglichen Befehle an"
|
sms_message = "Zeigt die möglichen Befehle an"
|
||||||
|
|
||||||
elif command == 'manipulation':
|
elif command == 'manipulation':
|
||||||
sms_message = "Manipulation - Schwarmalarm wird fuer %d Minuten abgeschaltet" % (config_data['manipulation_duration_minutes'])
|
sms_message = "Manipulation - Schwarmalarm wird für %d Minuten abgeschaltet" % (config_data['manipulation_duration_minutes'])
|
||||||
|
|
||||||
elif command == 'balance':
|
elif command == 'balance':
|
||||||
sms_message = "Anforderung Info zum Prepaid-Guthaben"
|
sms_message = "Anforderung Info zum Prepaid-Guthaben"
|
||||||
|
|
||||||
elif command == 'reboot':
|
elif command == 'reboot':
|
||||||
sms_message = "Neustart des Raspberry Pi's"
|
sms_message = "Neustart des BeieliPi's"
|
||||||
|
|
||||||
elif command == 'shutdown':
|
elif command == 'shutdown':
|
||||||
sms_message = """Herunterfahren des Raspberry Pi's
|
sms_message = """Herunterfahren des BeieliPi's
|
||||||
|
|
||||||
ACHTUNG: ZUM STARTEN MUSS STROM AUS- UND WIEDER EINGESTECKT WERDEN!
|
ACHTUNG: ZUM STARTEN MUSS STROM AUS- UND WIEDER EINGESTECKT WERDEN!
|
||||||
"""
|
"""
|
||||||
|
|
@ -289,7 +289,7 @@ def hotspot_off():
|
||||||
os.system('/usr/bin/sudo %s/root-bin/hotspot_off' % (APP_ROOT))
|
os.system('/usr/bin/sudo %s/root-bin/hotspot_off' % (APP_ROOT))
|
||||||
|
|
||||||
def command_not_understood(phonenumber, message):
|
def command_not_understood(phonenumber, message):
|
||||||
send_sms([phonenumber],'Befehl nicht verstanden: %s\n\nMoegliche Befehle: help, info, manipulation, balance, reboot, shutdown, hotspot' % (message[:50]))
|
send_sms([phonenumber],'Befehl nicht verstanden: %s\n\nMögliche Befehle: help, info, manipulation, balance, reboot, shutdown, hotspot' % (message[:50]))
|
||||||
|
|
||||||
|
|
||||||
def process_received_sms(phonenumber,message):
|
def process_received_sms(phonenumber,message):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue