Search found 93 matches
- Sunday 24 March 2024 16:44
- Forum: Suggestions
- Topic: log graphs on longer period
- Replies: 8
- Views: 1716
Re: log graphs on longer period
To be honest, I had seen this "total usage" and "past usage" without understanding what it was calculating.. What is this "past usage" ? the usage during previous period (previous year or previous month depending on the graph you look at ?) ? or the sum of several previous periods ? Is it documented ...
- Sunday 24 March 2024 15:43
- Forum: Suggestions
- Topic: log graphs on longer period
- Replies: 8
- Views: 1716
Re: log graphs on longer period
Hi, I've indeed used Influxdb and Grafana to export data, but it forces to add other apps, so higher maintenance, more problems, more knowledge on reporting, etc. Not really user friendly as an overall solution, even thoughI agree that these 2 other tools are themselves individually very powerful ...
- Saturday 23 March 2024 20:52
- Forum: Suggestions
- Topic: log graphs on longer period
- Replies: 8
- Views: 1716
log graphs on longer period
Hi, Would it be possible to visualize data on more than 1 week or more than 1 year ? Currently, there's a comparison graph which is useful, but I'd appreciate being able to compare "month to month", like comparing January 2023 with January 2024, or comparing the same day between current week with ...
- Tuesday 12 March 2024 12:31
- Forum: dzVents
- Topic: script showing weird messages
- Replies: 4
- Views: 279
Re: script showing weird messages
Hi, Thanks a lot for your clarifications. I had inserted such logs to introduce some kind of checking, mainly for debugging. I was intending to check that a change had been effectively applied. I now understand I can't use such approach for the script to check that the change was applied and I'll ...
- Sunday 10 March 2024 21:40
- Forum: dzVents
- Topic: script showing weird messages
- Replies: 4
- Views: 279
script showing weird messages
Hi, I wrote a script to manage a heater. The script works but I don't understand the logs which don't seem consistent with what script does. Context: I have a heater managed by zwave device that is registered in domoticz as a Dimmer device ('Rad_SdB') (value <10 means heater is Off, value >=50 means ...
- Monday 08 May 2023 16:23
- Forum: Python
- Topic: Python Plugin: TUYA
- Replies: 507
- Views: 105906
Re: Python Plugin: TUYA
Hi, I've been using the great pugin for long time now, with several switches devices : great job and thanks a lot ! I've just added through my android App Smart Life a new device, an "irrigation device" "ie this : https://fr.aliexpress.com/item/1005005066994855.html?spm=a2g0o.order_list.order_list ...
- Tuesday 18 April 2023 23:59
- Forum: dzVents
- Topic: persistent data and Time object & functions
- Replies: 0
- Views: 502
persistent data and Time object & functions
Hi, I used to have dzvent script working in a former version of DZvents (in 2021.xx of domoticz). The script was using statements like: data = { resetUPS = {initial='Off'}, lastReset = {initial=""} }, [...] local now= Time() dz.data.lastReset = now if (dz.data.resetUPS == 'On' and dz.data.lastReset ...
- Tuesday 18 April 2023 23:02
- Forum: dzVents
- Topic: Time and getISO problem
- Replies: 12
- Views: 805
Re: Time and getISO problem
I can use such workaround and also only use text data for my data, thanks for your help.
However, if anyone could clarify why the functions don't seem to work despite it used to work in previous version of domoticz and dzcents, I'd like to understand.. I lose here interesting features of time object.
However, if anyone could clarify why the functions don't seem to work despite it used to work in previous version of domoticz and dzcents, I'd like to understand.. I lose here interesting features of time object.
- Tuesday 18 April 2023 11:41
- Forum: dzVents
- Topic: Time and getISO problem
- Replies: 12
- Views: 805
Re: Time and getISO problem
I'm not sure I understand what you mean. In my script, right after initializing at ' ', I assign the Time object to it, so it shouldn't be NIL afterwards, correct ? So which kind of test should I do to check that it's now a Time object with some value ? And the next question, is: if I can fill it ...
- Tuesday 18 April 2023 10:51
- Forum: dzVents
- Topic: Time and getISO problem
- Replies: 12
- Views: 805
Re: Time and getISO problem
Hi, I was aiming at using a time object, so that I can use functions like 'minutesAgo' and simple calculations on time values, etc. Do you mean that these script persistent variables can not be objects ? If I want an object, we must create and use a Global Variable ? In other words, the script ...
- Tuesday 18 April 2023 9:59
- Forum: dzVents
- Topic: Time and getISO problem
- Replies: 12
- Views: 805
Re: Time and getISO problem
Hi, I followed your advice and changed the test script this way: return { on = { timer = { 'every 1 minutes', -- causes the script to be called every 3 minutes }, }, data = { lastReset = {initial= ''} }, logging = { level = domoticz.LOG_DEBUG, marker = getVoltage, }, execute = function(dz) local ...
- Monday 17 April 2023 18:35
- Forum: dzVents
- Topic: Time and getISO problem
- Replies: 12
- Views: 805
Re: Time and getISO problem
well, when I checked the file with data in domoticz/scripts/dzvents/data, the variable was not empty, but with mixed fields.. The problem is probably due to a misuse of Time variables.. but even with very simple script, I get an error: return { on = { timer = { 'every 1 minutes', -- causes the ...
- Monday 17 April 2023 16:04
- Forum: dzVents
- Topic: Time and getISO problem
- Replies: 12
- Views: 805
Re: Time and getISO problem
If I simply use statement such as (row 53): dz.log('testscript last reset at time :'..dz.data.lastReset, dz.LOG_INFO) then I get no value displayed (even for the 'temptime' local variable), only text messages and an error for trying to concatenate: 2023-04-17 16:00:00.428 Status: dzVents: Info ...
- Monday 17 April 2023 14:04
- Forum: dzVents
- Topic: Time and getISO problem
- Replies: 12
- Views: 805
Time and getISO problem
Hi, There must be something that I don't understand about Time variables and data. I had a script running properly for a long time, but not wokring anymore since I had to reinstall and upgrade to newer domtoicz/dzvents version. I was probably not coding properly and benefitting from some trick, but ...
- Thursday 13 April 2023 19:07
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Best way to restore after crash on Pi
- Replies: 5
- Views: 939
Re: Best way to restore after crash on Pi
Hi, It seems working now : thanks a lot for all your help !! This said : - I used Buster because I had read several messages from summer 2022 stating that Domoticz had still many issues when working with latest versions of Python.. an dmaybe several of plugins I used could be impacted as well ? Is ...
- Wednesday 05 April 2023 0:21
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Best way to restore after crash on Pi
- Replies: 5
- Views: 939
Re: Best way to restore after crash on Pi
Hi, Si I installed a fresh Buster and also Pyhton, some plugins (the ones I was using, except Gcalcli which was not working anymore) (ie MYsensors, Pychromecast, Linky) then I installed Domoticz (latest version 2023.1). Then I copy pasted in the scripts folder the scripts I had backedup. Then I ...
- Monday 03 April 2023 14:20
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Best way to restore after crash on Pi
- Replies: 5
- Views: 939
Re: Best way to restore after crash on Pi
ok, thank you for your advice, I'll try that way.
- Monday 03 April 2023 12:40
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Best way to restore after crash on Pi
- Replies: 5
- Views: 939
Best way to restore after crash on Pi
Hi, I was still using Domoticz in a version of 2021 (updated in May 2021) using Raspberry Pi. I didn't update especially due to the new constraints on Zwave (loss of openzwave..). Last week , I wanted to make a backup, but I did so using a procedure using image_utils and an external SB key to ...
- Sunday 25 October 2020 21:53
- Forum: dzVents
- Topic: handling time in dzvents [Solved]
- Replies: 4
- Views: 1264
Re: handling time in dzvents [Solved]
Hi Waaren,
Thanks a lot ! Your explanations are very interesting to better understand the mechanics behind and to suggest several ways to proceed !
Thanks again,
Ricorico94
Thanks a lot ! Your explanations are very interesting to better understand the mechanics behind and to suggest several ways to proceed !
Thanks again,
Ricorico94
- Sunday 25 October 2020 17:22
- Forum: dzVents
- Topic: handling time in dzvents [Solved]
- Replies: 4
- Views: 1264
Re: handling time in dzvents [Solved]
Hi, Interesting workaround. Could you clarify how to set lastReset to the date of the script using lastUpdate ? Would it be dz.data.lastReset=dz.lastUpdate ? Also, if I use lastUpdate directly, I understand that it would send the time/date when the script ran before this call. But if my "lastReset ...