kmalinich / node-bmw-client

A node.js powered interface for E38/E39/E53 + E6x/E9x BMW vehicles (Client side)
MIT License
143 stars 23 forks source link

DRL Lights #25

Closed zarboz closed 4 years ago

zarboz commented 5 years ago
function drl_lights() {
    if  (config.lights.drl !== true) return;
        if (config.lights.drl == true){
        switch (status.vehicle.ignition) {
            case 'off' : drl_power_state = false; break;
            default    : drl_power_state = true;
        }

        switch (drl_power_state) {
            case false : {
                io_encode({});
            break;
            }
            case true : {
                io_encode(config.lights.drl_lights);
            }
        } //break;
    }
}

Is this something that could be added to LCM module to enable user selectable DRL via config?

PSS I suck at java

kmalinich commented 5 years ago

Yeah, it could be done pretty easily. Pretty much like you laid it out here. As it sits, you can get near that functionality by just enabling the auto lights, since it will run the standing lights whenever the ignition is on automatically.

There are some physical wiring changes you can make to a E38/E39/E53 LCM you can do that have some additional benefits too, like allowing more functional flash-to-pass when you have bi-xenons installed (like I do) - I can detail them in another post

What would you like to to do?

zarboz commented 5 years ago

Currently i have a prefacelift e39 with facelight headlights installed

Angel eyes wired in with harness from a newer BMW I disabled my DRL in my LCM coding as it just kept my projectors on for DRL's and all I wanted was my angels for DRL, I couldn't accomplish this with LCM coding so I figured since I have your setup deployed in the car some hacking would be in line to accomplish my goal

Info: LCM3b with LRA Auto headlight switch installed & enabled RLS installed & coded facelift m5 headlights with motorized adjusters Car is equipped with automatic leveling headlights

my concept was to have a defined DRL section... I should probably put running times / hours or a switch to the LCM to see if the headlights are "on" already

So essentially

If LCM (headlightson == false) run DRL else turn DRL off endif

really crude analogy.

Also very curious about how you enabled flash to pass and bixenon functionality (even though that is wiring and coding stuff) I plan to do that retrofit over the summer