tplink-smartplug-api | TP-Link HS1xx smart plug API wrapper
kandi X-RAY | tplink-smartplug-api Summary
kandi X-RAY | tplink-smartplug-api Summary
TP-Link HS1xx smart plug API wrapper.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns the emeter stats
- Decrypts the given ciphertext
- Encrypt the given plaintext
- Sends a command to the server
- Set device name
- Turn on relay
- Show system info
- Set device id
- Set the hardware ID
- Set the mac address
- Turn off
- Get the current time zone
- Reboot the device
- Reset factory
- Get current time
- Set device icon
- A dictionary of location information
- Turn off relay
tplink-smartplug-api Key Features
tplink-smartplug-api Examples and Code Snippets
from tplink_smartplug import SmartPlug
plug = SmartPlug('192.168.xxx.xxx')
print('Name: %s' % plug.name)
print('Model: %s' % plug.model)
print('Mac: %s' % plug.mac)
print('Time: %s' % plug.time)
print('Is on: %s' % plug.is_
from tplink_smartplug import SmartPlug
plug = SmartPlug('192.168.xxx.xxx')
if plug.is_on:
plug.turn_off()
print('Plug turned off')
else:
plug.turn_on()
print('Plug turned on')
$ python3 example.py
Plug turned off
$ python3 example
{
"system": {
"get_sysinfo": {}
}
}
{
"system": {
"get_sysinfo": {}
},
"time": {
"get_time": {}
}
}
Community Discussions
Trending Discussions on Internet of Things (IoT)
QUESTION
I have js files Dashboard and Adverts. I managed to get Dashboard to list the information in one json file (advertisers), but when clicking on an advertiser I want it to navigate to a separate page that will display some data (Say title and text) from the second json file (productadverts). I can't get it to work. Below is the code for the Dashboard and next for Adverts. Then the json files
...ANSWER
Answered 2020-May-17 at 23:55The new object to get params in React Navigation 5 is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tplink-smartplug-api
You can use tplink-smartplug-api like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page