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

    Read Inputs with Python

    Scheduled Pinned Locked Moved Evok API
    4 Posts 2 Posters 3.7k Views
    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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post