Metadata-Version: 2.1
Name: iammeterWpc
Version: 0.1
Summary: IamMeterWpc api
Home-page: https://github.com/yangbo1979/iammeter_wpc_pip_lib
Author: yangbo1979
Author-email: gyangbo@gmail.com
License: UNKNOWN
Description: ## IamMeterWpc
        
        Python Client for IamMeterWpc device.
        
        See https://www.iammeter.com
        
        ##### Create a new connection by supplying IamMeterWpc host and port(default:80)
        
        ```
        import asyncio
        from api import IammeterWpcAPI
        
        async def main():
            device = IammeterWpcAPI('IP')
            monitor_data = await device.get_monitor_data()
            print(monitor_data)
        
            result = await device.set_wpc_adv(
                #run_mode=1,
                max_power=2000,
                #meter_address="100.10.30.135",
                meter_config="1,1,1",
                threshold=0,
                hysteresis=0,
                tz_offset=0,
                start_hour=0,
                stop_hour=0,
                meter_type=0,
                restore_power=0,
                ntp_server="ntp1.aliyun.com"
            )
            print(result)
        
            power_result = await device.set_power(5000)  # set power to 5000
            print(power_result)
        
        if __name__ == "__main__":
            asyncio.run(main())
        ```
        
        
        
        ##### ChangeLog
        
        0.1 first commit.
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
