Zitat von: mrb am 27 April 2024, 15:39:47o dann auch mal hier die frage.Warum DOPPELTHREADS bzw. "Doppel-Posts"!!?
wie kann ich meine Alexa(s) dazu bewegen kommandos im Fhem auszuführen? In der laut google "Anleitung" https://www.mwinklerblog.de/smarthome/eigene-module/echodevice/#Get fehlen Beispiele komplett. Ich möchte gerne per Alexa mein Fhem vernsteuern und meine Solaranlage abfragen wieviel Watt gerade erzeugt werden. Kann mir da einer Helfen?
Zitat von: rudolfkoenig am 26 April 2024, 09:27:33format=json ist ein Aprilscherz, damit kriegt man den Text als JSON String:
ZitatExample json-format Output
When json-format is requested, the API attempts to detect any Horizons error message(s), capture them, and report them in the error field. Thus, if the error field is present in the output, an appropriate programmatic response can be issued.
In the following successful request, the content of interest will be in the JSON result field.
{
"signature" : {
"source" : "NASA/JPL Horizons API",
"version" : "1.0"
},
"result" : " \n \n*******************************************************************************\nEphemeris / WWW_USER Tue Sep 6 22:51:14 2022 Pasadena, USA / Horizons ...
}
Zitat von: frober am 27 April 2024, 08:53:10HTTPMOD könnte evtl. eine Lösung sein.
Zitat von: Shadow3561 am 27 April 2024, 12:44:39defmod mars HTTPMOD https://ssd.jpl.nasa.gov/api/horizons.api?format=json&COMMAND=499 60
attr mars extractAllJSON 1
Den Rest musst du selber machen.
Zitat von: mrb am 27 April 2024, 15:34:10also ich steig da nicht durch. mit "set textcommand xxx fhemcommand" macht er auf der realen Aussage "alexa xxx" ein fhemcommand?
Ein paar Beispiele wären in der Anleitung auch gut, aber das fehlt dar komplett
Zitat von: https://www.mwinklerblog.de/smarthome/eigene-module/echodevice/#Settextcommand [STRING] ECHODEVICE Hier kann ein Text Kommando abgesetzt werden. Alles was Ihr zur Alexa sprechen könnt, könnt Ihr hier in Textform an Alexa senden.Was ist daran nicht zu verstehen?
Zitat von: mrb am 27 April 2024, 14:44:50Habe als "Doku" das gefundenDoku?, aber da fehlen mir dann doch noch zb die Sachen die du mir jetzt schon alleine mit der Ausgabe gelernt hastDas war bzgl. textcommand...
Zitat von: freetz am 26 April 2024, 17:13:26...einmal testen könnte: Also einen Parameter, den man über MQTT abonniert hat, am Raum- oder Reglerdisplay ändern, um dann zu schauen, ob der veränderte Wert auch über MQTT übertragen wird.
...