KNX integration with Weinzierl BAOS 838 module kBerry

213 views
Skip to first unread message

Vladimir Shabunin

unread,
Mar 31, 2018, 1:48:57 PM3/31/18
to CommandFusion Software
Hello, everyone. I have made open-source solution for KNX integration.
As a hardware you will use Weinzierl BAOS 838 module kBerry and Raspberry Pi computer, so the cost of hardware does not exceed 200 usd.

You should be familiar with linux and javascript before getting started. All further information you may find on following page: https://bobaos.github.io/.

Vladimir Shabunin

unread,
Dec 25, 2018, 6:39:38 PM12/25/18
to CommandFusion Software
Good news, everyone

I have implemented Websocket API to control KNX datapoints with help of bobaos project and Weinzierl KNX BAOS modules.

All instructions can be found here: https://github.com/shabunin/bobaos.cf
Quick start can be done with RaspberryPi, no much linux knowledge is required.
The only challenging thing you may meet is to write gzipped image to microSD card.

суббота, 31 марта 2018 г., 20:48:57 UTC+3 пользователь Vladimir Shabunin написал:

René Schmidt

unread,
Dec 26, 2018, 7:33:23 AM12/26/18
to CommandFusion Software
Great. I will test it and give feedback.

René Schmidt

unread,
Jan 23, 2019, 5:21:23 PM1/23/19
to CommandFusion Software
Hello Vladimir, how can I quickly read all values at program start? With which Javascript command? I tested it with bobaos.getValue(id, function(err, data), but there is no answer from the device. Thanks Rene

Vladimir Shabunin

unread,
Jan 24, 2019, 2:08:36 AM1/24/19
to comman...@googlegroups.com
Hi, Rene.

Here comes the troubles :)

// if send 'null' as a payload in getDescription
// it will return description of all datapoints
bobaos
.getDescription(null, function(err, data) {
 
if (err) {
   
return CF.log("Error on getDescription request: " + err.message);
 
}
 
 
if (Array.isArray(data)) {
   
var idArray = data.map(function(t) { return t.id; });
   
// to get value stored in BAOS module
    bobaos
.getValue(idArray, function(err, data) {
     
if (err) {
       
return CF.log("Error on getValue request: " + err.message);
     
}
     
      CF
.log("getValue returned: ");
      CF
.log(JSON.stringify(data));
   
});
   
   
// to send read request to KNX bus
    bobaos
.readValue(idArray, function(err, data) {
     
if (err) {
       
return CF.log("Error on readValue request: " + err.message);
     
}
     
// do not need to log
     
// values should trigger main bobaos callback
     
// https://github.com/shabunin/bobaos.cf/blob/master/assets/js/userMain.js#L129
   
});
 
} else {
    CF
.log("Returned data is not array: " + data);
 
}
});

Should be past after bobaos.connect() in CF.userMain function.

Also, could you provide with sources you are writing?
Can you ssh to your RaspberryPi?

четверг, 24 января 2019 г., 1:21:23 UTC+3 пользователь René Schmidt написал:
Reply all
Reply to author
Forward
0 new messages