tasict / broadlink-device-php Goto Github PK
View Code? Open in Web Editor NEWPHP API to Belkin WeMo devices
PHP API to Belkin WeMo devices
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.
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);
}
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?
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?
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
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.
Is that mean I must install that python plugin?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.