Search found 50 matches
- Thursday 12 June 2025 21:18
- Forum: Bugs and Problems
- Topic: date in the data persistent
- Replies: 3
- Views: 362
Re: date in the data persistent
i have a delta of 2 hours with the new version ["mesure"] = { [1] = { ["time"] = "2025-6-12 19:15:2.427"; ["data"] = 1; }; in the docker-compose i put TZ=Europe/Paris and the date in the container is up and the date in the container root@af0c9761cdcc:/opt/domoticz# date Thu Jun 12 21:15:09 CEST 2025 ...
- Saturday 31 May 2025 22:04
- Forum: General Discussion
- Topic: test new day
- Replies: 2
- Views: 582
Re: test new day
i found this solution with data persistent
Code: Select all
local jour = dz.time.day
if jour ~= dz.data.config.jour then
end
- Saturday 31 May 2025 10:25
- Forum: Bugs and Problems
- Topic: switch sekector priority of the OFF status or not ?
- Replies: 0
- Views: 334
switch sekector priority of the OFF status or not ?
Hi
i put off on the switch selector, and i have a planning on(auto) at 7 am
i don't know if the execution is normal but the planning of 7 am reactivated the selector, is it normal ?
never the less, the off status is not priority
Pierrotori
i put off on the switch selector, and i have a planning on(auto) at 7 am
i don't know if the execution is normal but the planning of 7 am reactivated the selector, is it normal ?
never the less, the off status is not priority
Pierrotori
- Wednesday 12 March 2025 8:20
- Forum: General Discussion
- Topic: init persistent data with value
- Replies: 2
- Views: 367
Re: init persistent data with value
i initialize the data, because the data will be insert every 5 minutes, it's take 60 minutes to have all the mesure and i have a function that calculate the standard deviation with the all values i used the parameter size or check if the data is not equal to nil, but in my case it's more easy to add ...
- Tuesday 11 March 2025 13:52
- Forum: General Discussion
- Topic: init persistent data with value
- Replies: 2
- Views: 367
init persistent data with value
Hi
i have this
And to init
is it the best solution to init the persistent data ?
Pierrotori
i have this
Code: Select all
data = {
value= { history = true, maxItems = 12}
}
Code: Select all
-- init the persistent data to zero
for i=1,12 do
dz.data.value.add(0)
end
Pierrotori
- Sunday 09 March 2025 9:28
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 610
Re: tendances value in the dzvent script
i found the formule n = len(days) sum_x = sum(days) sum_y = sum(water) sum_xx = sum(days * days) sum_xy = sum(days * water) # Formules pour la pente (slope) et l'ordonnée à l'origine (intercept) # slope = (n∑(xy)−∑x∑y)/(n∑(x^2)-∑(x)^2) slope = (n * sum_xy - sum_x * sum_y) / (n * sum_xx - sum_x ^2) # ...
- Monday 03 February 2025 8:43
- Forum: General Discussion
- Topic: value of rfxmeter counter
- Replies: 2
- Views: 455
Re: value of rfxmeter counter
i found the problem if the counter is updated every min then the counter is updated à 0 for the new day. but if the counter is equal to 349 for exemple and you arrive in the new day , it's the last update at 3:am will update the counter to 0 during the period 0:0 am to 3:0 am the counterToday is ...
- Saturday 01 February 2025 15:09
- Forum: General Discussion
- Topic: test new day
- Replies: 2
- Views: 582
test new day
Hi,
it is a best solution to get the new day and test if dz.time.hour == 0 in the dzvents script ?
Regards
it is a best solution to get the new day and test if dz.time.hour == 0 in the dzvents script ?
Regards
- Saturday 01 February 2025 10:52
- Forum: General Discussion
- Topic: value of rfxmeter counter
- Replies: 2
- Views: 455
value of rfxmeter counter
Hi,
i have a problem for the value counter when i try dz.devices("xxx").counterToday next 0:0 , i have the value of the before day and not the init value of the next day
normaly for the new day the counter is reset to zero, is it correct ?
Pierrotori
i have a problem for the value counter when i try dz.devices("xxx").counterToday next 0:0 , i have the value of the before day and not the init value of the next day
normaly for the new day the counter is reset to zero, is it correct ?
Pierrotori
- Saturday 01 February 2025 10:47
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 610
Re: tendances value in the dzvent script
i try this , but no tendance water in the result of http
Code: Select all
http://xxx.xxx.xx.x:8080/json.htm?groupby=month&idx=625¶m=graph&sensor=counter&type=command
- Saturday 01 February 2025 10:45
- Forum: dzVents
- Topic: timer with except
- Replies: 4
- Views: 1993
Re: timer with except
exactly, i didn't find a correct syntax . i have this solution to bypass
- Friday 31 January 2025 19:08
- Forum: dzVents
- Topic: timer with except
- Replies: 4
- Views: 1993
Re: timer with except
i found this solution , to have the trigger name in the script
local time_today = 'every 5 minutes except at 02:00-06:00' -- periode activité
local time_calme = 'every 5 minutes between 02:00 and 06:00' -- periode calme zero consommation
local time_today = 'every 5 minutes except at 02:00-06:00' -- periode activité
local time_calme = 'every 5 minutes between 02:00 and 06:00' -- periode calme zero consommation
- Wednesday 29 January 2025 17:16
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 610
tendances value in the dzvent script
very good, thanks a lot i continue to update the dzvents script
- Wednesday 29 January 2025 8:00
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 610
Re: tendances value in the dzvent script
if i would like to use the function in dzvents to calculate a trend bases, i suppose i use a sqlite function, is it correct ?
but by default sqlite is not installed
but by default sqlite is not installed
- Tuesday 28 January 2025 20:54
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 610
tendances value in the dzvent script
hi,
i have a rfx meter counter. Is it possible to get the value 349 tendance water in the dzvents script ? Pierrotori
i have a rfx meter counter. Is it possible to get the value 349 tendance water in the dzvents script ? Pierrotori
- Wednesday 08 January 2025 19:20
- Forum: dzVents
- Topic: timer with except
- Replies: 4
- Views: 1993
timer with except
Hi,
i would like to create a timer as 'every 5 minutes except at 02:00 and except at 06:00'
but the first exception is right but not the second
What is the good syntax in the rule ?
Pierrotori
i would like to create a timer as 'every 5 minutes except at 02:00 and except at 06:00'
but the first exception is right but not the second
What is the good syntax in the rule ?
Pierrotori
- Tuesday 07 January 2025 20:43
- Forum: Bugs and Problems
- Topic: date in the data persistent
- Replies: 3
- Views: 362
date in the data persistent
Hi when i use the command dz.data.stat_xxxx.add and i check the date in the data persistent file, i have this ["xxxx"] = { [1] = { ["time"] = "2025-1-7 19:30:0.343"; ["data"] = "blabla"; }; the problem is the time must be 20:30 and not 19:30 my rpi and container docker are at the right time Could ...
- Monday 06 May 2024 21:00
- Forum: dzVents
- Topic: black text in domoticz log
- Replies: 3
- Views: 738
Re: black text in domoticz log
lua function ?
- Sunday 05 May 2024 19:26
- Forum: dzVents
- Topic: black text in domoticz log
- Replies: 3
- Views: 738
black text in domoticz log
Hi
what is the dzvents function to write a log text in black ?
Pierrotori
what is the dzvents function to write a log text in black ?
Pierrotori
- Monday 12 February 2024 16:46
- Forum: Z-Wave
- Topic: Device name in domoticz
- Replies: 7
- Views: 1677
Re: Device name in domoticz
i put %loc_%o and now i have flood (cave_temperature_air_2)