Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin SMS77 #257

Closed
patrickkass opened this issue Apr 16, 2017 · 24 comments
Closed

Plugin SMS77 #257

patrickkass opened this issue Apr 16, 2017 · 24 comments

Comments

@patrickkass
Copy link

Bei Fragen und Problemen zu BOSWatch oder Plugins bitte unten gennante Informationen angeben:

  • **BOSWatch Version: aktuelle

  • SMS77

  • Verbindungsdaten von SMS77 haben sich geändert. Plugin funktioniert nicht mehr.

@flothi
Copy link
Collaborator

flothi commented Apr 16, 2017

So wie ich das sehe betrifft das lediglich die aufgerufene URL?

@flothi
Copy link
Collaborator

flothi commented Apr 16, 2017

Ich habe im Master-Branch die aktuelle URL angepasst. (obwohl die alte bei mir auch geklappt hatte)

@patrickkass
Copy link
Author

patrickkass commented Apr 16, 2017

DANKE!

@flothi
Copy link
Collaborator

flothi commented Apr 16, 2017

Hast du deinen API-Key geändert? Was steht denn in der Boswatch.log?

@patrickkass
Copy link
Author

16.04.2017 19:56:33 - Sms77 [DEBUG ] send Sms77 ZVEI
16.04.2017 19:56:33 - Sms77 [ERROR ] cannot send SMS77 request
16.04.2017 19:56:33 - Sms77 [DEBUG ] cannot send SMS77 request
Traceback (most recent call last):
File "/opt/boswatch/plugins/Sms77/Sms77.py", line 77, in run
"text": data["description"]+"
"+data["msg"].replace(";", "
")
KeyError: 'msg'
16.04.2017 19:56:33 - Sms77 [DEBUG ] close Sms77-Connection
16.04.2017 19:56:33 - alarmHandler [DEBUG ] return from: Sms77

@patrickkass
Copy link
Author

...liegt vlt. an meinem RPi ;-). Normale SMS geht auch nur per sudo, trotz befolgen der Anleitung.

@flothi
Copy link
Collaborator

flothi commented Apr 16, 2017

Aah, du verwendest ZVEI und kein POC?

@patrickkass
Copy link
Author

jaaa, old school Landrettung

@flothi
Copy link
Collaborator

flothi commented Apr 16, 2017

Ok, dann muss das noch abgefangen werden - aktuell ist das sehr auf POC zugeschnitten.

Ich setze mich da heute abend mal dran

@patrickkass
Copy link
Author

Vielen vielen Dank!!!

@patrickkass
Copy link
Author

Kann das bei dem SMS Plugin auch an ZVEI liegen?

16.04.2017 20:16:16 - alarmHandler [DEBUG ] call Plugin: SMS
16.04.2017 20:16:16 - configHandler [DEBUG ] read [SMS] from config file
16.04.2017 20:16:16 - configHandler [DEBUG ] - quantity = 1
16.04.2017 20:16:16 - configHandler [DEBUG ] - ric1 = 1234567
16.04.2017 20:16:16 - configHandler [DEBUG ] - subric1 = a, b
16.04.2017 20:16:16 - configHandler [DEBUG ] - phonenumber1 = +4917XXXXXXXXX
16.04.2017 20:16:16 - configHandler [DEBUG ] - text1 = Rueckruf Leitstelle!
16.04.2017 20:16:16 - SMS [WARNING ] Invalid Typ: ZVEI
16.04.2017 20:16:16 - alarmHandler [DEBUG ] return from: SMS

@flothi
Copy link
Collaborator

flothi commented Apr 16, 2017

Japp, das tut es.
Ist allerdings das Plug-in SMS, das benötigt einen UMTS-Stick

@flothi
Copy link
Collaborator

flothi commented Apr 16, 2017

Für SMS77 gibt es im develop-Zweig jetzt ein update

@patrickkass
Copy link
Author

patrickkass commented Apr 17, 2017

Cool. Ich glaube bei cconn = httplib.HTTPSConnection("gateway.sms77.io",443) ist eine "c" zuviel.

Leider funktioniert es immer noch nicht. Mit der URL: https://gateway.sms77.io/api/sms?u=mXXXy&p=ZzoQXXXXXXcc16mdXXXXXYN&to=Administrator&text=meine%20erste%20nachricht&type=direct&from=Patrick&return_msg_id=1 geht es.

In der Log befindet sich folgender Eintrag:
17.04.2017 09:10:48 - alarmHandler [DEBUG ] call Plugin: Sms77
17.04.2017 09:10:48 - configHandler [DEBUG ] read [Sms77] from config file
17.04.2017 09:10:48 - configHandler [DEBUG ] - user = mxxxi
17.04.2017 09:10:48 - configHandler [DEBUG ] - password = ***
17.04.2017 09:10:48 - configHandler [DEBUG ] - to = Administrator
17.04.2017 09:10:48 - configHandler [DEBUG ] - from = Patrick
17.04.2017 09:10:48 - configHandler [DEBUG ] - type = direct
17.04.2017 09:10:48 - Sms77 [DEBUG ] ZVEI detected, building message
17.04.2017 09:10:48 - Sms77 [DEBUG ] send Sms77 ZVEI
17.04.2017 09:10:48 - Sms77 [DEBUG ] SMS77 response: 200 - OK
17.04.2017 09:10:48 - Sms77 [DEBUG ] close Sms77-Connection
17.04.2017 09:10:48 - alarmHandler [DEBUG ] return from: Sms77

Aber keine SMS kommt mit BOSWatch an...mit der obigen URL geht es.

@flothi
Copy link
Collaborator

flothi commented Apr 17, 2017

Vollkommen richtig, das c war zu viel

Warum keine SMS durchgeht muss ich nochmal schauen
###edit###
Habe die Message noch einmal angepasst, scheint, dass da noch ein Fehler war..

@flothi
Copy link
Collaborator

flothi commented May 1, 2017

Kann ich das als erledigt ansehen?

@patrickkass
Copy link
Author

Ich musste immer noch das SMS77-Plugin bearbeiten.
Zunächst funktioniert die Option "-M" im Sendebefehlt nicht.
Und bei mir musste ich den Sendebefehl im Script mit "sudo" durchführen (kann aber auch an mir liegen).

@patrickkass
Copy link
Author

Schon am SMS-Plugin weitergekommen?

@Schrolli91
Copy link
Owner

Schrolli91 commented May 18, 2017

@flothi
Gibt's hier schon nen Stand?
Funktioniert das SMS Plugin aktuell ordnungsgemäß?

@Schrolli91
Copy link
Owner

@flothi existiert der Bug nun eigentlich noch? Bzw. was war überhaupt das Problem, außer dem geänderten Link?

@flothi
Copy link
Collaborator

flothi commented Sep 20, 2017

Sorry für die Funkstille - ich muss es nochmal testen, zum Zeitpunkt des Issues war es damit erledigt.

@Schrolli91
Copy link
Owner

Okay.
Falls du keinen weiteren Fehler feststellen kannst - bitte Closen 👍

@flothi
Copy link
Collaborator

flothi commented Sep 20, 2017

Aye aye sir

@flothi
Copy link
Collaborator

flothi commented Sep 25, 2017

So, bei mir rennts ohne Fehler - im Zweifelsfall bitte neuen Issue erstellen

@flothi flothi closed this as completed Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants