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

    Read Inputs with Python

    Official EVOK API
    2
    4
    2796
    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.
    • S
      s0fralk last edited by

      Hi guys,

      i´m really new to this and have a problem..
      I´ve read all the things on github, but i just won´t get a clear mind.
      I just want to read Input 1 of the board. Why can´t i just write a python programm where i read the GPIO 04 (Pin 07 on the Raspi) to read Input 1?
      What else do i have to do? I really don´t get it.. Are there some examples for reading Inputs in Pyhton?
      Please help me and thanks a lot for your time.

      Greetings s0fralk

      T 1 Reply Last reply Reply Quote 0
      • T
        tomas_hora administrators @s0fralk last edited by

        Hello @s0fralk,

        do you use Neuron or UniPi 1? Evok is API or set of API (not a library) so if you want to use it, choose one of the APIs available. Eg. https://github.com/UniPiTechnology/evok#python-using-jsonrpc

        1 Reply Last reply Reply Quote 0
        • S
          s0fralk last edited by

          I use the unipi 1.
          You mean i have to install a library like json, to get access to the inputs and make use of them in a python program?
          Then i do not understand why there is a table in the users manual, where you show which gpio on the raspi belongs to the different inputs of the unipi?

          Greetz s0fralk

          T 1 Reply Last reply Reply Quote 0
          • T
            tomas_hora administrators @s0fralk last edited by

            @s0fralk

            Basically yes, I recommend websocket but it is up to you what is your approach.

            That is for those, who want to develop their own application like Evok which will take care of the low level work with GPIOs and I2C.

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