Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. martin_triska
    3. Best
    M
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by martin_triska

    • RE: Need Some sort of Jumpstart

      Hello @knebb, as @ntd wrote there is no need to use the Evok (which is, basically a bridge between Modbus server and several web-service interfaces). The simplest option for direct access from a C/C++ application should be the sysfs interface. Of course, a Modbus client connected to the internally running Modbus server can be used also.

      posted in Official EVOK API
      M
      martin_triska
    • RE: nginx not running

      OK, now it is a bit clearer. You probably did not insert TCP port while you have been asked for it during the installation process. Default values within the file are:

      upstream evok {
              server localhost:8080;
      }
      
      server {
      	listen 80 default_server;
      	server_name  _;
      
      	#ssl on;
      	#ssl_certificate      /etc/nginx/democert.pem;
      	#ssl_certificate_key  /etc/nginx/democert.key;
      
      	#access_log  /var/log/evok.access.log;
      	access_log  off;
      	root /var/www/evok;
      
      	location / {
      	    index index.html;	    
      	}
      	
      	location /favicon.ico {
      		alias /var/www/evok/favicon.ico;
      	}
      
      	location /ws {
      		proxy_pass http://evok;
      		proxy_set_header Host $host:$server_port;
      		proxy_http_version 1.1;
      		proxy_set_header Upgrade $http_upgrade;
      		proxy_set_header Connection "upgrade";
      		proxy_buffering off;
      		proxy_cache off;
      		proxy_read_timeout 180;
      	}
      
      	location /rest {
      		proxy_pass http://evok;
      		proxy_set_header Host      $host:$server_port;
      	}
      	
      	location /json {
      		proxy_pass http://evok;
      		proxy_set_header Host      $host:$server_port;
      	}
      	location /bulk {
      		proxy_pass http://evok;
      		proxy_set_header Host	$host:$server_port;
      	}
      	location /rpc {
      		proxy_pass http://evok;
      		proxy_set_header Host	$host:$server_port;
      	}
      	
      }
      
      
      posted in Official EVOK API
      M
      martin_triska