• Experiences with openHAB?

    2
    0 Votes
    2 Posts
    1k 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; }
  • openhab - best approach

    10
    0 Votes
    10 Posts
    6k Views
    G
    Hi....On the off chance that you need to depend on a steady framework and find support in a crisis case the main route is to ask the network and ideally they will support you, if not. you can help yourself are the issue won't fixed. In my ealry days I attempted to not depend on these open source frameworks because of the missing profound help as referenced in the first post. Be that as it may, OH is so cool and from my perspective truly steady and relyable. Very day a great deal of new stuff is comming and a ton of more gadgets and capacities are actualized. Indeed, we as a whole are simply working here in this network for nothing and attempt to support every others and the is no genuine countable assistance.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Unipi 1.1 + Codesys + OpenHAb

    4
    0 Votes
    4 Posts
    4k Views
    T
    @c.man The codesys package for Unipi is working well. But you will need to figure out the way how to communicate between codesys and OpenHAB. And for that, I would recommend using Mobus TCP - create a TCP Modbus server in Codesys, map the variables you want to have available in OpenHAB to the Modbus registers and read/write to/from them in OpenHAB... Or you already have that solved?