From 053bbacb017769192562c75934e3a1cedd6584b7 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Mon, 27 Nov 2017 12:03:20 +0100 Subject: [PATCH] Umlaute in SMS Meldungen --- bin/smsmon.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/smsmon.py b/bin/smsmon.py index 55237b9..9d970b7 100755 --- a/bin/smsmon.py +++ b/bin/smsmon.py @@ -98,11 +98,11 @@ def send_mail(send_from, send_to, subject, text, files=None): def send_help(phonenumber,command): # SMS Maximale Groesse: 140 Zeichen 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 , z.B. help info""" +Nähere Hilfe: help , z.B. help info""" elif command == 'info': sms_message = """info - letzte Messwerte (SMS) @@ -111,19 +111,19 @@ info 201711 - Messwerte Nov. 2017 info 20171102 - Messwerte 2. Nov. 2017""" elif command == 'help': - sms_message = "Zeigt die moeglichen Befehle an" + sms_message = "Zeigt die möglichen Befehle an" 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': sms_message = "Anforderung Info zum Prepaid-Guthaben" elif command == 'reboot': - sms_message = "Neustart des Raspberry Pi's" + sms_message = "Neustart des BeieliPi's" 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! """ @@ -289,7 +289,7 @@ def hotspot_off(): os.system('/usr/bin/sudo %s/root-bin/hotspot_off' % (APP_ROOT)) 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):