Coder Social home page Coder Social logo

Comments (15)

frankjoke avatar frankjoke commented on July 18, 2024 1

Hallo Ingo und Danke, den einen icon-namen hab ich vergessen umzubenennen!
Auch die Methode mit info.connection ist super, habe beim XS1 eine permanente Verbindung mit dem xs1 wo es die Änderungen der States meldet und muss das jetzt für den compact mode umbauen denn bis jetzt wird bei Abbruch der Verbindung der Adapter restartet, was wir beide nicht wollen! Aber auch beim radar2 hab ich ein offenes dgram.socket welches auf DNS-Anfragen horcht und hoffe das richtig machen zu können dass internal neu gestartet wird...

Übrigens, wer betreut eigentlich discovery? Hätte einige Änderungen vorzuschlagen welche die Erkennung von vielen Geräten leicher macht (hab ja jetzt einiges mit radar2 experimentiert).

Discovery hatte bei mir nur die homematic und die fritzbox erkannt, kein hue, keine alexas, keine broadlinks (das hab ich jetzt korrigiert und einen pull request erzeugt) und auch kein harmony und schon gar nicht die Drucker und Samsung Fernseher. Will dann XS1 und KM200 dazunehmen.

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

How can I setup a test install to test compact mode. I asked this now already 5 times, the info in the forum did not work!

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

Info in Forum https://forum.iobroker.net/topic/18338/experimentell-js-controller-compact-mode/1 should work, do not forget steps 4 and 5!! ... Maybe the important info is that 1.6.0-dev branch no longer exists. User master instead

npm install ioBroker/ioBroker.js-controller

I asked this now already 5 times

Where? I can not find any of those 5 questions

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

Ingo,
I asked in the forum and the answers I got did not work, then I asked in all the issue requests (km200,radar, broadlink2). radar/radar2 geht nicht im compact mode wegen noble. km200, bmw und broadlink2 hab ich eigentlich schon umgebaut aber konnte es noch nicht testen, systeminfo, xs1 und statemachine kommen dann dran, aber vorher will ich wissen ob mein Umbau OK ist.

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

Was genau ist denn das Problem?
Wenn es der nicht mehr existierend 1.6.0-dev Branch ist dann siehe letzter Kommentar. Was ist es ggf sonst? Was genau geht nicht?

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

Ingo, the log below is what I get when I want tu update js-controller (in this case V1.4.2) with sudo npm install ioBroker/ioBroker.js-controller:

`
Cannot write file. Not critical: Error: EACCES: permission denied, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../../../reinstall.js'
Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat'
Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat'
Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iob.bat'
fs.js:885
return binding.mkdir(pathModule._makeLong(path),
^

Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp'
at Object.fs.mkdirSync (fs.js:885:18)
at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:398:58)
at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:219:23)
at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2303:5)
at Object. (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:86)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/unix-dgram):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/diskusage):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node iobroker.js setup first
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/frank/.npm/_logs/2019-03-25T17_48_09_691Z-debug.log
`

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

The same when I want to go to the 1.6.0-dev, in both cases iobroker is killed and need to be freshly installed. I test now on VM where I can backup an older snapshot instead of reinstallation.

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

Then please run latest version of Fixer Skript and try again do it work then?

There is something with your rights and yes this looks like whatever fixed roughly 10 days ago in installer and Fixer.

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

Ok, I bite the bullet and did a fresh install, and stopped iobroker immediately after install and did then 'npm install ioBroker/ioBroker.js-controller#1.6.0-dev'

js-controller shows now v2.0.0.
How can I set now than an adapter runs in compact mode or not? Is there an beta-admin for it?

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

Please see step 4 in forum. It is in iobroker-data/iobroker.json you need to add compact: true in commen when I remember correctly.

Additionally please remember: 1.6.0-dev is not updated anymore. 2.0.0 is now in Master branch! Somit could be that you muss latest changes now!

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

Ingo, have now radar2, bmw, km200 and broadlink2 on Admin 3 und except for radar2 set all to compact mode (but could still not test it).
All of the 4 adapters succeed also adapter checker and Travis (with the exeption of radar2 warning for compact mode). But I have a problem with this, the broadlink2-Adapter in the checker. Like with all other I set the extIcon and the link to it works, but adapter checker complains with [E112] extIcon must be the same as an icon but with github path! I tried everything but could not get it away...

p.s.: I would like to use this connection state in some adapters who are connected to devices (xs1 for example, the next adapter I need to update). Is there somewhere a description what I need to do in adapter to reflect connection state and potentially restart adapter if disconnected? I may use it also in radar2 in case noble's connection to bluetoothdrivers are lost!

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

Habe noch immer keine Antwort für oben aber ich schließe das jetzt mal da der adapter den compact mode jetzt unterstützen sollte.

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

Frank, you know how to else reach me ... And expecting answers within a day is somewhat unrealistic ...
To the icon: broadlink.png vs broadlink2.png?! Different files referenced ... use same file please

For connection: you create a channel "info" and a state connection in that, e.g. by defining as instanceObjects as https://github.com/Apollon77/ioBroker.meross/blob/master/io-package.json#L74 ... when you now set this state to "false" the light will be yellow (means Adapter is running but not connected) and if set to "true" the ligh is green.
Restarting adapter when disconnected (in fact not best practice because reconnection could be handled adapter internally!) you can do by calling adapter.stop/terminate/process.exit

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

Discovery: Bluefox, Ich und alle anderen die mit Issues und PRs helfen ;-))
PR habe ich gesehen. Am Wochenende waren wir alle auf Homematic-Usertreffen in kassel ... also gib uns ein bissl zum durchatmen und reagieren bitte :-) Wir sehen das

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

Nochmal zu Discovery: Ja alle Adapter sind noch nicht drin

from iobroker.broadlink2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.