• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. knebb2
    3. Topics
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by knebb2

    • K

      Which kernel to use?
      UniPi Neuron Series • • knebb2

      1
      0
      Votes
      1
      Posts
      49
      Views

      No one has replied

    • K

      Experiences with openHAB?
      OpenHAB • • knebb2

      2
      0
      Votes
      2
      Posts
      231
      Views

      K

      Hi,

      just for reference and to help future questions:

      I am running OpenHAB on a dedicated RasPi. It is a Java application which I do not want to run on a Neuron. Keep it simple and stupid.

      In C code it was not too complicated to get data from OpenHAB though curl calls.
      See code snipplet:

      /* Function gets calledd with an item name */ /* The url is defined here globally: */ /* url="http://openhab.domain.com:8080/rest/items/" */ long get_2file(char *url, char *filename ) { CURL *curl_handle; FILE *FI; int r,code; code = 0; curl_handle = curl_easy_init(); /* set URL to get here */ curl_easy_setopt(curl_handle, CURLOPT_URL, url); /* disable progress meter, set to 0L to enable and disable debug output */ curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L); /* use default write function */ curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, NULL); /* open the file */ FI = fopen(filename, "w"); if(FI) { /* write the page body to this file handle */ curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, FI); /* get it! */ r = curl_easy_perform(curl_handle); if (r != 0) { code=-1; } else { /* Data is now in the file */ } /* close the header file */ r = fclose(FI); } else { code=-1; } /* cleanup curl stuff */ curl_easy_cleanup(curl_handle); return code; }
    • K

      Build-In 1Wire does not work!
      Official EVOK API • • knebb2

      1
      0
      Votes
      1
      Posts
      295
      Views

      No one has replied

    • K

      Latest Update: Issues with unipi_tcp_server and unipispi
      Official EVOK API • • knebb2

      2
      0
      Votes
      2
      Posts
      398
      Views

      K

      Hi,

      I fixed it by
      apt install neuron-kernel

      It uninstalled dmks modules- I am unsure if this is a proper solution. At least it seems to work now.

      Greetings

      /KNEBB