• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Merv
    3. Posts
    M
    • Profile
    • Following 1
    • Followers 0
    • Topics 6
    • Posts 28
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by Merv

    • Neuron Older Models M20x

      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

      posted in Neuron Series
      M
      Merv
    • RE: EVOK: wget/POST api only works when control panel is open in browser

      @tomas_hora Hi,
      I did a fresh Rasbian install, got the neuron online, did a
      git clone http.....
      set the permissions (as per the GIT page)
      started it up.
      and....

      PERFECT!

      I have my python monitoring program starting automatically as a service, and I had to put a little sleep command in it on start as it was trying to run before EVOK started. Runs great.

      Many thanks.
      Merv.

      posted in Official API - Evok
      M
      Merv
    • RE: EVOK: wget/POST api only works when control panel is open in browser

      That's brilliant.
      I have some new micro SD cards on order, I'll do a clean new install and test once they arrive.

      Merv.

      posted in Official API - Evok
      M
      Merv
    • RE: EVOK: wget/POST api only works when control panel is open in browser

      This is causing me a problem too.....

      posted in Official API - Evok
      M
      Merv
    • RE: debug log file size

      I've tried setting the SysLogLevel parameter to a few different values, it's currently set to "emerg" which should report almost nothing.

      The lines (as above) are now being written to daemon.log (as before) but now also into the syslog file.

      Still puzzled...

      posted in Official API - Evok
      M
      Merv
    • RE: debug log file size

      The log entries look as follows:
      Feb 13 08:19:23 VacuumPLC evok[425]: [I 170213 08:19:23 web:1971] 200 GET /rest/relay/2_01/ (::1) 1.81ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/ai/1_01 (::1) 1.81ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_01/ (::1) 1.92ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_02/ (::1) 1.76ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_03/ (::1) 1.81ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_04/ (::1) 1.90ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_05/ (::1) 1.80ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_06/ (::1) 1.81ms
      Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_02/ (::1) 1.93ms
      Feb 13 08:19:25 VacuumPLC evok[425]: [I 170213 08:19:25 web:1971] 200 GET /rest/ai/1_01 (::1) 1.79ms

      The cause of them is my python program that is monitoring the status of a vacuum sensor, and checking what pumps are on and off, and switching pumps on and off. but, while I want to keep checking the status of the relays, I dont need to be creating so much debug activity. I'll take a look at the links you sent me.
      Merv.

      posted in Official API - Evok
      M
      Merv
    • debug log file size

      Hi,

      I'm getting a lot of log entries in /var/log/debug and /var/log/daemon.log files. They are getting huge, and not rolling over to make it easy to delete the older files. Can I reduce the level of logging from evok?

      Thanks.
      Merv.

      posted in Official API - Evok
      M
      Merv
    • RE: 1 wire net dies "Problem solved"

      It was similar for me, mine ran fine for a few weeks before I got problems.

      posted in Mervis
      M
      Merv
    • RE: evok on Neuron

      I meant to post here. I am running the latest version of Evok on the small Neuron and its doing fine. My python application is running for 4 days now with no hiccups.

      I only use the Evok gui screen to verify what my application is doing (as well as looking at the LED's.

      Merv.

      posted in Official API - Evok
      M
      Merv
    • RE: 1 wire net dies "Problem solved"

      It may be worth a try, cover the patch leads in tinfoil. Worked for me!

      posted in Mervis
      M
      Merv
    • RE: how to wire up a festo sensor to the Neuron?

      Thanks Tomas.

      posted in Neuron Series
      M
      Merv
    • how to wire up a festo sensor to the Neuron?

      Hi,
      I have a festo Vacuum sensor that I want to connect to my Neuron S10x. The sensor has 4 wires to be wired as follows:
      1 = 24V+ (Simple, I've wired that to the same power supply as powers the Neuron.)
      3 = 0V (I've wired that to the negative of the power supply. This lets the sensor start up and run)
      2 = Analog out, 0V to 10V. I've wired this to the Analog in of the Neuron and it seems to be working.
      4 = switching on/off at preset pressures. I want to connect this to a digital input on the Neuron.

      The sensor details are here: https://www.festo.com/cat/en-us_us/data/doc_enus/PDF/US/SDE1_ENUS.PDF
      The sensor model is sde1-v1-g2-w18-L-PU-M8

      My question: The analog ground on the Neuron bells out to the power supply 0V, so the analog connection is working. The digital input ground does not bell to the 0v power supply, so the digital signal is not registering. Can I connect the digital ground input to the analog ground input? If not, how should I wire this up?

      I ideally want the digital input signal, but I definitely need the analog input. I'm just nervous about connecting the 2 grounds in case that would cause a hiccup....

      btw, Evok is running on this for me on the S10x, and allowing me to use my own python program with get and posts to read and set input/outputs on the Neuron. Thanks for the pre-release!

      Merv.

      posted in Neuron Series
      M
      Merv
    • RE: Raspian vs Evok?

      @rmoore I started off figuring out the GPIO pins on the bare Raspberry Pi, and once you get your head around that, moving to the Unipi is the next logical step. I did'nt use this article, but it explains just about all that you need.

      http://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/

      The Evok "platform" can be used as well, and I use it via the restful calls for setting some of the relays.

      If you've not got a Pi already, get a Pi and try the small tutorial above. After that it's straight forward enough.

      Merv.

      posted in General Discussion
      M
      Merv
    • RE: Raspian vs Evok?

      If your an old school programmer, you will find that programming it with Python the simplest approach. I certainly did, and wrote my own software to manage the lights in my house by controlling about 8 or 9 relays, and reading about 8 or 9 momentary switches.

      Merv.

      posted in General Discussion
      M
      Merv
    • Should I use Analog or Digital input to read Vacuum pressure?

      Hi,

      I am looking to order a Vacuum Pressure sensor, and I have the option of a few different types of output from it. There is a model with 0-10V analog output (Which I am sure will work), but there is also the option of a PNP Digital output. Is there a way to read the digital version?

      The sensor I am looking at is from Festo, Documentation is here:
      https://www.festo.com/cat/en-gb_gb/data/doc_engb/PDF/EN/SDE1_EN.PDF

      The reason that I like the idea of the digital output is that I may be able to read multiple sensors from one Neuron.....

      Any input much appreciated!
      Merv.

      posted in Official API - Evok
      M
      Merv
    • RE: Industrial automation project

      @jaroslav_sobota

      Thanks.
      I've ordered a S103 to get me started and see how I get on at the software. I plan to write this in Python, and I see there are Libraries for Modbus available.

      I'm sure I'll be back with more thoughts and experiences as this project progresses.

      Merv.

      posted in Installations
      M
      Merv
    • RE: Industrial automation project

      I have a design requirement to my project as follows:
      I will be reading at least 5 seperate vacuum meters which give analog signals (either 0-10v or 0-5v). Depending on the readings in real time, I can see where there may be a vacuum "leak", and turn off the valve to that part of the system, or see where there is a demand and start turning on pumps.

      I have been looking at ways to read this many analog inputs, but without a solid solution.

      But when I thought about it, I can change my design from having one unipi reading all the inputs, making all the decisions and controlling all the valves to a more distributed system. What if I used 1 Unipi to monitor 1 vacuum meter, and control just the valves that relate to that part of the manifold, and called this a "Local Control Unit". I could then create 5 separate "Local Control Units" and each of them doing the exact same thing, but locally. I could then have 1 more Unipi that is the "Master Control Unit" that would just monitor the other Unipi's, and in my software it could issue override commands to any local device to turn on or off valves if required (Maintenance or whatever).

      This means buying a lot more hardware, but it's a very solid basis, and makes the software on each machine simpler.

      Any thoughts from anyone on this?

      posted in Installations
      M
      Merv
    • RE: evok doesn't work without a network connection

      @coopi
      I cannot recall in detail, but I am connecting wirelessly to a router. The router runs dhcp, and therefore the Pi gets whatever address it is given. The router is often powered off, and when it powers back on the Pi can get a different address which makes it fun trying to find it again.

      On the pi, I'm running a Python program that reads the inputs and sets the outputs for controlling lights. As that's the only script I'm running, I do not see any errors when it's disconnected from the network. In the background, the evok script also runs, and when it's connected to the network I can access it using my phone and turn the relays on and off etc. but I never see the error you describe.

      Merv.

      posted in Official API - Evok
      M
      Merv
    • RE: evok doesn't work without a network connection

      I've not had that problem, and my Unipi/Pi are regularly not on the network. Where do you see this error showing up? What effect does it have on your system?

      Merv.

      posted in Official API - Evok
      M
      Merv