Page 1 of 1

Does anyone successfully use RTL433 under windows ?

Posted: Saturday 12 January 2019 11:33
by sam974
Hi everyone,
Everything is in the title !
I try to have it to work in domoticz but it fails (latest beta and stable version )! the executable file rtl_433.exe and the twos dll are well on root c:\ but the log tells "rtl433 failed !"
Strange because It works great and receive data of my temp sensor if i manually launch it in a cmd terminal (but not from domoticz)

Any idea ?
Does anyone successfully use RTL433 with domoticz under windows ?

Thank you for your help,

Sam974




Envoyé de mon SM-G930F en utilisant Tapatalk


Re: Does anyone successfully use RTL433 under windows ?

Posted: Sunday 20 January 2019 14:36
by sam974
Hi,
Nobody ?!
So it seems that this plugin is not really used in domoticz !

Regards,
Sam

Envoyé de mon SM-G930F en utilisant Tapatalk


Re: Does anyone successfully use RTL433 under windows ?

Posted: Wednesday 13 February 2019 22:49
by mutley
Can't comment for Windows, but it's broken under Linux. RTL_433 has changed the command line parameters, and returns error if you pass any of old parameters. Domoticz has hard coded a few command line parameters and one of them causes RTL_433 to exit with an error. Only way round it is to use an old version of RTL_433, or modify Domoticz. But as I was looking at the code, the way Domoticz interprets the RTL_433 output is kind-a hokey and didn't support any of the devices I was interested in. So I just created my own RTL_433 2 Domoticz wrapper. Even if you get the plugin going, you may be disappointed as it's quite limited.

Re: Does anyone successfully use RTL433 under windows ?

Posted: Thursday 14 February 2019 9:52
by Jeremob
mutley wrote: Wednesday 13 February 2019 22:49 Can't comment for Windows, but it's broken under Linux. RTL_433 has changed the command line parameters, and returns error if you pass any of old parameters. Domoticz has hard coded a few command line parameters and one of them causes RTL_433 to exit with an error. Only way round it is to use an old version of RTL_433, or modify Domoticz. But as I was looking at the code, the way Domoticz interprets the RTL_433 output is kind-a hokey and didn't support any of the devices I was interested in. So I just created my own RTL_433 2 Domoticz wrapper. Even if you get the plugin going, you may be disappointed as it's quite limited.
Hi,

Have you find a solution on Linux to use RTL_433 ?

Thanks
Jeremie

Re: Does anyone successfully use RTL433 under windows ?

Posted: Friday 15 February 2019 0:47
by mutley
Jeremob wrote: Thursday 14 February 2019 9:52
mutley wrote: Wednesday 13 February 2019 22:49 Can't comment for Windows, but it's broken under Linux. RTL_433 has changed the command line parameters, and returns error if you pass any of old parameters. Domoticz has hard coded a few command line parameters and one of them causes RTL_433 to exit with an error. Only way round it is to use an old version of RTL_433, or modify Domoticz. But as I was looking at the code, the way Domoticz interprets the RTL_433 output is kind-a hokey and didn't support any of the devices I was interested in. So I just created my own RTL_433 2 Domoticz wrapper. Even if you get the plugin going, you may be disappointed as it's quite limited.
Hi,

Have you find a solution on Linux to use RTL_433 ?

Thanks
Jeremie
I do. I created a wrapper for RTL_433 that will take the output and post it to MQTT, if you have Domoticz MQTT enabled it will post updated to that. It's not designed to be run from inside Domoticz, but rather as a completely separate process, that way you can execute it on a different machine. The configuration can be complex if you don't understand regular expressions. I didn't want to get into the same trap as the plugin by hardcoding everything so it takes a re-compile if Domoticz or RTL_433 changes, so the only way was using regular expressions in the config file.

If you're interested I can clean up the code and write a bit of documentation and post it on GitHub. But I'll take me some time to do that and this will only ever really work for Linux.

Re: Does anyone successfully use RTL433 under windows ?

Posted: Monday 18 February 2019 13:26
by Jeremob
mutley wrote: Friday 15 February 2019 0:47
Jeremob wrote: Thursday 14 February 2019 9:52
mutley wrote: Wednesday 13 February 2019 22:49 Can't comment for Windows, but it's broken under Linux. RTL_433 has changed the command line parameters, and returns error if you pass any of old parameters. Domoticz has hard coded a few command line parameters and one of them causes RTL_433 to exit with an error. Only way round it is to use an old version of RTL_433, or modify Domoticz. But as I was looking at the code, the way Domoticz interprets the RTL_433 output is kind-a hokey and didn't support any of the devices I was interested in. So I just created my own RTL_433 2 Domoticz wrapper. Even if you get the plugin going, you may be disappointed as it's quite limited.
Hi,

Have you find a solution on Linux to use RTL_433 ?

Thanks
Jeremie
I do. I created a wrapper for RTL_433 that will take the output and post it to MQTT, if you have Domoticz MQTT enabled it will post updated to that. It's not designed to be run from inside Domoticz, but rather as a completely separate process, that way you can execute it on a different machine. The configuration can be complex if you don't understand regular expressions. I didn't want to get into the same trap as the plugin by hardcoding everything so it takes a re-compile if Domoticz or RTL_433 changes, so the only way was using regular expressions in the config file.

If you're interested I can clean up the code and write a bit of documentation and post it on GitHub. But I'll take me some time to do that and this will only ever really work for Linux.
Thanks for your reply

It seems to be complicated to use your solution, but if you write a documentation, why not :)
Take your time, it's not an emergency, and thanks for your share !