Git Product home page Git Product logo

broadlink-device-php's People

Contributors

tasict avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

broadlink-device-php's Issues

SP4L support

I try to control SP4L , but not success
Then I try to use mjg59/python-broadlink via python script , it can success control SP4L and read the power state.
I success to add the $devtype and i can discover my SP4L device , but I can't control it. (SP1/2/3 already discontinued , I can only buy SP4L on market) $devtype on my hand is 0xa569
Can you help to add support on SP4L device ?

Thank you so much.

mcrypt_decrypt deprecated please replace with openssl

broadlink.class.php

function aes128_cbc_encrypt($key, $data, $iv) {
  # return mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, $iv);
  return openssl_encrypt($data, 'AES-128-CBC', $key, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $iv);
}

function aes128_cbc_decrypt($key, $data, $iv) {
  # return mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, $iv);
  return openssl_decrypt($data, 'AES-128-CBC', $key, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $iv);
}

Noob problem

When i try to run "discover.php" on on my localhost xampp it only shows this:
devtype();
$obj['name'] = $device->name();
$obj['mac'] = $device->mac();
$obj['host'] = $device->host();
$obj['model'] = $device->model();
if($obj['model'] == "RM2"){
$device->Auth();
$temperature = $device->Check_temperature();
$obj['temperature'] = $temperature;
}
else if($obj['model'] == "A1"){
$device->Auth();
$data = $device->Check_sensors();
$obj = array_merge($obj, $data);
}
array_push($result, $obj);
}
echo json_encode($result);

I configured php.ini as development. What i'm doing wrong?

SP3 full support (Night Light)

For SP3 in e-control there is a function of separate on / off LED backlight without socket. Can you add this feature in to your wonderful library?

RM2+ scan frequency support

Hello.
Can you add scan frequency support for RM2+ devices?

To scan the RF command, rm2+ must determine the frequency first.
For example in this project http://rm-bridge.fun2code.de/ there is a separate button for the scan frequency with a certain type of device.

// Quote

            <div ng-show="device.type == '10026'">
                If learning RF codes, <b>RM Pro+</b> devices must do a frequency scan before learning a code.
                <br> Press the <i><b>Frequency Scan</b></i> and then long press the button on your remote for approx. 5 seconds.
                <br> During this process the LED should light up and stay lit even after the scan is complete.
                <br>
                <p>
                    <button class="button" ng-click="freqScan()">Frequency Scan</button>
                    <!-- <button class="button" ng-click="freqScanCancel()">Cancel Scan</button> -->
                </p>
            </div>

//Quote

How do I use this? [Question]

Hi,

I have attempted to guess the process.

I have tried resetting the box to fast and then slow blue light. I then connect my laptop to the broadlink wifi, and I run the Discover.php page. It returns empty json.

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.