Sample Projects



  • To the creators of UniPi…
    Hi guys, when the project was running on Indigogo, you showed a beautiful movie and pictures of what you have realized with the board already. That made me convinced to sponsor this wonderful project.
    Are you by any chance willing to share some of your home automation projects (wiring diagrams, code,...) with this community? This to prevent to have to reinvent the wheel.
    Thanks in advance guys!!



  • To the creators of UniPi…
    Hi guys, when the project was running on Indigogo, you showed a beautiful movie and pictures of what you have realized with the board already. That made me convinced to sponsor this wonderful project.
    Are you by any chance willing to share some of your home automation projects (wiring diagrams, code,...) with this community? This to prevent to have to reinvent the wheel.
    Thanks in advance guys!!



  • Hello,
    Some sample projects would be very useful, maybe some simple project (light switch/thermostat etc..) using the various software options like Rexcontrols or FHEM.
    I understand that the design team want to focus on develop the hardware and then it is up to the customer to build their solutions, however some starting points would be most useful and indeed may give you some more traffic here on this forum.



  • A tutorial to help you in getting started with the REX Control System is available at:
    http://www.rexcontrols.com/articles/get ... spberry-pi

    Only minor modifications are needed for use with UniPi, the modified project files are available at GitHub. There are also other example projects to start with UniPi and the REX Control System. You can download all the examples as a zip file:
    https://github.com/rexcontrols/REXexamp ... master.zip

    You are also encouraged to go through the documentation:
    http://www.rexcontrols.com/documentation-and-support

    Hope this helps...



  • Hi Jaroslav,
    I proceeded with Rexcontrols installation. The documentation is very accurate, you obviously spent a lot of time and effort in this task, well done.

    However I have encountered 2 issues… ( now 1)

    Issue 1
    OWserver installation: I have completed and restarted.
    owdir give this result
    /10.67C6697351FF
    /05.4AEC29CDBAAB
    /bus.0
    /uncached
    /settings
    /system
    /statistics
    /structure
    /simultaneous
    /alarm
    I have a single DS18B20 sensor plugged in the unipi.
    owread /10.67C6697351FF/temperature12 results in 36.4784
    owread /05.4AEC29CDBAAB/temperature12 results in ServerRead: Data error on /05.4AEC29CDBAAB/temperature12
    owdir gives the result above whether the DS18B20 is plugged in or not.... what am I likely to be overlooking?

    Issue 2
    I have downloaded samples from https://github.com/rexcontrols/REXexamp ... i_examples
    trying to open any of the samples in Rexdraw gives this error "code: 27 File/Module/System names are different (C:\User\yyyy\Documents...file path to \blink_exec.mdl"
    The exec & task files are in the same folder, where am I going wrong?

    Issue 2 solved - using the files in https://github.com/rexcontrols/REXexamp ... master.zip rather than https://github.com/rexcontrols/REXexamp ... i_examples
    gives a good result.
    Thanks in advance for your help.



  • Thanks for the compliment!

    I guess you forgot to modify the /etc/owfs.conf file - by default it is configured to simulate two 1-Wire devices

    The /etc/owfs.conf file should contain

    !server: server = localhost:4304
    allow_other
    server: port = localhost:4304
    server: i2c = ALL:ALL
    timeout_volatile = 2
    

    The correct link to download the examples is https://github.com/rexcontrols/REXexamples/archive/master.zip



  • @jaroslav_sobota:2rexa9qa:

    The /etc/owfs.conf file should contain

    !server: server = localhost:4304
    allow_other
    server: port = localhost:4304
    server: i2c = ALL:ALL
    timeout_volatile = 2
    

    I followed instructions on http://www.rexcontrols.com/media/DOC/EN ... rv_ENG.pdf
    Section 1.4.1 Running the 1-Wire server
    Calls for
    !server: server = localhost:4304
    allow_other
    server: port = localhost:4304
    server: i2c=ALL:ALL

    So it was missing the line from your example
    timeout_volatile = 2

    By the way - all the lines except server: i2c=ALL:ALL were in the file with no "#" in front - I didn't add them again.

    I can try later this evening with you new suggestion -I am only working on this in my free time unfortunately.

    Thanks for your help.



  • Make sure to comment the line
    server: FAKE = DS18S20,DS2405
    in the original owfs.conf file - this line is why there were 2 devices regardless of plugging in or removing the 1-Wire sensor - they are only simulated (for testing purposes)

    The line
    timeout_volatile = 2
    just defines for how long are the measured data valid.



  • Hi everybody,
    new verison of the REX Control System is out. At this occasion we have also improved our GitHub examples repository. Download the example projects from https://github.com/rexcontrols/REXexamp ... master.zip and navigate to the UniPi_examples folder. You are encouraged to visit the other folders as well...

    For newcomers: A tutorial on using the REX Control System on Raspberry Pi is available at http://www.rexcontrols.com/articles/get ... spberry-pi

    Hope you like it!

    Jaroslav