Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Uwe1958

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Profile
    • Following 1
    • Followers 1
    • Topics 5
    • Posts 11
    • Best 3
    • Groups 2

    Uwe1958

    @Uwe1958

    Developer

    3
    Reputation
    16
    Profile views
    11
    Posts
    1
    Followers
    1
    Following
    Joined Last Online

    Uwe1958 Follow
    Developer Starter

    Best posts made by Uwe1958

    • RE: Bluesound Node 2i

      @rookie50

      I made an adapter for bluesound devices. I myself own a Node 2i and am able to control it via Vis and the adapter.

      The adapter is available in https://github.com/Uwe1958/ioBroker.bluesound

      You could try it and give feedback if this is of interest to you or if you have issues/suggestions.

      Best regards

      @Uwe1958

      posted in ioBroker Allgemein
      Uwe1958
      Uwe1958
    • Test Adapter bluesound v.0.0.x GitHub
      Aktuelle Test Version 0.1.5
      Veröffentlichungsdatum 04.02.2023
      Github Link https://github.com/Uwe1958/ioBroker.bluesound

      Wer einen Bluesound Streamer zu Hause hat, der kann mit diesem Adapter den Streamer auch mit ioBroker steuern.

      Der Adapter ersetzt nicht die Bluesound App, mit der der Streamer konfiguriert wird. Er kann aber Presets starten bzw. stoppen und die Lautstärke des Players verändern.

      Nach Installation des Adapters von GitHub muss die lokale IP des Streamers im Netzwerk eingetragen werden. Der Parameter Polling Time ist optional und definert das Auffrischintervall in ms für die Texte. Ist dort nichts eingegeben wird das Standardintervall von 30.000 ms benutzt.

      Der Adapter legt beim Start Objekte an, die die Steuerung und Visualisierung ermöglichen:

      af38e7a1-03d1-47f5-ae57-95a50728c3c3-grafik.png

      In der Rubrik 'control' kann man über die States 'pause', 'play' und 'stop' die Wiedergabe starten bzw. stoppen indem man das entsprechende Objekt auf 'wahr' setzt. Mit 'volume' wird die Lautstärke verändert.

      In der Rubrik 'info' werden Modelname und Name im Netzwerk angezeigt. Die Werte 'title1' bis 'title3' enthalten Informationen zum gerade abgespielten Titel, die im Zyklus der anfangs definierten Auffrischzeit neu gesetzt werden.

      Anschließend werden 'Preset1' bis 'Preset5' automatisch aus den im Player definierten Favoriten erzeugt. Diese enthalten jeweils Objekte zur Darstellung des Logos ('image') und des Namens ('name'). Mit 'start' kann das entsprechende Preset gestartet werden.

      Mit diesen Werten kann man über vis eine Oberfläche zur Steuerung des Players realisieren.

      Ich habe diesen Adapter mit den beiden Bluesound Modellen 'PulseFlex' und 'Node' in Betrieb. Ich denke aber, der Adapter läuft auch mit anderen Modellen bzw. vielleicht gibt es Rückmeldungen zu notwendigen Anpassungen.

      Noch nicht realisiert habe ich die Benutzung der Library, um einen Titel aus dieser zu spielen.

      Vor der endgültigen Veröffentlichung findet sich vielleicht jemand, der diesen Adapter testen kann. Anmerkungen bzw. Fehlermeldungen bitte in die Issues in GitHub eintragen.

      posted in Tester
      Uwe1958
      Uwe1958
    • Test Adapter Bluesound v1.1.x

      Aktuelle Version: 1.1.4
      Veröffentlichungsdatum: 01.12.2024
      Github Link: https://github.com/Uwe1958/ioBroker.bluesound
      npm Package: iobroker.bluesound@1.1.4

      Adapter to control Bluesound devices

      Bluesound devices like Pulseflex or Node can be controlled by this adapter. Config parameters are the IP of the device and the PollingTime in msec. The status of the player is polled in the interval set by pollingtime. Newer NAD devices use the same functionality.

      Functions included

      The adapter uses API calls in the format: http://--playerIP--:11000/xxx

      At startup the presets defined in the player are read from the device and added as objects to the 'presets' channel. The information stored for each preset are: ID, Url to logo and preset name. The player model and name are also read on start-up and stored in the 'info' channel.

      When player is playing the submitted titles are shown in the 'info' channel. The player status is polled in the interval set by '.config.pollingtime' and the result is stored in '.control.state' as well as in '.info.*'.

      All these objects can be used in a vis project to display info from the player and control the player.

      The following functions are implemented:

      • Player Stop (triggered by setting '.control.stop' to true)
      • Player Start (triggered by setting '.control.start' to true)
      • Player Pause (triggered by setting '.control.pause' to true, toggle mode)
      • PresetX Start (triggered by setting '.presets.presetX.start' to true)
      • Change Volume (triggered by changing '.control.volume')

      I developed and tested the adapter on a PulseFlex and Node device. It may need to be adapted for other types.

      Please test the adapter. Any comments or requirements can be put into the issues of the github repo.

      posted in Tester
      Uwe1958
      Uwe1958

    Latest posts made by Uwe1958

    • RE: Anzeige Gerätestatus

      @mcm1957

      Vielen Dank für die Antwort. Ich hatte die Änderungen bisher nur im dev-server gemacht.

      Nachdem ich dev-server update gemacht habe ist die Anzeige im dev-server nun so, wie ich mir das wünsche.

      Werde nun die Änderungen ins Repo übertragen und eine neue Version erstellen.

      Uwe

      posted in Entwicklung
      Uwe1958
      Uwe1958
    • Anzeige Gerätestatus

      Wer kann mir sagen, wodurch die Gerätestatus Update Anzeige getriggert wird? Ich habe in meinem Adapter die dataSource (in io-package.json) auf 'push' gesetzt und der Status (info.connection) wird im Code regelmäßig gesetzt.

      Dennoch wird auf der Adapters Seite gezeigt, dass der Gerätestatus nur vermutet wird (siehe Screenshot)

      Adapaters.png

      Wie kann man das ändern?

      Vielen Dank für Eure Antworten

      Uwe

      posted in Entwicklung
      Uwe1958
      Uwe1958
    • RE: Upload to repository fails

      @mcm1957
      Den neuen Token habe ich in GitHub eingetragen.

      Leider gibt es keine Möglichkeit (mehr) das Ablaufdatum für Tokens offen zu lassen. Ebenso ist die von Dir gezeigte mittlere Möglichkeit bei der 2FA nicht mehr vorhanden. Geht also wohl nur entweder/oder.

      posted in Entwicklung
      Uwe1958
      Uwe1958
    • RE: Upload to repository fails

      @mcm1957

      Vielen Dank für die Antwort. Es scheint bei mir ein generelles Problem der npm Authentifizierung zu sein.

      Es fing damit an, dass mein access token abgelaufen war und ich einen Neuen erstellen musste. In diesem Zuge habe ich npm auch auf 2FA umgestellt.

      Das nmp login funktioniert, jedoch kann ich nun auch keine neue Version nach npm mehr hochladen (ich benutze hierfür das release script von @AlCalzone

      Beim deploy Schritt gibt es immer den folgenden Fehler:

      Run npm config set //registry.npmjs.org/:_authToken=***
        npm config set //registry.npmjs.org/:_authToken=***
        npm whoami
        npm publish 
        shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
      ##[debug]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/_temp/d52f83bf-713e-4f05-b616-402c58eaef5e.sh
      npm error code E403
      npm error 403 403 Forbidden - GET https://registry.npmjs.org/-/whoami
      npm error 403 In most cases, you or one of your dependencies are requesting
      npm error 403 a package version that is forbidden by your security policy, or
      npm error 403 on a server you do not have access to.
      
      

      Ich habe nun versucht, die letzten Schritte manuell zu machen.

      Bei dem Versuch mit npm config set ... bekomme ich wieder die Fehlermeldung mit E403.
      Mache ich stattdessen ein npm login, kann ich mich anmelden (mit 2FA).
      Das npm whoami und das npm publish funktionieren dann hinterher und ich habe jetzt eine neue Version auf npm.

      Ich werde nun auch versuchen, das update in das ioroker Repository manuell zu machen. Vielleicht funktioniert das.

      posted in Entwicklung
      Uwe1958
      Uwe1958
    • Upload to repository fails

      Ich habe einen Adapter entwickelt und auf npm veröffentlicht.

      Nun wollte ich den Adapter auch in das ioBroker Repository hochladen und bekomme aber folgende Ausgabe. Ich kann daraus aber leider nicht ersehen, was der Fehler ist.

      Screenshot3.jpg

      Kann mir da jemand weiterhelfen?

      Vielen Dank

      posted in Entwicklung
      Uwe1958
      Uwe1958
    • Test Adapter Bluesound v1.1.x

      Aktuelle Version: 1.1.4
      Veröffentlichungsdatum: 01.12.2024
      Github Link: https://github.com/Uwe1958/ioBroker.bluesound
      npm Package: iobroker.bluesound@1.1.4

      Adapter to control Bluesound devices

      Bluesound devices like Pulseflex or Node can be controlled by this adapter. Config parameters are the IP of the device and the PollingTime in msec. The status of the player is polled in the interval set by pollingtime. Newer NAD devices use the same functionality.

      Functions included

      The adapter uses API calls in the format: http://--playerIP--:11000/xxx

      At startup the presets defined in the player are read from the device and added as objects to the 'presets' channel. The information stored for each preset are: ID, Url to logo and preset name. The player model and name are also read on start-up and stored in the 'info' channel.

      When player is playing the submitted titles are shown in the 'info' channel. The player status is polled in the interval set by '.config.pollingtime' and the result is stored in '.control.state' as well as in '.info.*'.

      All these objects can be used in a vis project to display info from the player and control the player.

      The following functions are implemented:

      • Player Stop (triggered by setting '.control.stop' to true)
      • Player Start (triggered by setting '.control.start' to true)
      • Player Pause (triggered by setting '.control.pause' to true, toggle mode)
      • PresetX Start (triggered by setting '.presets.presetX.start' to true)
      • Change Volume (triggered by changing '.control.volume')

      I developed and tested the adapter on a PulseFlex and Node device. It may need to be adapted for other types.

      Please test the adapter. Any comments or requirements can be put into the issues of the github repo.

      posted in Tester
      Uwe1958
      Uwe1958
    • RE: Test Adapter VW Connect für VW, ID, Audi, Seat, Skoda

      @tombox Ich bin seit kurzem Besitzer eines Cupra Born und konnte über den Adapter (Version 0.0.63) schon einige Dinge (Batterieinfo, Ladeinfo, km Stand) abrufen. Jedoch sind die anderen Datenfelder (z.B. Position) nicht vorhanden. Es gibt in den Objekten keine data ... Punkte.

      Ich nehme an, dass der Adapter noch nicht das doch sehr neue Modell richtig auslesen kann. Für das Auto gibt es ja auch eine neue App (MyCupra statt CupraConnect). Wahrscheinlich muss ich noch ein wenig warten. Oder kann man noch etwas anderes ausprobieren?

      Habe den Adapter mal auf debug umgestellt. In den Logs ist auch ersichtlich, dass ein Fahrzeug gefunden wurde und Daten teilweise geholt werden.

      vw-connect.0 2023-03-25 13:39:57.704 info Found 1 vehicles
      vw-connect.0 2023-03-25 13:39:57.018 info Login successful
      vw-connect.0 2023-03-25 13:39:54.572 info Login in with seatcupra
      vw-connect.0 2023-03-25 13:39:54.524 info starting. Version 0.0.63 (non-npm: ta2k/ioBroker.vw-connect) in /opt/iobroker/node_modules/iobroker.vw-connect, node: v16.19.1, js-controller: 4.0.24

      Es gibt aber auch einen Eintrag:

      vw-connect.0 2023-03-25 13:35:36.461 debug Error: Invalid protocol: cupra:

      posted in Tester
      Uwe1958
      Uwe1958
    • RE: Bluesound Node 2i

      @rookie50

      I made an adapter for bluesound devices. I myself own a Node 2i and am able to control it via Vis and the adapter.

      The adapter is available in https://github.com/Uwe1958/ioBroker.bluesound

      You could try it and give feedback if this is of interest to you or if you have issues/suggestions.

      Best regards

      @Uwe1958

      posted in ioBroker Allgemein
      Uwe1958
      Uwe1958
    • RE: Anfängerfrage [gelöst]

      @liv-in-sky

      Wirklich so einfach?

      Scheint aber zu funktionieren!

      Vielen Dank

      Uwe

      posted in JavaScript
      Uwe1958
      Uwe1958
    • Anfängerfrage [gelöst]

      Ich möchte ein Testscript in der Script Umgebung erstellen und scheitere an einem grundlegenden Problem beim Einsatz von zusätzlichen Modulen:

      Die Zeile
      const axios = require('axios');
      liefert die Meldung: Cannot find module 'axios' or its corresponding type declarations.(2307)

      Dabei habe ich axios als zusätzliches Modul im Adapter genannt.

      Was habe ich da falsch gemacht?
      axios ist installiert.
      Ein npm ls axios liefert:

      iobroker.javascript@6.0.3 /opt/iobroker/node_modules/iobroker.javascript
      └── axios@1.1.2

      Vielen Dank für eine Anregung

      Uwe

      posted in JavaScript
      Uwe1958
      Uwe1958
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo