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

    Neuron Older Models M20x

    UniPi Neuron Series
    1
    1
    25
    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.
    • M
      Merv last edited by

      Hi, I have a M20x that I want to replace with a new device, is the M203 a direct swap, just a newer model number? I use a custom Python program that reads and sets using requests. Some of my procedures:

      def read_button(button):
          try:
              Status = urllib.request.urlopen("http://" + myself + "/rest/di/" + button).read()
              jsondata = json.loads(Status.decode("utf-8"))
              x = jsondata["value"]
          except Exception as e:
              # print('Read button fail, no button called',button)
              x = True
          return x
      
      
      def set_relay(circuit, onoff):
          data = dict(value=onoff)
          url = "http://" + myself + "/rest/relay/" + circuit + "/"
          content = requests.post(url, data=data, allow_redirects=True)
      
      

      Should I expect that all the relays, di, do, ai, ao access will be the same? I guess what I'm asking is, should I expect that my program will run the same on the M203 as it did on the M20x?

      And separately, if I changed to the Patron devices, would the evok system be accessable in the same way as I've accessed it with my python code? Would it be an easy change over?

      Thanks!
      Merv

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