• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. yish
    Y
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    yish

    @yish

    0
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    yish Unfollow Follow

    Latest posts made by yish

    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hi Martin, do you have any suggestions on how to resolve. I tried disabling node-red to see if that worked but no success. Am open to suggestions on what to try.

      If I have some extra time I will try a fresh SD card with the setup you verified for Stefan (specified vanilla neuron OS, install evok, and use the same evok.conf) to see if that will work.

      posted in Official API - Evok
      Y
      yish
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      @Martin-Kudláček said in After installation of a xG18 extention I get a Server Error 500 for the Rest Json:

      Updated, Rebooted and same error:

      root@L403-sn141:/home/unipi# systemctl stop evok
      root@L403-sn141:/home/unipi# /opt/evok/bin/python /opt/evok/lib/python2.7/site-packages/evok/evok.py
      [I 210723 14:58:18 config:73] eprom: UniPi Neuron L403 version: 0.1 serial: 0x8d
      [I 210723 14:58:18 evok:1894] Starting using config file /etc/evok.conf
      /opt/evok/lib/python2.7/site-packages/evok/config.py:96: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
        self.definitions += [yaml.load(yfile)]
      [I 210723 14:58:18 config:97] YAML Definition loaded: xS10.yaml, type: 3, definition count 0
      [I 210723 14:58:18 config:97] YAML Definition loaded: xS51.yaml, type: 3, definition count 1
      [I 210723 14:58:19 config:97] YAML Definition loaded: IAQ.yaml, type: 3, definition count 2
      [I 210723 14:58:19 config:97] YAML Definition loaded: xG18.yaml, type: 3, definition count 3
      [I 210723 14:58:19 config:97] YAML Definition loaded: xS30.yaml, type: 3, definition count 4
      [I 210723 14:58:19 config:97] YAML Definition loaded: CUSTOM_MODBUS_DEVICE.yaml, type: 3, definition count 5
      [I 210723 14:58:19 config:97] YAML Definition loaded: xS40.yaml, type: 3, definition count 6
      [I 210723 14:58:19 config:97] YAML Definition loaded: xS50.yaml, type: 3, definition count 7
      [I 210723 14:58:19 config:97] YAML Definition loaded: xS11.yaml, type: 3, definition count 8
      /opt/evok/lib/python2.7/site-packages/evok/config.py:103: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
        self.neuron_definition = yaml.load(yfile)
      [I 210723 14:58:20 config:104] YAML Definition loaded: /etc/hw_definitions/BuiltIn/L403.yaml, type: UniPiBuiltIn
      [I 210723 14:58:20 config:97] YAML Definition loaded: evok-alias.yaml, type: 2, definition count 0
      [I 210723 14:58:20 evok:1964] HTTP server listening on port: 8080
      [I 210723 14:58:20 modbusclient_tornado:128] SPI client started
      [I 210723 14:58:20 modbusclient_rs485:347] UART client started
      [I 210723 14:58:20 neuron:334] Reading the UART board on Modbus address 1
      [I 210723 14:58:20 neuron:215] Reading SPI boards
      [I 210723 14:58:20 owclient:445] Entering OWW loop with PID 1412
      [I 210723 14:58:20 config:390] Alias loaded: <neuron.Relay object at 0x761f6db0> al_lights_kitchen
      [I 210723 14:58:20 config:390] Alias loaded: <neuron.Relay object at 0x76217510> al_lights_bedroom
      [I 210723 14:58:20 web:2064] 101 GET /ws (::1) 6.23ms
      [D 210723 14:58:20 evok:162] New WebSocket client connected
      [I 210723 14:58:20 web:2064] 200 GET /rest/all (::1) 15.25ms
      [I 210723 14:58:21 web:2064] 101 GET /ws (127.0.0.1) 3.41ms
      [D 210723 14:58:21 evok:162] New WebSocket client connected
      [I 210723 14:58:26 config:390] Alias loaded: <neuron.Relay object at 0x761f6db0> al_lights_kitchen
      [I 210723 14:58:26 config:390] Alias loaded: <neuron.Relay object at 0x76217510> al_lights_bedroom
      [E 210723 14:58:26 web:1591] Uncaught exception GET /json/all (::1)
          HTTPServerRequest(protocol='http', host='l403-sn141.local:80', method='GET', uri='/json/all', version='HTTP/1.0', remote_ip='::1', headers={'Accept-Language': 'en-us', 'Accept-Encoding': 'gzip, deflate', 'Host': 'l403-sn141.local:80', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15', 'Connection': 'close', 'Upgrade-Insecure-Requests': '1'})
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/web.py", line 1512, in _execute
              result = yield result
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/gen.py", line 1055, in run
              value = future.result()
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
              raise_exc_info(self._exc_info)
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/gen.py", line 307, in wrapper
              yielded = next(result)
            File "/opt/evok/local/lib/python2.7/site-packages/tornado_json/schema.py", line 160, in _wrapper
              output = rh_method(self, *args, **kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1540, in get
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1540, in <lambda>
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1654, in full
              'value': (self.regvalue()),
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1592, in <lambda>
              self.regvalue = lambda: (self.arm.neuron.modbus_cache_map.get_register(1, self.valreg, unit=self.arm.modbus_address, is_input=_is_iput)[0] * self.factor) + self.offset
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 55, in get_register
              raise Exception('No cached value of register %d on unit %d - read error' % (counter, unit))
          Exception: No cached value of register 8 on unit 1 - read error
      [E 210723 14:58:26 web:2064] 500 GET /json/all (::1) 26.74ms
      [D 210723 14:58:31 evok:259] Skipping WS message: {u'cmd': u'all'} (No cached value of register 8 on unit 1 - read error)
      [E 210723 14:58:33 web:1591] Uncaught exception GET /rest/all (::1)
          HTTPServerRequest(protocol='http', host='l403-sn141.local:80', method='GET', uri='/rest/all', version='HTTP/1.0', remote_ip='::1', headers={'Accept-Language': 'en-us', 'Accept-Encoding': 'gzip, deflate', 'Host': 'l403-sn141.local:80', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15', 'Connection': 'close', 'Upgrade-Insecure-Requests': '1'})
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute
              result = method(*self.path_args, **self.path_kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in get
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in <lambda>
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1654, in full
              'value': (self.regvalue()),
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1592, in <lambda>
              self.regvalue = lambda: (self.arm.neuron.modbus_cache_map.get_register(1, self.valreg, unit=self.arm.modbus_address, is_input=_is_iput)[0] * self.factor) + self.offset
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 55, in get_register
              raise Exception('No cached value of register %d on unit %d - read error' % (counter, unit))
          Exception: No cached value of register 8 on unit 1 - read error
      [E 210723 14:58:33 web:2064] 500 GET /rest/all (::1) 11.47ms
      [E 210723 14:58:33 web:1591] Uncaught exception GET /rest/all (::1)
          HTTPServerRequest(protocol='http', host='l403-sn141.local:80', method='GET', uri='/rest/all', version='HTTP/1.0', remote_ip='::1', headers={'Accept-Language': 'en-us', 'Accept-Encoding': 'gzip, deflate', 'Host': 'l403-sn141.local:80', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15', 'Connection': 'close', 'Upgrade-Insecure-Requests': '1'})
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute
              result = method(*self.path_args, **self.path_kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in get
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in <lambda>
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1654, in full
              'value': (self.regvalue()),
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1592, in <lambda>
              self.regvalue = lambda: (self.arm.neuron.modbus_cache_map.get_register(1, self.valreg, unit=self.arm.modbus_address, is_input=_is_iput)[0] * self.factor) + self.offset
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 55, in get_register
              raise Exception('No cached value of register %d on unit %d - read error' % (counter, unit))
          Exception: No cached value of register 8 on unit 1 - read error
      [E 210723 14:58:33 web:2064] 500 GET /rest/all (::1) 11.42ms
      
      posted in Official API - Evok
      Y
      yish
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      My L403 just arrived yesterday and I’m trying to connect the xG18 and having the same issues with Stefan.

      I was able to connect in node-red over modbus RTU directly.

      However when I try to access through Evok (different SD card with the same base OS image: https://kb.unipi.technology/_media/files:software:os-images:neuron-node-red_image-20210426.2.zip), I get the exact same error message as Stefan.

      unipi@L403-sn141:/etc$ sudo /opt/evok/bin/python /opt/evok/lib/python2.7/site-packages/evok/evok.py
      [I 210723 07:07:45 config:73] eprom: UniPi Neuron L403 version: 0.1 serial: 0x8d
      [I 210723 07:07:45 evok:1894] Starting using config file /etc/evok.conf
      /opt/evok/lib/python2.7/site-packages/evok/config.py:96: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
        self.definitions += [yaml.load(yfile)]
      [I 210723 07:07:45 config:97] YAML Definition loaded: xS10.yaml, type: 3, definition count 0
      [I 210723 07:07:45 config:97] YAML Definition loaded: xS51.yaml, type: 3, definition count 1
      [I 210723 07:07:45 config:97] YAML Definition loaded: IAQ.yaml, type: 3, definition count 2
      [I 210723 07:07:45 config:97] YAML Definition loaded: xG18.yaml, type: 3, definition count 3
      [I 210723 07:07:45 config:97] YAML Definition loaded: xS30.yaml, type: 3, definition count 4
      [I 210723 07:07:45 config:97] YAML Definition loaded: CUSTOM_MODBUS_DEVICE.yaml, type: 3, definition count 5
      [I 210723 07:07:46 config:97] YAML Definition loaded: xS40.yaml, type: 3, definition count 6
      [I 210723 07:07:46 config:97] YAML Definition loaded: xS50.yaml, type: 3, definition count 7
      [I 210723 07:07:46 config:97] YAML Definition loaded: xS11.yaml, type: 3, definition count 8
      /opt/evok/lib/python2.7/site-packages/evok/config.py:103: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
        self.neuron_definition = yaml.load(yfile)
      [I 210723 07:07:46 config:104] YAML Definition loaded: /etc/hw_definitions/BuiltIn/L403.yaml, type: UniPiBuiltIn
      [I 210723 07:07:46 config:97] YAML Definition loaded: evok-alias.yaml, type: 2, definition count 0
      [I 210723 07:07:46 evok:1964] HTTP server listening on port: 8080
      [I 210723 07:07:46 modbusclient_tornado:128] SPI client started
      [I 210723 07:07:46 modbusclient_rs485:347] UART client started
      [I 210723 07:07:46 neuron:334] Reading the UART board on Modbus address 1
      [I 210723 07:07:46 neuron:215] Reading SPI boards
      [I 210723 07:07:46 owclient:445] Entering OWW loop with PID 1414
      [I 210723 07:07:47 config:390] Alias loaded: <neuron.Relay object at 0x76244cf0> al_lights_kitchen
      [I 210723 07:07:47 config:390] Alias loaded: <neuron.Relay object at 0x762653d0> al_lights_bedroom
      [I 210723 07:07:48 web:2064] 101 GET /ws (127.0.0.1) 5.50ms
      [D 210723 07:07:48 evok:162] New WebSocket client connected
      [I 210723 07:07:52 config:390] Alias loaded: <neuron.Relay object at 0x76244cf0> al_lights_kitchen
      [I 210723 07:07:52 config:390] Alias loaded: <neuron.Relay object at 0x762653d0> al_lights_bedroom
      [E 210723 07:08:02 web:1591] Uncaught exception GET /json/all (::1)
          HTTPServerRequest(protocol='http', host='l403-sn141.local:80', method='GET', uri='/json/all', version='HTTP/1.0', remote_ip='::1', headers={'Accept-Language': 'en-us', 'Accept-Encoding': 'gzip, deflate', 'Host': 'l403-sn141.local:80', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15', 'Connection': 'close', 'Upgrade-Insecure-Requests': '1'})
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/web.py", line 1512, in _execute
              result = yield result
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/gen.py", line 1055, in run
              value = future.result()
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
              raise_exc_info(self._exc_info)
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/gen.py", line 307, in wrapper
              yielded = next(result)
            File "/opt/evok/local/lib/python2.7/site-packages/tornado_json/schema.py", line 160, in _wrapper
              output = rh_method(self, *args, **kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1540, in get
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1540, in <lambda>
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1654, in full
              'value': (self.regvalue()),
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1592, in <lambda>
              self.regvalue = lambda: (self.arm.neuron.modbus_cache_map.get_register(1, self.valreg, unit=self.arm.modbus_address, is_input=_is_iput)[0] * self.factor) + self.offset
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 55, in get_register
              raise Exception('No cached value of register %d on unit %d - read error' % (counter, unit))
          Exception: No cached value of register 8 on unit 1 - read error
      [E 210723 07:08:02 web:2064] 500 GET /json/all (::1) 28.64ms
      
      

      Did an apt update and install to the latest evok version (2.4.10) to no avail.

      posted in Official API - Evok
      Y
      yish