Giter Site home page Giter Site logo

Comments (3)

foxthefox avatar foxthefox commented on June 16, 2024

bildschirmfoto 2018-12-31 um 11 49 42

from iobroker.statistics.

foxthefox avatar foxthefox commented on June 16, 2024

Datenpunkt angelegt um 11:39

`
2018-12-31 11:39:07.742 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE replace with 0 -> temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.offYear

2018-12-31 11:39:07.742 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE timeCount last10

2018-12-31 11:39:07.742 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE value temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.last01 exists ? null in obj: temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.last01

2018-12-31 11:39:07.742 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE replace with 0 -> temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.last01

2018-12-31 11:39:07.743 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE value temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.last10 exists ? null in obj: temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.last10

2018-12-31 11:39:07.743 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE replace with 0 -> temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.last10

2018-12-31 11:39:07.743 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE object hm-rpc.0.NEQ1836839.1.STATE last01

2018-12-31 11:39:07.743 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE act value false time 1546245864555

2018-12-31 11:39:07.743 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE state is false und last 01 now as lastChange

2018-12-31 11:39:07.744 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE objects hm-rpc.0.NEQ1836839.1.STATE last10

2018-12-31 11:39:07.744 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE act value false time 1546245864555

2018-12-31 11:39:07.745 - statistics.0 [SET INITIAL] hm-rpc.0.NEQ1836839.1.STATE state is false and last 10 get old time
`

1546245864555 = 9:44
Beim Anlegen war der Zustand false/0, somit wird richtigerweise last10 mit dem Zeitstempel von object gesetzt. last01 wird mit der aktuellen Zeit beschrieben.
-> keine Werte berechnet -> OK

11:42
der true/1 Zustand wird von iobroker nicht erkannt und
es wird erst wieder false/0 erkannt

`
2018-12-31 11:43:44.991 - statistics.0 [STATE CHANGE] ======================= hm-rpc.0.NEQ1836839.1.STATE =======================

2018-12-31 11:43:44.992 - statistics.0 [STATE CHANGE] stateChange => false [true]

2018-12-31 11:43:44.992 - statistics.0 [STATE CHANGE] count call hm-rpc.0.NEQ1836839.1.STATE with false

2018-12-31 11:43:44.992 - statistics.0 timecount call hm-rpc.0.NEQ1836839.1.STATE with false

2018-12-31 11:43:44.993 - statistics.0 [STATE CHANGE] ======================= statistics.0.temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.last10 =======================

2018-12-31 11:43:44.993 - statistics.0 [STATE CHANGE] stateChange => 1546245864555 [true]

2018-12-31 11:43:44.994 - statistics.0 [STATE CHANGE] 1->0 delta -6883188 state 1546245864555 last 1546252747743

2018-12-31 11:43:44.995 - statistics.0 [STATE CHANGE] ======================= statistics.0.temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.onDay =======================

2018-12-31 11:43:44.995 - statistics.0 [STATE CHANGE] stateChange => -6883188 [true]

2018-12-31 11:43:44.997 - statistics.0 [STATE CHANGE] ======================= statistics.0.temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.onWeek =======================

2018-12-31 11:43:44.997 - statistics.0 [STATE CHANGE] stateChange => -6883188 [true]

2018-12-31 11:43:44.999 - statistics.0 [STATE CHANGE] ======================= statistics.0.temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.onMonth =======================

2018-12-31 11:43:44.999 - statistics.0 [STATE CHANGE] stateChange => -6883188 [true]

2018-12-31 11:43:45.002 - statistics.0 [STATE CHANGE] ======================= statistics.0.temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.onQuarter =======================

2018-12-31 11:43:45.002 - statistics.0 [STATE CHANGE] stateChange => -6883188 [true]

2018-12-31 11:43:45.005 - statistics.0 [STATE CHANGE] ======================= statistics.0.temp.timeCount.hm-rpc.0.NEQ1836839.1.STATE.onYear =======================

2018-12-31 11:43:45.005 - statistics.0 [STATE CHANGE] stateChange => -6883188 [true]
`

1->0 delta -6883188 state 1546245864555 last 1546252747743 (9:44 -11:39)
hätte aber (11:43 -11:42) sein müssen
da aber kein 0->1 aufgetreten ist, fehlt das setzen von last01 und es bleibt bei 9:44 und somit Berechnung negativer Zeitspanne

=> falls doch einmal negative Zeiten entstehen, dann die Addition mit 0 setzen

from iobroker.statistics.

foxthefox avatar foxthefox commented on June 16, 2024

main.js ergänzt

from iobroker.statistics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.