rdmtc / RedMatic

Node-RED packaged as Addon for the Homematic CCU3 and RaspberryMatic 🤹‍♂️
Apache License 2.0
534 stars 47 forks source link

rmupdate compatibility #109

Closed derkopp closed 5 years ago

derkopp commented 5 years ago

Hallo, die installation via rmupdate funktioniert generell sehr gut. Wünschenswert wäre es noch, wenn rmupdate automatisch erkennt, dass eine neue Version vorliegt und man direkt installieren kann - ohne bei jedem Update den Link zur tgz kopieren zu müssen.

hobbyquaker commented 5 years ago

Hmm, bei mir funktioniert das: image Was passiert denn wenn Du im Browser http://<ccu-adresse>/addons/redmatic/update_check.cgi aufrufst?

hobbyquaker commented 5 years ago

related: #65

derkopp commented 5 years ago

Im FF getestet: Ich erhalte den korrekten String: addons/redmatic/update_check.cgi -> 1.9.6 In rmupdate jedoch ist das Feld einfach leer:

bildschirmfoto 2018-11-25 um 17 23 57
derkopp commented 5 years ago

Hier ist die JSON:

bildschirmfoto 2018-11-25 um 18 07 54

Die Download URL ist leer.

helmsklamm commented 5 years ago

[Nachtrag] habe es gerade nochmal ausprobiert. War vorher nicht zu Hause... Meine Annahme war wohl leider falsch. Ich kann das Verhalten nicht mehr reproduzieren. Es wird nun immer die cgi zum Download angeboten. Ich vermute dass bei mir zuvor irgendwas aus dem Browser Cache kam und daher die Seite kurzfristig funktionierte. Bei mir kommt übrigens auch beim Klick auf den Button "Zusatz Software" der cgi download...

Hi Sebastian. Vielleicht hilft das: bei mir gab es auch Probleme dass die cgi Datei zum Download Angeboten (statt ausgeführt) wurde. Das hing mit den Sicherheitseinstellungen des neuen Security Wizards zusammen. Kann mich leider nicht erinnern welches Setting genau das war aber folgender Tipp. Custom settings (Benutzerdefiniert) verwenden und mal alles auf voll Zugriff stellen. Geht’s dann evtl wieder? Danach sukzessive die Settings so restriktiv wie mögl. Setzen.....

hobbyquaker commented 5 years ago

related: https://github.com/jens-maus/RaspberryMatic/issues/480

hobbyquaker commented 5 years ago

ich schließe hier mal, ich geh davon aus dass das die gleiche ursache hat wie #108 - allerdings kann ich da nix dran machen. Wird wieder funktionieren wenn Jens ein RaspberryMatic Bugfix Release veröffentlicht hat oder wenn Jan sein Addon anpasst.

derkopp commented 5 years ago

Ich mache mal wieder auf - auch mit neustem raspberrymatic, rmupdate und redmatic funktioniert die Anzeige eines Updates über rmupdate nicht.

bildschirmfoto 2018-12-09 um 13 55 06

addons/redmatic/update_check.cgi: 1.9.15

addons/rmupdate/rest.cgi?sid=@zIdf2Fgono@&path=/get_addon_info

[{
    "available_version": "2.4.1",
    "cgi": "/usr/local/etc/config/addons/www/mediola/update-check.cgi",
    "cgi_interpreter": "/bin/tclsh",
    "config_url": "/addons/mediola/index.html",
    "download_url": "",
    "id": "97NeoServer",
    "name": "NEO SERVER",
    "operations": "uninstall restart",
    "update": "/addons/mediola/update-check.cgi",
    "version": "2.4.0"
}, {
    "available_version": "",
    "cgi": "/usr/local/etc/config/addons/www/redmatic/update_check.cgi",
    "cgi_interpreter": "/usr/bin/env tclsh",
    "config_url": "/addons/redmatic/settings.cgi",
    "download_url": "",
    "id": "redmatic",
    "name": "RedMatic",
    "operations": "restart uninstall",
    "update": "/addons/redmatic/update_check.cgi",
    "version": "1.9.14"
}, {
    "available_version": "1.13.5",
    "cgi": "/usr/local/etc/config/addons/www/rmupdate/update.cgi",
    "cgi_interpreter": "/bin/tclsh",
    "config_url": "/addons/rmupdate",
    "download_url": "https://github.com/j-a-n/raspberrymatic-addon-rmupdate/raw/master/rmupdate.tar.gz",
    "id": "rmupdate",
    "name": "System-Update",
    "operations": "uninstall",
    "update": "/addons/rmupdate/update.cgi",
    "version": "1.13.5"
}]

Die Download-URL ist leer.