• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Control Unipi relays with Python

    General Discussion
    2
    2
    978
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      loggeduser last edited by

      Hello,
      How I can control relay of Unipi with Python?

      Thank you for help.

      Martin Kudláček 1 Reply Last reply Reply Quote 0
      • Martin Kudláček
        Martin Kudláček @loggeduser last edited by Martin Kudláček

        Hello @loggeduser,
        yes, you can. There are three ways how to communicate with IOs from your program:

        1. ModbusTCP server - local process running on port TCP/502 making the IOs available via Modbus coils and registers. You can read more about the Modbus Registers Maps
        2. EVOK - all sorts of web APIs (json, rest, websocket,...), more information here
        3. SysFS - IOs are made available through a virtual filesystem, more information here

        But it depends on which unit you use.

        Best regards,
        Martin

        1 Reply Last reply Reply Quote 0
        • First post
          Last post