-
Notifications
You must be signed in to change notification settings - Fork 85
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
Telefonnummern richten sich nach Anwesenheit #32
Comments
Da die Anforderung aus dem IP-Symcon Lager kommt evtl. über die JSON API Get eine oder mehrere Anwesenheits Variablen auslesen. In dieser steht idealerweise schon die Nummer, welche angerufen werden soll. Evtl über die Timeticks zyklisch auslesen lassen, falls in der doorpi.cfg angegeben. Würde das funktionieren Thomas? |
Hab meine Antwort dort noch nicht einmal gepostet, da geht es hier schon weiter - Wahnsinn...
Mir gefällt die erste Lösung besser, da es dann eine Rückfallebene gibt, wenn das IP-Symcon nicht verfügbar wäre. Das zyklische auslesen ist auch eine Möglichkeit. Allerdings belastet das die Systeme (unnötig) und ist ggf. ungenau. Zu hohe Belastung wenn es im Sekundentakt ausgelesen wird, zu ungenau, wenn es im Tagesrythmus ausgelesen wird. Irgendwo ist ein gesunder Mittelweg und dafür wäre es interessant, wie bisher Anwesenheit symbolisiert wird. Wo wird wann und wie welches Bit gesetzt? |
Viele setzen über die Anwesenheit des Handy´s (banal, oder?) die Anwesenheitsvariable. Diese alle 2-5min auszulesen würde IMHO die Systeme nicht belasten und ausreichend genau sein. |
@hermanthegerman2: Bitte mal testen :) |
hast eine PM. Sieht aber schon mal sehr gut aus. Hattest übrigens Recht, dass simplejson nicht unbedingt benötigt wird. Habe es heute nochmal getestet! |
Zwischenstand: IPS_Variable wird geholt, make_call macht Probleme! benötige Hilfe |
Heute Abend im IRC an bekannter Stelle? |
abgemacht! |
Moin, leider klappt das Script von hermanthegerman2 nicht mehr. Hast du ne Idee woran das liegen könnte? |
´´´ -- coding: utf-8 --import logging import doorpi def ips_rpc_create_config(): def ips_rpc_fire(method, config, *parameters): def ips_rpc_check_variable_exists(key, config = None): def ips_rpc_get_variable_type(key, config = None): def ips_rpc_get_variable_value(key, config = None): def ips_rpc_call_phonenumber_from_variable(key, config = None):
def get(parameters):
class IpsRpcCallPhonenumberFromVariableAction(SingleAction): |
Zeile 49 response = ips_rpc_fire('GetValue', config, key) editiert. Danach erfolgreich getestet. Issue kann geschlossen werden.
Wünsche von hier:
http://www.ip-symcon.de/forum/threads/26739-DoorPI-VoIP-Door-Intercomstation-with-Raspberry-Pi?p=245497#post245497
Meine Wünsche wären ...
V1. Ist wer zu Hause = Haustelefon und Videostream auf dem Monitor
V2. ist keiner zu Hause = Videostream auf dem Handy
VG
Andreas
The text was updated successfully, but these errors were encountered: