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

    Neuron Older Models M20x

    Scheduled Pinned Locked Moved Neuron Series
    1 Posts 1 Posters 1.1k 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.
    • 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

      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