Skip to main content

IamMeterWpc api

Project 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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iammeterWpc-0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file iammeterWpc-0.1.tar.gz.

File metadata

  • Download URL: iammeterWpc-0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for iammeterWpc-0.1.tar.gz
Algorithm Hash digest
SHA256 488c8753ba92452c518c3d30081d3378b5de3c41e5f35df9a7c57a2c38b3d8a3
MD5 d04f7d897a1bd41011700c209f596314
BLAKE2b-256 7ef3ed06c3fcbde9abca6b057860831f2ddd8b859f75fb508d066c37d639fd2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page