Jump to content

rtrbt

Administrators
  • Gesamte Inhalte

    1.411
  • Benutzer seit

  • Letzter Besuch

  • Tagessiege

    130

Alle erstellten Inhalte von rtrbt

  1. Hm vielleicht hingen da noch Pakete im Buffer vom Brick Daemon. Im Normalbetrieb sollte das nicht passieren, es sei denn du versuchst mehr als 1000 Nachrichten pro Sekunde an die Bricklets zu schicken. Z.B. wenn du den Counter vom Segment Display auf 1ms konfigurierst und parallel noch andere Sachen machst.
  2. Dass die Verzögerungen weg sind, kann ich dir spontan nicht erklären, vielleicht ist das Netzwerk weniger ausgelastet? Bist du dir sicher, dass du die Version ausführst, die ich angehangen habe? Diese Fehlermeldung kann von der neuen Version eigentlich nicht erzeugt werden, weil die Codezeilen, die ausgegeben werden, so nicht mehr vorkommen. In der neuen Version der tinkerforge_mqtt-Datei steht in Zeile 23 from collections.abc import Hashable Wenn das fehlt, hast du die falsche.
  3. Bezüglich des Zeichenproblems: Sieht die Antwort auch so aus wenn du sie mit mosquitto_sub -t 'tinkerforge/#' -h 192.168.1.18 abholst?
  4. Moin, die Bindings sollten eigentlich, abgesehen von der Netzwerklatenz, nicht langsam sein. Sind die Reaktionen auch verzögert, wenn du das ganze lokal testest? {"red": "{", "green": "\"", "blue": "r"} Das sieht kaputt aus. Die Zahlen sollten nicht als Zeichen interpretiert werden. Ist das Ausgabe von MQTT.fx? Das falsche (oder richtige, je nach dem ) Beispiel habe ich mal repariert, es dauert aber noch etwas bis es sichtbar wird. Bezüglich des 4x7 Displays, teste bitte mal ob das mit der angehangenen Variante der Bindings auch auftritt. Gruß und schönes Wochenende, Erik Edit: Du kannst übrigens testen ob die Bindings deine Nachrichten verstehen, indem du den --show-payload Parameter beim Starten mitgibst. Wenn die Bindings dann keine Fehlermeldungen mit dem Payload als string ausgeben, haben sie dich verstanden, wenn es dann nicht klappt, sind die Bindings kaputt. tinkerforge_mqtt_bindings_2_0_3.zip
  5. Your init file looks good, I've tested it here and got callback responses. You could run the bindings with the --debug parameter and check if there are the following lines in the output: <DEBUG> MQTT bindings: Calling function set_station_callback_configuration for device Es8 of type outdoor_weather_bricklet. <DEBUG> MQTT bindings: Calling function set_station_callback_configuration for device Es8 of type outdoor_weather_bricklet succedded. <DEBUG> MQTT bindings: Registered callback station_data for device Es8 of type outdoor_weather_bricklet. Will publish messages to tinkerforge/callback/outdoor_weather_bricklet/Es8/station_data. If these are printed, the bindings should publish a message under the callback topic when there is new data (can take about 45 seconds). The get_status_led_config request works here, but maybe there are some hints in your debug output.
  6. You don't have to configure the callbacky by hand. Instead you can use an init file, as described here. You could write a systemd service file. This is explained here. You should definitely use init-files then, or else you would have to reconfigure everything after a reboot.
  7. Bindings: MQTT 2.0.3 Crash beim Start ohne init-File behoben Unnötige Callbackmeldungen entfernt Behandlung von Timeouts verbessert Symbole von Callbackantworten werden jetzt übersetzt Download: MQTT
  8. Bindings: MQTT 2.0.3 Fix crash on start without init-file Remove unnecessary callback error message Fix handling of timeouts Translate symbols in callback responses Download: MQTT
  9. The official version 2.0.3 is now available here.
  10. The error messages are left-over debug code, I've removed them, this change will be in the next "official" version (will be posted in a few hours). The rest looks good to me. Are the callbacks of the outdoor weather station working too? One thing I've noticed in the documentation: The single quotes are only there to mark the payload, so if you use the MQTT-Explorer, you have to omit them.
  11. The message published to "callback/bindings/restart" is sent by the bindings to notify other bindings to print the warning you see. As your broker is running on another machine, my first guess is, that there is a timing problem here: Maybe the bindings see their own restart message. But I need to take another look. For now you can ignore the warning if you are sure, there is no other instance running. Your broker seems to run okay, you don't need to reinstall. For testing purposes you can try to enumerate the attached devices: publish {"register": true} to tinkerforge/register/ip_connection/enumerate and then publish an empty message to tinkerforge/request/ip_connection/enumerate You should then see responses for all found devices under the topic tinkerforge/callback/ip_connection/enumerate
  12. Hi, This was a problem on my end. Please try the attached version. To connect to a MQTT broker on another machine, you can run the bindings like this: sudo /usr/local/bin/tinkerforge_mqtt --broker-host <IP> MQTT-Explorer seems to subscribe automatically to all topics, so to see the sensor data, you only have to publish the messages listed in the example. tinkerforge_mqtt_bindings_fixed.zip
  13. Die MQTT-Bindings haben die Betaphase verlassen und sind jetzt auf der Tinkerforge-Seite verfügbar: https://www.tinkerforge.com/de/doc/Downloads.html Die Bindings unterstützen jetzt den --init-file Parameter, mit dem initiale Konfigurationsnachrichten aus einer Datei geladen werden können.
  14. The MQTT bindings have left the beta phase and are now available on the Tinkerforge home page: https://www.tinkerforge.com/de/doc/Downloads.html The bindings now support the --init-file parameter, which allows loading initial configuration from a file.
  15. Bindings: MQTT 2.0.2 First stable release Download: https://download.tinkerforge.com/bindings/mqtt/tinkerforge_mqtt_bindings_2_0_2.zip
  16. Bindings: MQTT 2.0.2 Erstes stabiles Release Download: https://download.tinkerforge.com/bindings/mqtt/tinkerforge_mqtt_bindings_2_0_2.zip
  17. Kein Problem, hauptsache es funktioniert jetzt. Gruß, Erik
  18. Hi Theo, Hast du noch ein anderes Programm parallel laufen, dass mit dem NFC-RFID-Bricklet kommuniziert? Im Log kommen über das state-changed-Callback Antworten auf Anfragen, die der Brick Viewer nicht abgesetzt haben kann. Das Flackern wird dann dadurch ausgelöst, dass das Bricklet in kurzer Zeit (~10ms) zwei Mal nach der Tag-ID sucht und erst die richtige ID findet und danach einen Fehler zurückgibt. Hattest du das Problem schon mit dem alten Brick Viewer?
  19. Theo, kannst du das Problem mit dieser Version http://download.tinkerforge.com/tools/brickv_pyqt5/beta1/macos/brickv_macos_2_4_0_theo.dmg reproduzieren und das Log, das in /tmp/brickv_nfc_debug_[Datum].log angelegt wird, hier posten? Danke, Erik
  20. Die MQTT-Bindings übersetzen die device_id übrigens automatisch auf den Devicenamen wie er in Topics verwendet wird und hängen in enumerate-Callback- und get_identity-Antworten den Display-Namen als _display_name-Feld an.
  21. Hi, Die Bindings brauchen etwas mehr manuelle Arbeit als die alte Proxy. Damit ein MQTT-Client die Daten erhält, muss ein Callback registriert, oder (periodisch) ein Getter aufgerufen werden. Die MQTT-Bindings verhalten sich hier genauso wie die Bindings der Programmiersprachen. MQTT-Broker-Verbindungsdaten lassen sich mit --broker-host [HOSTNAME/IP] und --broker-port [PORT] konfigurieren. Es gibt noch weitere Parameter für Authentisierung, Zertifikate usw., die mit --help angezeigt werden können. Ich werde das ganze aber mal noch in die Dokumentation einbauen. Gruß, Erik
  22. Bindings: Go 2.0.1 Erstes stabiles Release Download: http://download.tinkerforge.com/bindings/go/tinkerforge_go_bindings_2_0_1.zip
  23. Bindings: Go 2.0.1 First stable release Download: http://download.tinkerforge.com/bindings/go/tinkerforge_go_bindings_2_0_1.zip
  24. Hi, As of today, a beta version of the MQTT bindings 2.0 is available. Please tinker around with them and post any bugs, suggestions and other feedback here. The MQTT bindings are now generated like other programming language bindings. All Bricks and Bricklets are supported. The bindings map directly to the Python bindings, which is why they are not backwards-compatible to the old MQTT proxy. The MQTT proxy is now discontinued. The current version of the bindings is attached to this post, including examples. The bindings depend on Python >= 2.7.9 or >= 3.4 and the Paho library (>= 1.3.1) available here. The documentation can be found here Have a lot of fun! Erik Edit: Version 2.0.1 - Fix handling of JSON errors for Python 2 tinkerforge_mqtt_bindings_2_0_1.zip
  25. Moin, Seit heute ist eine Beta-Version der MQTT-Bindings 2.0 verfügbar. Experimentiert damit, wir freuen uns auf Feedback, Bugs und mehr. Die MQTT-Bindings werden jetzt, genau wie die Bindings anderer Programmiersprachen, automatisch generiert. Alle Bricks und Bricklets werden unterstützt. Die Bindings bilden die API der Python-Bindings ab, weshalb sie nicht rückwärtskompatibel zur alten MQTT-Proxy sind. Die MQTT-Proxy ist damit abgekündigt. Die aktuellen Bindings, sowie Beispiele im examples-Ordner, sind angehangen. Die Bindings hängen von Python >= 2.7.9 oder >= 3.4 und der Paho-Bibliothek (>= 1.3.1), die hier verfügbar ist, ab. Die Dokumentation ist hier zu finden Viel Spaß! Erik Edit: Version 2.0.1: - Fehlerbehandlung für JSON-Fehler in Python 2 überarbeitet. tinkerforge_mqtt_bindings_2_0_1.zip
×
×
  • Neu erstellen...