Page 1 of 1

no counter values in day

Posted: Monday 08 May 2017 9:31
by ropske
Hi,

i made some counters and for some reason there is no data in the day usage.
Please find pictures in attachment

Total count as overview is now at 34 and that's correct.
But day usage keeps telling 0

Someone knows what i'm doing wrong?
Thank you

Re: no counter values in day

Posted: Monday 08 May 2017 21:31
by geezerrr
Hmm I have the same problem. No idea how to debug this one.

Re: no counter values in day

Posted: Tuesday 09 May 2017 9:31
by ropske
Glad i'm not alone :p

i want to know how many times my dishwasher,... has run every day.
But now i cant do it with domoticz

In my sql server i can see it (i store all data also in here)

Re: no counter values in day

Posted: Tuesday 09 May 2017 10:21
by freijn
Could it be the way you insert the events?

I think I am using the same (general ) counter and adressing the counting via a URL.

As you can see with nice hour stats

Image

Image

Re: no counter values in day

Posted: Tuesday 09 May 2017 21:39
by ropske
freijn wrote:Could it be the way you insert the events?

I think I am using the same (general ) counter and adressing the counting via a URL.

As you can see with nice hour stats

Image

Image
Hi freijn,
thank you for your answer.
You could be right :)

i'm updating my counters this way:
http://127.0.0.1:8080/json.htm?type=com ... value=xxxx
where svalue is the updated value of my counter

Re: no counter values in day

Posted: Tuesday 09 May 2017 23:00
by freijn
Hemmm

Everytime I have found a new airplane ( in your case as new wash :-) )
I call the following url

http://192.168.1.155:8080/json.htm?type ... 7&svalue=1

Why you have the two value's ?

b.t.w. Do you not have the issue that the counter goes "red" if not seen for serveral minutes/hrs?
I call the same Url with a 0 (zero) value as a keep alive...

Re: no counter values in day

Posted: Wednesday 10 May 2017 4:57
by ropske
freijn wrote:Hemmm

Everytime I have found a new airplane ( in your case as new wash :-) )
I call the following url

http://192.168.1.155:8080/json.htm?type ... 7&svalue=1

Why you have the two value's ?

b.t.w. Do you not have the issue that the counter goes "red" if not seen for serveral minutes/hrs?
I call the same Url with a 0 (zero) value as a keep alive...
Your counter, is it a rfxmeter or incremental counter?
Mine is a virtual rfxmeter as a normal counter.
And im not updating by 1 like you, but i store the washes done in a variable and i send that variable to my counter , maybe thats why its not working?

Re: no counter values in day

Posted: Wednesday 10 May 2017 10:15
by freijn
My counter is a script running on an different Rasp and "just" calling the url to increment the counter by 1.

I have not tested the adding to counter as you do, can't help you on that one :-(
I can only confirm that adding 1 every time is working perfectly....

Re: no counter values in day

Posted: Wednesday 10 May 2017 13:04
by ropske
I mean, are you using a normal counter or an incremental counter? See picture :)

Re: no counter values in day

Posted: Thursday 11 May 2017 13:33
by freijn
The "normal" counter.

Top one.

Re: no counter values in day

Posted: Thursday 11 May 2017 23:01
by ropske
can you show the information about your counter please?
this is mine:
[77] => Array
(
[AddjMulti] => 1
[AddjMulti2] => 1
[AddjValue] => 0
[AddjValue2] => 0
[BatteryLevel] => 255
[Counter] => 1 vaatwas
[CounterToday] => 1 vaatwas
[CustomImage] => 0
[Data] => 1 vaatwas
[Description] =>
[Favorite] => 0
[HardwareID] => 4
[HardwareName] => Dummy
[HardwareType] => Dummy (Does nothing, use for virtual switches only)
[HardwareTypeVal] => 15
[HaveTimeout] =>
[ID] => 140CA
[LastUpdate] => 2017-05-11 22:50:08
[Name] => Vaatwasbeurten
[Notifications] => false
[PlanID] => 0
[PlanIDs] => Array
(
[0] => 0
)

[Protected] =>
[ShowNotifications] => 1
[SignalLevel] => -
[SubType] => RFXMeter counter
[SwitchTypeVal] => 3
[Timers] => false
[Type] => RFXMeter
[TypeImg] => counter
[Unit] => 1
[Used] => 1
[ValueQuantity] => beurten
[ValueUnits] => vaatwas
[XOffset] => 0
[YOffset] => 0
[idx] => 122
)



i tried with your url to update the counter, it says ok
{
"status" : "OK",
"title" : "Update Device"
}

but when i check at my device it stays at 1
http://192.168.1.175:8080/json.htm?type ... 2&svalue=1

Re: no counter values in day

Posted: Friday 12 May 2017 16:11
by freijn
Sure I can show you, but please tell me how to get the info you are showing?

Re: no counter values in day

Posted: Friday 12 May 2017 18:23
by aleph0
Hi guys !

I'm having the same problem on *one* of my three dummy counters, all updated by the same lua function !

This happened when I updated to the beta 7412, everything was working fine before, with version 6371

I checked data in the dB, everything is normal. I guess something is broken in the last betas, but I can't figure out what

Re: no counter values in day

Posted: Monday 27 May 2019 21:24
by koender
ropske wrote: Monday 08 May 2017 9:31 Hi,

i made some counters and for some reason there is no data in the day usage.
Please find pictures in attachment

Total count as overview is now at 34 and that's correct.
But day usage keeps telling 0

Someone knows what i'm doing wrong?
Thank you
So we now in 2019... and still this is happening to me. Logging GB diskspace from my NAS.
Used a Counter. Updating is with:
/json.htm?type=command&param=udevice&idx=$NAS_TEST01_IDX&svalue=<SOMEVALUE>

So the status is ok, but the day count is wrong. Also the graphs are all 0.

Did some testing: First we post this:
/json.htm?type=command&param=udevice&idx=$NAS_TEST01_IDX&svalue=10
Count will be 10.
A few minutes later we post:
/json.htm?type=command&param=udevice&idx=$NAS_TEST01_IDX&svalue=13
Count will be 13.

Graph will show a bar with value 10 (on hour 0) and a bar at with value 3 (for the hour+1). Because it thinks this hour(13) -/- 10 (previous hour) = 3. And I think this is a part of the strange behaviour. I my case I don't want to have a 'usage per day', but just the value of that day, so no calculation with previous periods.

Does anyone know what counter can best be used for 'counting' harddisk GB's?

Edit:
Just found out that 'Custom Sensor' is what I need. It just shows the latest value. And in graph it shows the values over time.