Incremental counter with new stable
Moderator: leecollings
-
- Posts: 17
- Joined: Wednesday 16 September 2015 5:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.3774
- Contact:
Incremental counter with new stable
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.
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.
- 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
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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
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
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
- 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
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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
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:
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
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:
But How to do that?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
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
- 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
I only know how to do that when running domoticz as an app. (in target)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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
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
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
- 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
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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
... Sorry: As your target OS is defined as Linux, I was not sure you tried with windowsAs posted before...
That's exactly what I do.Create it on your dummy (only used for...) hardware and look at the utility tab to see it.
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
- 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
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
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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
I just tried with json.
The response is correct:
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:
The response is correct:
But no sensor create.idx "148"
status "OK"
title "CreateSensor"
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:
No information about this device!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"
- 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
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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
That's all !!2020-04-16 18:35:24.813 Status: EventSystem: reset all device statuses...
-
- 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
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
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
Who is online
Users browsing this forum: No registered users and 1 guest