Incremental counter with new stable

Moderator: leecollings

Post Reply
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Incremental counter with new stable

Post by Pchatill »

Hi.
I install the last stable version for windows.
But now, when I want to create a new virtual incremental counter, domoticz tell me that the sensor has been created, but I can't find it anywhere...
Any idea?
Thanks.

PS: I just want to pass domoticz in English, but impossible to save the settings...
Apply settings is not functionnal.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Incremental counter with new stable

Post by waaren »

Pchatill wrote: Tuesday 14 April 2020 18:59 I just want to pass domoticz in English, but impossible to save the settings...
Apply settings is not functional.
From this post together with some of your other recent posts I get the impression that you face some user right problems. Did you install domoticz as user with admin rights and does domoticz has write access to the windows file system ?
I have almost zero knowledge on Windows but maybe it rings a bell for you or other members on this forum.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Re: Incremental counter with new stable

Post by Pchatill »

Thanks for response.
But I tried with admin rights: same problems.
And I tried with an other computer: same!!
-No incremental counter
-Backup file generated during backup: .php file (empty!)
-No logs
-No automatic backup

Other thing: the file domoticz.db in C:\Program Files (x86)\Domoticz is not update: So I can't copy this file to manually backup..

Anyone using windows with new stable version?

Regards
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Incremental counter with new stable

Post by waaren »

Pchatill wrote: Wednesday 15 April 2020 13:01 Other thing: the file domoticz.db in C:\Program Files (x86)\Domoticz is not update: So I can't copy this file to manually backup..
Anyone using windows with new stable version?
I am not really using it but I test with it and do not see any of the problems you describe. Update and installation works without a problem for both stable and latest Beta using the default installation process.

I can create an incremental counter in dummy hardware and it shows on the devices and utility tab.
Manual backup (to desktop) and restore works without issues. Automatic backups work and create subfolders hourly, daily and monthly

Only thing what I already see for many months is that my Virus scanner (AVG) does not recognize domoticz as being safe and always want to doublecheck in the lab. So maybe your protection schema is also playing tricks on you.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Re: Incremental counter with new stable

Post by Pchatill »

Thanks waaren.
I solved 2 problems:
First one: I needed to give a total access to C:\Program Files (x86)\Domoticz to backup my database
The automatic backup is now also fonctional.
Second one: The file domoticz.db is located in C:\ProgramData\Domoticz and not C:\Program Files (x86)\Domoticz
But always a problem with incremental counter (Counter is OK) and domoticz.log is empty
I saw in the manual that we can change some parameters:
Command Line parameters
The following command line parameters are available:
-www port (for example -www 8080)
-sslwww port (secure web port, for example -sslwww 443)
-dbase file_path (for example D:\domoticz.db or /opt/domoticz/domoticz.db)
-verbose x (where x=0 is none, x=1 is debug)
-startupdelay seconds (default=0)
-nowwwpwd (in case you forgot the webserver username/password)
-nobrowser (do not start web browser) (Windows Only)
-log file_path (for example D:\domoticz.log)
-loglevel (0=All, 1=Status+Error, 2=Error)
-nocache (do not cache HTML pages (for editing)
-daemon (run as background daemon) (Unix Only)
-syslog (use syslog as log output) (Unix Only)
If Domoticz is compiled with SSL support:
-sslwww port (for example -sslwww 443)
-sslcert file_path (for example D:\server_cert.pem or /opt/domoticz/server_cert.pem)
If no –sslcert parameter is provided, Domoticz will use server_cert.pem from its installation folder
But How to do that?
Previously it was possible with regedit:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Domoticz\Parameters
But \Domoticz\Parameters does not exist anymore...
I will try later to remove antivirus
Thanks again
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Incremental counter with new stable

Post by waaren »

Pchatill wrote: Wednesday 15 April 2020 16:32 Previously it was possible with regedit:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Domoticz\Parameters
But \Domoticz\Parameters does not exist anymore...
Thanks again
I only know how to do that when running domoticz as an app. (in target)
target.png
target.png (29.62 KiB) Viewed 2338 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Re: Incremental counter with new stable

Post by Pchatill »

Thanks a lot waaren!
You're right:
When domoticz is install as an app, then you can modify the link as you describe.
And when domo is install as a service, you can modify with regedit as I describe.
Previously I installed domoticz as a service, but last install was as app.
That was my mistake !!

Now only 1 problem remaining:
impossible to create the sensor: incremental counter.
Could a windows user with last stable could test that?
Thanks
Patrick
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Incremental counter with new stable

Post by waaren »

Pchatill wrote: Thursday 16 April 2020 7:01 Now only 1 problem remaining:
impossible to create the sensor: incremental counter.
As posted before. I tested that and it works without issues.
Create it on your dummy (only used for...) hardware and look at the utility tab to see it.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Re: Incremental counter with new stable

Post by Pchatill »

As posted before...
... Sorry: As your target OS is defined as Linux, I was not sure you tried with windows
Create it on your dummy (only used for...) hardware and look at the utility tab to see it.
That's exactly what I do.
There is a pop-up in domoticz telling me that sensor has been created, but nothing...
When I try with an other sensor (or non incremental counter), it works OK
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Incremental counter with new stable

Post by waaren »

Pchatill wrote: Thursday 16 April 2020 13:56 [That's exactly what I do.
There is a pop-up in domoticz telling me that sensor has been created, but nothing...
When I try with an other sensor (or non incremental counter), it works OK
Can you open a developer window on your browser when creating such a counter. Maybe you see something erroring there.

What do you see when entering below http on the same machine as domoticz (assuming you use 8080 as port and your dummy hardware has idx 2 )

Code: Select all

http://127.0.0.1:8080/json.htm?type=createdevice&idx=2&sensorname=myCounter&sensormappedtype=0xF31C
My return is confirming the device is created with device idx 5

Code: Select all

{
"idx": "5",
"status": "OK",
"title": "CreateSensor"
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Re: Incremental counter with new stable

Post by Pchatill »

I just tried with json.
The response is correct:
idx "148"
status "OK"
title "CreateSensor"
But no sensor create.
If I repeat the same command, the same device Id (148) is created (That mean that the previous was not created...)
And (just after) if I want to get the status of this device:
Response is:
ActTime 1587051586
AstrTwilightEnd "22:20"
AstrTwilightStart "05:02"
CivTwilightEnd "21:01"
CivTwilightStart "06:21"
DayLength "13:37"
NautTwilightEnd "21:39"
NautTwilightStart "05:43"
ServerTime "2020-04-16 17:39:46"
SunAtSouth "13:41"
Sunrise "06:53"
Sunset "20:30"
app_version "2020.1 (build 11935)"
status "OK"
title "Devices"
No information about this device!
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Incremental counter with new stable

Post by waaren »

Do you see anything in the domoticz log ?



Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Re: Incremental counter with new stable

Post by Pchatill »

2020-04-16 18:35:24.813 Status: EventSystem: reset all device statuses...
That's all !!
Pchatill
Posts: 17
Joined: Wednesday 16 September 2015 5:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3774
Contact:

Re: Incremental counter with new stable

Post by Pchatill »

Today it's working !!!
I don't know why.
I didn't do anything more (not even a reset computer ...)
I'm sure it was not working with the same process...

Thanks a lot waaren for your help and the time you spend for me!
Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest