Search found 4 matches

by Broomer23
Saturday 20 June 2020 15:43
Forum: Other questions and discussions
Topic: Reference to energy costs in Domoticz config
Replies: 8
Views: 1071

Re: Reference to energy costs in Domoticz config

Indeed, I also use as much as possible variables in my scripts so it is flexible.

that is also why I wanted to avoid putting the costs directly in my script.

Your help is really appreciated Waaren, thanks again!
by Broomer23
Saturday 20 June 2020 15:31
Forum: Other questions and discussions
Topic: Reference to energy costs in Domoticz config
Replies: 8
Views: 1071

Re: Reference to energy costs in Domoticz config

some additional remarks:

The path to SQLITE3 is different in my environment /etc/bin/sqlite3, so no local in my path.

In the script sudo is used, So I have to find a way to approach the domoticz DB without SUDO, because the script will run unattended.
by Broomer23
Saturday 20 June 2020 15:21
Forum: Other questions and discussions
Topic: Reference to energy costs in Domoticz config
Replies: 8
Views: 1071

Re: Reference to energy costs in Domoticz config

Ok that is a smart approach via SQL query.
I didn't think of that because I thought there would be a defined variable,
but this is very helpful, thanks very much. thanks Waaren!!
by Broomer23
Friday 19 June 2020 20:07
Forum: Other questions and discussions
Topic: Reference to energy costs in Domoticz config
Replies: 8
Views: 1071

Reference to energy costs in Domoticz config

Hi,

In the configuration section of domoticz you can enter costs for energy (T1, R1 and gas) Is there anyway to refer to these values in a bash or python script? Should be a variable name.

When I write a script for daily energy costs I do not want to put the costs inside the script but instead ...