telldus-core 2.1.1 running on OpenWRT
Posted: Fri Mar 17, 2023 9:45 am
Hi,
I managed to port telldus-core 2.1.1 to OpenWRT.
Now my Tellstick Duo is at least able to receive data from the sensors, when connected to my Buffalo WZR-HP-G300NH which runs OpenWRT.
Because it seems that there is some general interest in using a more recent telldus-core with OpenWRT, I'm planning to publish my patches anyway - even if those are are not too pretty currently (one reason is that I haven't used Cmake ever before..)
However, there is one showstopper which prevents me from taking the tellstick to "production use". Also, I'd like to resolve that before releasing my changes to anyone.
The question is related to writing to the configuration files. There seems to be two config files, /etc/tellstick.conf and /var/state/telldus-core.conf, and there are routines which write to both of these (see service/SettingsConfuse.cpp).
I'd like to know how often these files are written into? And in what situations?
Why both files may be overwritten by service/SettingsConfuse.cpp? I thought that /etc/tellstick.conf should be a read-only config file.
Writing to the filesystem should be avoided on embedded devices which might have only ordinary, fixed flash chips for the filesystem. I want to avoid excessive writing, so that the flash wont burn out. Code which never writes to the flash is of course even better.
So, is it possible to disable the writing code completely, or would there be bad side-effects if I do so?
I managed to port telldus-core 2.1.1 to OpenWRT.
Now my Tellstick Duo is at least able to receive data from the sensors, when connected to my Buffalo WZR-HP-G300NH which runs OpenWRT.
Because it seems that there is some general interest in using a more recent telldus-core with OpenWRT, I'm planning to publish my patches anyway - even if those are are not too pretty currently (one reason is that I haven't used Cmake ever before..)
However, there is one showstopper which prevents me from taking the tellstick to "production use". Also, I'd like to resolve that before releasing my changes to anyone.
The question is related to writing to the configuration files. There seems to be two config files, /etc/tellstick.conf and /var/state/telldus-core.conf, and there are routines which write to both of these (see service/SettingsConfuse.cpp).
I'd like to know how often these files are written into? And in what situations?
Why both files may be overwritten by service/SettingsConfuse.cpp? I thought that /etc/tellstick.conf should be a read-only config file.
Writing to the filesystem should be avoided on embedded devices which might have only ordinary, fixed flash chips for the filesystem. I want to avoid excessive writing, so that the flash wont burn out. Code which never writes to the flash is of course even better.
So, is it possible to disable the writing code completely, or would there be bad side-effects if I do so?