Skip to content

Python library to interact with the GCE Electronics IPX800 device

License

Notifications You must be signed in to change notification settings

marcaurele/gce-ipx800

Repository files navigation

GCE-IPX800

Pypi version Build Status Code coverage License Python versions

A python library to control a GCE-Electronics IPX800 V4 device through its API.

  • Python 3.8+ support
  • Apache License

IPX800 features implemented

  • Analog sensors (ipx.analogs[])
  • Control:
    • relays (ipx.relays[])
    • virtual inputs (ipx.virtual_inputs[])
    • virtual outputs (ipx.virtual_outputs[])
  • Counters (ipx.counters[])

Installation

> pip install gce-ipx800

Usage

Note

The default API key of the device is apikey.

from ipx800 import ipx800

ipx = ipx800("http://your-device-ip", "apikey")

r4 = ipx.relays[3]

r4.status  # => return a Boolean

r4.on()

r4.off()

r4.toggle()

len(ipx.relays)  # => 56

Links

Licence

Licensed under Apache License Version 2.0