Maybe somebody can give an example of how to use "node-red-contrib-ui-state-trail" on/off state for last 7 days. I'm newby to node-red.
Hello and welcome
As largest configurable time unit is hours, just do the math.. how many hours is 7 days
Be aware that if configuring to such long period you should expect the state changes with pretty low rate. Otherwise the graphics become unreadable and it may significantly harm your dashboard performance.
Data comes from modbus tcp "1 or 0" with a period of about 10-14 hours. But I'm completely new to "node-red". So I need some example because I don't know which nodes to use to prepare data and how to organize data into an array that would be use "ui-state-trail", my JScript skill is bad, I deal more with python.
Start by watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain. When you have done that, if you are still stuck then come back again.
There is a webinar on using the dashboard in a couple of days Getting Started with Node-RED Dashboard Webinar
Ok, I will definitely view this playlist. But I really liked in "Node-red" that there are examples in most of the modules, I used those examples and few videos, and I designed a decent project in half a day, I surprised by the speed design poject of "Node-red", the ease of project realization even for housewives, I think "Node-red" is it works amazing (very similar to the realization as shown in the electronic chip datasheet sample circuit of use ). When there is any example, it is easier and quicker to discover the right way, without doing mistake.
p.s.
Just understand me correctly, I'm not reproach, or looking for someone to do it for me. But I thing for the "Node red" project, module example of use would be useful
I haven't used it so can't help with an example, but I would start by feeding a couple of inject nodes into it and see what happens.
can you provide some sample data in below format
msg.payload = [{state:true,timestamp:1579362774639},
{state:false,timestamp:1579362795665},
{state:true,timestamp:1579362895432}]
an inject node with above sample data would be perfect.
EDIT:
adding an example below.
[{"id":"411ebe8bcc7af36a","type":"change","z":"242715e96c9f251a","name":"","rules":[{"t":"set","p":"control.label","pt":"msg","to":"'Title Goes here'","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":330,"wires":[["5a8c082857e0a8e5"]]},{"id":"353f6afb732c2b9a","type":"inject","z":"242715e96c9f251a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"state\":\"FALSE\",\"timestamp\":1684801740000},{\"state\":\"FALSE\",\"timestamp\":1684801680000},{\"state\":\"FALSE\",\"timestamp\":1684801620000},{\"state\":\"FALSE\",\"timestamp\":1684801560000},{\"state\":\"TRUE\",\"timestamp\":1684801500000},{\"state\":\"FALSE\",\"timestamp\":1684801440000},{\"state\":\"FALSE\",\"timestamp\":1684801380000},{\"state\":\"FALSE\",\"timestamp\":1684801320000},{\"state\":\"FALSE\",\"timestamp\":1684801260000},{\"state\":\"FALSE\",\"timestamp\":1684801200000},{\"state\":\"FALSE\",\"timestamp\":1684801140000},{\"state\":\"FALSE\",\"timestamp\":1684801080000},{\"state\":\"FALSE\",\"timestamp\":1684801020000},{\"state\":\"FALSE\",\"timestamp\":1684800960000},{\"state\":\"FALSE\",\"timestamp\":1684800900000},{\"state\":\"FALSE\",\"timestamp\":1684800840000},{\"state\":\"FALSE\",\"timestamp\":1684800780000},{\"state\":\"FALSE\",\"timestamp\":1684800720000},{\"state\":\"TRUE\",\"timestamp\":1684800660000},{\"state\":\"TRUE\",\"timestamp\":1684800600000},{\"state\":\"TRUE\",\"timestamp\":1684800540000},{\"state\":\"TRUE\",\"timestamp\":1684800480000},{\"state\":\"TRUE\",\"timestamp\":1684800420000},{\"state\":\"TRUE\",\"timestamp\":1684800360000},{\"state\":\"TRUE\",\"timestamp\":1684800300000},{\"state\":\"TRUE\",\"timestamp\":1684800240000},{\"state\":\"TRUE\",\"timestamp\":1684800180000},{\"state\":\"TRUE\",\"timestamp\":1684800120000},{\"state\":\"TRUE\",\"timestamp\":1684800060000},{\"state\":\"TRUE\",\"timestamp\":1684800000000},{\"state\":\"TRUE\",\"timestamp\":1684799940000},{\"state\":\"TRUE\",\"timestamp\":1684799880000},{\"state\":\"TRUE\",\"timestamp\":1684799820000},{\"state\":\"TRUE\",\"timestamp\":1684799760000},{\"state\":\"TRUE\",\"timestamp\":1684799700000},{\"state\":\"TRUE\",\"timestamp\":1684799640000},{\"state\":\"TRUE\",\"timestamp\":1684799580000},{\"state\":\"TRUE\",\"timestamp\":1684799520000},{\"state\":\"TRUE\",\"timestamp\":1684799460000},{\"state\":\"FALSE\",\"timestamp\":1684799400000},{\"state\":\"FALSE\",\"timestamp\":1684799340000},{\"state\":\"FALSE\",\"timestamp\":1684799280000},{\"state\":\"FALSE\",\"timestamp\":1684799220000},{\"state\":\"FALSE\",\"timestamp\":1684799160000},{\"state\":\"FALSE\",\"timestamp\":1684799100000},{\"state\":\"FALSE\",\"timestamp\":1684799040000},{\"state\":\"FALSE\",\"timestamp\":1684798980000},{\"state\":\"TRUE\",\"timestamp\":1684798920000},{\"state\":\"TRUE\",\"timestamp\":1684798860000},{\"state\":\"TRUE\",\"timestamp\":1684798800000},{\"state\":\"TRUE\",\"timestamp\":1684798740000},{\"state\":\"TRUE\",\"timestamp\":1684798680000},{\"state\":\"TRUE\",\"timestamp\":1684798620000},{\"state\":\"TRUE\",\"timestamp\":1684798560000},{\"state\":\"TRUE\",\"timestamp\":1684798500000},{\"state\":\"TRUE\",\"timestamp\":1684798440000},{\"state\":\"TRUE\",\"timestamp\":1684798380000},{\"state\":\"TRUE\",\"timestamp\":1684798320000},{\"state\":\"TRUE\",\"timestamp\":1684798260000},{\"state\":\"TRUE\",\"timestamp\":1684798200000},{\"state\":\"TRUE\",\"timestamp\":1684798140000},{\"state\":\"TRUE\",\"timestamp\":1684798080000},{\"state\":\"TRUE\",\"timestamp\":1684798020000},{\"state\":\"FALSE\",\"timestamp\":1684797960000},{\"state\":\"FALSE\",\"timestamp\":1684797900000},{\"state\":\"FALSE\",\"timestamp\":1684797840000},{\"state\":\"FALSE\",\"timestamp\":1684797780000},{\"state\":\"FALSE\",\"timestamp\":1684797720000},{\"state\":\"FALSE\",\"timestamp\":1684797660000},{\"state\":\"FALSE\",\"timestamp\":1684797600000},{\"state\":\"FALSE\",\"timestamp\":1684797540000},{\"state\":\"FALSE\",\"timestamp\":1684797480000},{\"state\":\"FALSE\",\"timestamp\":1684797420000},{\"state\":\"FALSE\",\"timestamp\":1684797360000},{\"state\":\"TRUE\",\"timestamp\":1684797300000},{\"state\":\"TRUE\",\"timestamp\":1684797240000},{\"state\":\"TRUE\",\"timestamp\":1684797180000},{\"state\":\"TRUE\",\"timestamp\":1684797120000},{\"state\":\"TRUE\",\"timestamp\":1684797060000},{\"state\":\"TRUE\",\"timestamp\":1684797000000},{\"state\":\"TRUE\",\"timestamp\":1684796940000},{\"state\":\"TRUE\",\"timestamp\":1684796880000},{\"state\":\"TRUE\",\"timestamp\":1684796820000},{\"state\":\"TRUE\",\"timestamp\":1684796760000},{\"state\":\"TRUE\",\"timestamp\":1684796700000},{\"state\":\"TRUE\",\"timestamp\":1684796640000},{\"state\":\"TRUE\",\"timestamp\":1684796580000},{\"state\":\"TRUE\",\"timestamp\":1684796520000},{\"state\":\"TRUE\",\"timestamp\":1684796460000},{\"state\":\"TRUE\",\"timestamp\":1684796400000},{\"state\":\"TRUE\",\"timestamp\":1684796340000},{\"state\":\"TRUE\",\"timestamp\":1684796280000},{\"state\":\"TRUE\",\"timestamp\":1684796220000},{\"state\":\"TRUE\",\"timestamp\":1684796160000},{\"state\":\"TRUE\",\"timestamp\":1684796100000},{\"state\":\"TRUE\",\"timestamp\":1684796040000},{\"state\":\"TRUE\",\"timestamp\":1684795980000},{\"state\":\"TRUE\",\"timestamp\":1684795920000},{\"state\":\"TRUE\",\"timestamp\":1684795860000},{\"state\":\"TRUE\",\"timestamp\":1684795800000},{\"state\":\"TRUE\",\"timestamp\":1684795740000},{\"state\":\"TRUE\",\"timestamp\":1684795680000},{\"state\":\"TRUE\",\"timestamp\":1684795620000},{\"state\":\"TRUE\",\"timestamp\":1684795560000},{\"state\":\"FALSE\",\"timestamp\":1684795500000},{\"state\":\"FALSE\",\"timestamp\":1684795440000},{\"state\":\"FALSE\",\"timestamp\":1684795380000},{\"state\":\"FALSE\",\"timestamp\":1684795320000},{\"state\":\"FALSE\",\"timestamp\":1684795260000},{\"state\":\"FALSE\",\"timestamp\":1684795200000},{\"state\":\"FALSE\",\"timestamp\":1684795140000},{\"state\":\"FALSE\",\"timestamp\":1684795080000},{\"state\":\"FALSE\",\"timestamp\":1684795020000},{\"state\":\"FALSE\",\"timestamp\":1684794960000},{\"state\":\"FALSE\",\"timestamp\":1684794900000},{\"state\":\"FALSE\",\"timestamp\":1684794840000},{\"state\":\"FALSE\",\"timestamp\":1684794780000},{\"state\":\"FALSE\",\"timestamp\":1684794720000},{\"state\":\"FALSE\",\"timestamp\":1684794660000},{\"state\":\"TRUE\",\"timestamp\":1684794600000},{\"state\":\"TRUE\",\"timestamp\":1684794540000},{\"state\":\"TRUE\",\"timestamp\":1684794480000},{\"state\":\"TRUE\",\"timestamp\":1684794420000},{\"state\":\"TRUE\",\"timestamp\":1684794360000},{\"state\":\"TRUE\",\"timestamp\":1684794300000},{\"state\":\"TRUE\",\"timestamp\":1684794240000},{\"state\":\"TRUE\",\"timestamp\":1684794180000},{\"state\":\"TRUE\",\"timestamp\":1684794120000},{\"state\":\"TRUE\",\"timestamp\":1684794060000},{\"state\":\"FALSE\",\"timestamp\":1684794000000},{\"state\":\"TRUE\",\"timestamp\":1684793940000},{\"state\":\"TRUE\",\"timestamp\":1684793880000},{\"state\":\"TRUE\",\"timestamp\":1684793820000},{\"state\":\"TRUE\",\"timestamp\":1684793760000},{\"state\":\"TRUE\",\"timestamp\":1684793700000},{\"state\":\"TRUE\",\"timestamp\":1684793640000},{\"state\":\"TRUE\",\"timestamp\":1684793580000},{\"state\":\"TRUE\",\"timestamp\":1684793520000},{\"state\":\"TRUE\",\"timestamp\":1684793460000},{\"state\":\"TRUE\",\"timestamp\":1684793400000},{\"state\":\"TRUE\",\"timestamp\":1684793340000},{\"state\":\"TRUE\",\"timestamp\":1684793280000},{\"state\":\"FALSE\",\"timestamp\":1684793220000},{\"state\":\"FALSE\",\"timestamp\":1684793160000},{\"state\":\"FALSE\",\"timestamp\":1684793100000},{\"state\":\"FALSE\",\"timestamp\":1684793040000},{\"state\":\"FALSE\",\"timestamp\":1684792980000},{\"state\":\"TRUE\",\"timestamp\":1684792920000},{\"state\":\"TRUE\",\"timestamp\":1684792860000},{\"state\":\"TRUE\",\"timestamp\":1684792800000},{\"state\":\"TRUE\",\"timestamp\":1684792740000},{\"state\":\"TRUE\",\"timestamp\":1684792680000},{\"state\":\"FALSE\",\"timestamp\":1684792620000},{\"state\":\"TRUE\",\"timestamp\":1684792560000},{\"state\":\"TRUE\",\"timestamp\":1684792500000},{\"state\":\"TRUE\",\"timestamp\":1684792440000},{\"state\":\"FALSE\",\"timestamp\":1684792380000},{\"state\":\"FALSE\",\"timestamp\":1684792320000},{\"state\":\"TRUE\",\"timestamp\":1684792260000},{\"state\":\"TRUE\",\"timestamp\":1684792200000},{\"state\":\"FALSE\",\"timestamp\":1684792140000},{\"state\":\"FALSE\",\"timestamp\":1684792080000},{\"state\":\"FALSE\",\"timestamp\":1684792020000},{\"state\":\"FALSE\",\"timestamp\":1684791960000},{\"state\":\"TRUE\",\"timestamp\":1684791900000},{\"state\":\"FALSE\",\"timestamp\":1684791840000},{\"state\":\"FALSE\",\"timestamp\":1684791780000},{\"state\":\"TRUE\",\"timestamp\":1684791720000},{\"state\":\"TRUE\",\"timestamp\":1684791660000},{\"state\":\"TRUE\",\"timestamp\":1684791600000},{\"state\":\"TRUE\",\"timestamp\":1684791540000},{\"state\":\"TRUE\",\"timestamp\":1684791480000},{\"state\":\"TRUE\",\"timestamp\":1684791420000},{\"state\":\"TRUE\",\"timestamp\":1684791360000},{\"state\":\"TRUE\",\"timestamp\":1684791300000},{\"state\":\"TRUE\",\"timestamp\":1684791240000},{\"state\":\"TRUE\",\"timestamp\":1684791180000},{\"state\":\"TRUE\",\"timestamp\":1684791120000},{\"state\":\"TRUE\",\"timestamp\":1684791060000},{\"state\":\"TRUE\",\"timestamp\":1684791000000},{\"state\":\"TRUE\",\"timestamp\":1684790940000},{\"state\":\"TRUE\",\"timestamp\":1684790880000},{\"state\":\"TRUE\",\"timestamp\":1684790820000},{\"state\":\"TRUE\",\"timestamp\":1684790760000},{\"state\":\"TRUE\",\"timestamp\":1684790700000},{\"state\":\"TRUE\",\"timestamp\":1684790640000},{\"state\":\"TRUE\",\"timestamp\":1684790580000},{\"state\":\"TRUE\",\"timestamp\":1684790520000},{\"state\":\"TRUE\",\"timestamp\":1684790460000},{\"state\":\"FALSE\",\"timestamp\":1684790400000},{\"state\":\"FALSE\",\"timestamp\":1684790340000},{\"state\":\"TRUE\",\"timestamp\":1684790280000},{\"state\":\"TRUE\",\"timestamp\":1684790220000},{\"state\":\"TRUE\",\"timestamp\":1684790160000},{\"state\":\"TRUE\",\"timestamp\":1684790100000},{\"state\":\"TRUE\",\"timestamp\":1684790040000},{\"state\":\"TRUE\",\"timestamp\":1684789980000},{\"state\":\"TRUE\",\"timestamp\":1684789920000},{\"state\":\"TRUE\",\"timestamp\":1684789860000},{\"state\":\"TRUE\",\"timestamp\":1684789800000},{\"state\":\"TRUE\",\"timestamp\":1684789740000},{\"state\":\"TRUE\",\"timestamp\":1684789680000},{\"state\":\"TRUE\",\"timestamp\":1684789620000},{\"state\":\"TRUE\",\"timestamp\":1684789560000},{\"state\":\"TRUE\",\"timestamp\":1684789500000},{\"state\":\"TRUE\",\"timestamp\":1684789440000},{\"state\":\"TRUE\",\"timestamp\":1684789380000},{\"state\":\"TRUE\",\"timestamp\":1684789320000},{\"state\":\"TRUE\",\"timestamp\":1684789260000},{\"state\":\"TRUE\",\"timestamp\":1684789200000},{\"state\":\"TRUE\",\"timestamp\":1684789140000},{\"state\":\"TRUE\",\"timestamp\":1684789080000},{\"state\":\"TRUE\",\"timestamp\":1684789020000},{\"state\":\"TRUE\",\"timestamp\":1684788960000},{\"state\":\"TRUE\",\"timestamp\":1684788900000},{\"state\":\"TRUE\",\"timestamp\":1684788840000},{\"state\":\"TRUE\",\"timestamp\":1684788780000},{\"state\":\"TRUE\",\"timestamp\":1684788720000},{\"state\":\"TRUE\",\"timestamp\":1684788660000},{\"state\":\"TRUE\",\"timestamp\":1684788600000},{\"state\":\"TRUE\",\"timestamp\":1684788540000},{\"state\":\"TRUE\",\"timestamp\":1684788480000},{\"state\":\"TRUE\",\"timestamp\":1684788420000},{\"state\":\"TRUE\",\"timestamp\":1684788360000},{\"state\":\"TRUE\",\"timestamp\":1684788300000},{\"state\":\"TRUE\",\"timestamp\":1684788240000},{\"state\":\"TRUE\",\"timestamp\":1684788180000},{\"state\":\"TRUE\",\"timestamp\":1684788120000},{\"state\":\"TRUE\",\"timestamp\":1684788060000},{\"state\":\"TRUE\",\"timestamp\":1684788000000},{\"state\":\"TRUE\",\"timestamp\":1684787940000},{\"state\":\"TRUE\",\"timestamp\":1684787880000},{\"state\":\"TRUE\",\"timestamp\":1684787820000},{\"state\":\"TRUE\",\"timestamp\":1684787760000},{\"state\":\"TRUE\",\"timestamp\":1684787700000},{\"state\":\"TRUE\",\"timestamp\":1684787640000},{\"state\":\"FALSE\",\"timestamp\":1684787580000},{\"state\":\"FALSE\",\"timestamp\":1684787520000},{\"state\":\"FALSE\",\"timestamp\":1684787460000},{\"state\":\"TRUE\",\"timestamp\":1684787400000},{\"state\":\"TRUE\",\"timestamp\":1684787340000},{\"state\":\"TRUE\",\"timestamp\":1684787280000},{\"state\":\"TRUE\",\"timestamp\":1684787220000},{\"state\":\"TRUE\",\"timestamp\":1684787160000},{\"state\":\"TRUE\",\"timestamp\":1684787100000},{\"state\":\"TRUE\",\"timestamp\":1684787040000},{\"state\":\"FALSE\",\"timestamp\":1684786980000},{\"state\":\"TRUE\",\"timestamp\":1684786920000},{\"state\":\"TRUE\",\"timestamp\":1684786860000},{\"state\":\"TRUE\",\"timestamp\":1684786800000},{\"state\":\"TRUE\",\"timestamp\":1684786740000},{\"state\":\"TRUE\",\"timestamp\":1684786680000},{\"state\":\"TRUE\",\"timestamp\":1684786620000},{\"state\":\"TRUE\",\"timestamp\":1684786560000},{\"state\":\"TRUE\",\"timestamp\":1684786500000},{\"state\":\"TRUE\",\"timestamp\":1684786440000},{\"state\":\"TRUE\",\"timestamp\":1684786380000},{\"state\":\"TRUE\",\"timestamp\":1684786320000},{\"state\":\"TRUE\",\"timestamp\":1684786260000},{\"state\":\"TRUE\",\"timestamp\":1684786200000},{\"state\":\"TRUE\",\"timestamp\":1684786140000},{\"state\":\"TRUE\",\"timestamp\":1684786080000},{\"state\":\"TRUE\",\"timestamp\":1684786020000},{\"state\":\"TRUE\",\"timestamp\":1684785960000},{\"state\":\"TRUE\",\"timestamp\":1684785900000},{\"state\":\"TRUE\",\"timestamp\":1684785840000},{\"state\":\"TRUE\",\"timestamp\":1684785780000},{\"state\":\"TRUE\",\"timestamp\":1684785720000},{\"state\":\"FALSE\",\"timestamp\":1684785660000},{\"state\":\"TRUE\",\"timestamp\":1684785600000},{\"state\":\"TRUE\",\"timestamp\":1684785540000},{\"state\":\"TRUE\",\"timestamp\":1684785480000},{\"state\":\"TRUE\",\"timestamp\":1684785420000},{\"state\":\"TRUE\",\"timestamp\":1684785360000},{\"state\":\"TRUE\",\"timestamp\":1684785300000},{\"state\":\"TRUE\",\"timestamp\":1684785240000},{\"state\":\"TRUE\",\"timestamp\":1684785180000},{\"state\":\"TRUE\",\"timestamp\":1684785120000},{\"state\":\"TRUE\",\"timestamp\":1684785060000},{\"state\":\"TRUE\",\"timestamp\":1684785000000},{\"state\":\"TRUE\",\"timestamp\":1684784940000},{\"state\":\"TRUE\",\"timestamp\":1684784880000},{\"state\":\"TRUE\",\"timestamp\":1684784820000},{\"state\":\"TRUE\",\"timestamp\":1684784760000},{\"state\":\"TRUE\",\"timestamp\":1684784700000},{\"state\":\"TRUE\",\"timestamp\":1684784640000},{\"state\":\"TRUE\",\"timestamp\":1684784580000},{\"state\":\"TRUE\",\"timestamp\":1684784520000},{\"state\":\"TRUE\",\"timestamp\":1684784460000},{\"state\":\"TRUE\",\"timestamp\":1684784400000},{\"state\":\"TRUE\",\"timestamp\":1684784340000},{\"state\":\"TRUE\",\"timestamp\":1684784280000},{\"state\":\"TRUE\",\"timestamp\":1684784220000},{\"state\":\"TRUE\",\"timestamp\":1684784160000},{\"state\":\"TRUE\",\"timestamp\":1684784100000},{\"state\":\"TRUE\",\"timestamp\":1684784040000},{\"state\":\"FALSE\",\"timestamp\":1684783980000},{\"state\":\"FALSE\",\"timestamp\":1684783920000},{\"state\":\"FALSE\",\"timestamp\":1684783860000},{\"state\":\"FALSE\",\"timestamp\":1684783800000},{\"state\":\"FALSE\",\"timestamp\":1684783740000},{\"state\":\"FALSE\",\"timestamp\":1684783680000},{\"state\":\"FALSE\",\"timestamp\":1684783620000},{\"state\":\"FALSE\",\"timestamp\":1684783560000},{\"state\":\"FALSE\",\"timestamp\":1684783500000},{\"state\":\"FALSE\",\"timestamp\":1684783440000},{\"state\":\"FALSE\",\"timestamp\":1684783380000},{\"state\":\"FALSE\",\"timestamp\":1684783320000},{\"state\":\"FALSE\",\"timestamp\":1684783260000},{\"state\":\"FALSE\",\"timestamp\":1684783200000},{\"state\":\"TRUE\",\"timestamp\":1684783140000},{\"state\":\"TRUE\",\"timestamp\":1684783080000},{\"state\":\"TRUE\",\"timestamp\":1684783020000},{\"state\":\"TRUE\",\"timestamp\":1684782960000},{\"state\":\"TRUE\",\"timestamp\":1684782900000},{\"state\":\"TRUE\",\"timestamp\":1684782840000},{\"state\":\"TRUE\",\"timestamp\":1684782780000},{\"state\":\"TRUE\",\"timestamp\":1684782720000},{\"state\":\"TRUE\",\"timestamp\":1684782660000},{\"state\":\"TRUE\",\"timestamp\":1684782600000},{\"state\":\"TRUE\",\"timestamp\":1684782540000},{\"state\":\"TRUE\",\"timestamp\":1684782480000},{\"state\":\"FALSE\",\"timestamp\":1684782420000},{\"state\":\"FALSE\",\"timestamp\":1684782360000},{\"state\":\"FALSE\",\"timestamp\":1684782300000},{\"state\":\"FALSE\",\"timestamp\":1684782240000},{\"state\":\"FALSE\",\"timestamp\":1684782180000},{\"state\":\"TRUE\",\"timestamp\":1684782120000},{\"state\":\"TRUE\",\"timestamp\":1684782060000},{\"state\":\"FALSE\",\"timestamp\":1684782000000},{\"state\":\"TRUE\",\"timestamp\":1684781940000},{\"state\":\"TRUE\",\"timestamp\":1684781880000},{\"state\":\"FALSE\",\"timestamp\":1684781820000},{\"state\":\"FALSE\",\"timestamp\":1684781760000},{\"state\":\"FALSE\",\"timestamp\":1684781700000},{\"state\":\"FALSE\",\"timestamp\":1684781640000},{\"state\":\"FALSE\",\"timestamp\":1684781580000},{\"state\":\"FALSE\",\"timestamp\":1684781520000},{\"state\":\"FALSE\",\"timestamp\":1684781460000},{\"state\":\"FALSE\",\"timestamp\":1684781400000},{\"state\":\"TRUE\",\"timestamp\":1684781340000},{\"state\":\"TRUE\",\"timestamp\":1684781280000},{\"state\":\"TRUE\",\"timestamp\":1684781220000},{\"state\":\"TRUE\",\"timestamp\":1684781160000},{\"state\":\"FALSE\",\"timestamp\":1684781100000},{\"state\":\"FALSE\",\"timestamp\":1684781040000},{\"state\":\"FALSE\",\"timestamp\":1684780980000},{\"state\":\"FALSE\",\"timestamp\":1684780920000},{\"state\":\"FALSE\",\"timestamp\":1684780860000},{\"state\":\"FALSE\",\"timestamp\":1684780800000},{\"state\":\"FALSE\",\"timestamp\":1684780740000},{\"state\":\"TRUE\",\"timestamp\":1684780680000},{\"state\":\"TRUE\",\"timestamp\":1684780620000},{\"state\":\"FALSE\",\"timestamp\":1684780560000},{\"state\":\"FALSE\",\"timestamp\":1684780500000},{\"state\":\"FALSE\",\"timestamp\":1684780440000},{\"state\":\"FALSE\",\"timestamp\":1684780380000},{\"state\":\"FALSE\",\"timestamp\":1684780320000},{\"state\":\"FALSE\",\"timestamp\":1684780260000},{\"state\":\"FALSE\",\"timestamp\":1684780200000},{\"state\":\"FALSE\",\"timestamp\":1684780140000},{\"state\":\"TRUE\",\"timestamp\":1684780080000},{\"state\":\"TRUE\",\"timestamp\":1684780020000},{\"state\":\"TRUE\",\"timestamp\":1684779960000},{\"state\":\"TRUE\",\"timestamp\":1684779900000},{\"state\":\"TRUE\",\"timestamp\":1684779840000},{\"state\":\"FALSE\",\"timestamp\":1684779780000},{\"state\":\"FALSE\",\"timestamp\":1684779720000},{\"state\":\"TRUE\",\"timestamp\":1684779660000},{\"state\":\"TRUE\",\"timestamp\":1684779600000},{\"state\":\"TRUE\",\"timestamp\":1684779540000},{\"state\":\"TRUE\",\"timestamp\":1684779480000},{\"state\":\"TRUE\",\"timestamp\":1684779420000},{\"state\":\"TRUE\",\"timestamp\":1684779360000},{\"state\":\"TRUE\",\"timestamp\":1684779300000},{\"state\":\"TRUE\",\"timestamp\":1684779240000},{\"state\":\"TRUE\",\"timestamp\":1684779180000},{\"state\":\"TRUE\",\"timestamp\":1684779120000},{\"state\":\"TRUE\",\"timestamp\":1684779060000},{\"state\":\"FALSE\",\"timestamp\":1684779000000},{\"state\":\"FALSE\",\"timestamp\":1684778940000},{\"state\":\"TRUE\",\"timestamp\":1684778880000},{\"state\":\"TRUE\",\"timestamp\":1684778820000},{\"state\":\"TRUE\",\"timestamp\":1684778760000},{\"state\":\"TRUE\",\"timestamp\":1684778700000},{\"state\":\"TRUE\",\"timestamp\":1684778640000},{\"state\":\"TRUE\",\"timestamp\":1684778580000},{\"state\":\"TRUE\",\"timestamp\":1684778520000},{\"state\":\"TRUE\",\"timestamp\":1684778460000},{\"state\":\"TRUE\",\"timestamp\":1684778400000},{\"state\":\"TRUE\",\"timestamp\":1684778340000},{\"state\":\"TRUE\",\"timestamp\":1684778280000},{\"state\":\"TRUE\",\"timestamp\":1684778220000},{\"state\":\"FALSE\",\"timestamp\":1684778160000},{\"state\":\"TRUE\",\"timestamp\":1684778100000},{\"state\":\"TRUE\",\"timestamp\":1684778040000},{\"state\":\"TRUE\",\"timestamp\":1684777980000},{\"state\":\"TRUE\",\"timestamp\":1684777920000},{\"state\":\"TRUE\",\"timestamp\":1684777860000},{\"state\":\"TRUE\",\"timestamp\":1684777800000},{\"state\":\"TRUE\",\"timestamp\":1684777740000},{\"state\":\"TRUE\",\"timestamp\":1684777680000},{\"state\":\"TRUE\",\"timestamp\":1684777620000},{\"state\":\"TRUE\",\"timestamp\":1684777560000},{\"state\":\"TRUE\",\"timestamp\":1684777500000},{\"state\":\"TRUE\",\"timestamp\":1684777440000},{\"state\":\"TRUE\",\"timestamp\":1684777380000},{\"state\":\"FALSE\",\"timestamp\":1684777320000},{\"state\":\"TRUE\",\"timestamp\":1684777260000},{\"state\":\"TRUE\",\"timestamp\":1684777200000},{\"state\":\"TRUE\",\"timestamp\":1684777140000},{\"state\":\"TRUE\",\"timestamp\":1684777080000},{\"state\":\"TRUE\",\"timestamp\":1684777020000},{\"state\":\"TRUE\",\"timestamp\":1684776960000},{\"state\":\"TRUE\",\"timestamp\":1684776900000},{\"state\":\"TRUE\",\"timestamp\":1684776840000},{\"state\":\"TRUE\",\"timestamp\":1684776780000},{\"state\":\"TRUE\",\"timestamp\":1684776720000},{\"state\":\"TRUE\",\"timestamp\":1684776660000},{\"state\":\"TRUE\",\"timestamp\":1684776600000},{\"state\":\"FALSE\",\"timestamp\":1684776540000},{\"state\":\"TRUE\",\"timestamp\":1684776480000},{\"state\":\"TRUE\",\"timestamp\":1684776420000},{\"state\":\"TRUE\",\"timestamp\":1684776360000},{\"state\":\"TRUE\",\"timestamp\":1684776301000},{\"state\":\"TRUE\",\"timestamp\":1684776240000},{\"state\":\"TRUE\",\"timestamp\":1684776180000},{\"state\":\"TRUE\",\"timestamp\":1684776120000},{\"state\":\"TRUE\",\"timestamp\":1684776060000},{\"state\":\"TRUE\",\"timestamp\":1684776001000},{\"state\":\"TRUE\",\"timestamp\":1684775940000},{\"state\":\"TRUE\",\"timestamp\":1684775880000},{\"state\":\"TRUE\",\"timestamp\":1684775820000},{\"state\":\"TRUE\",\"timestamp\":1684775760000},{\"state\":\"TRUE\",\"timestamp\":1684775700000},{\"state\":\"TRUE\",\"timestamp\":1684775640000},{\"state\":\"TRUE\",\"timestamp\":1684775580000},{\"state\":\"TRUE\",\"timestamp\":1684775520000},{\"state\":\"TRUE\",\"timestamp\":1684775460000},{\"state\":\"FALSE\",\"timestamp\":1684775400000},{\"state\":\"TRUE\",\"timestamp\":1684775340000},{\"state\":\"TRUE\",\"timestamp\":1684775280000},{\"state\":\"TRUE\",\"timestamp\":1684775220000},{\"state\":\"TRUE\",\"timestamp\":1684775160000},{\"state\":\"TRUE\",\"timestamp\":1684775100000},{\"state\":\"TRUE\",\"timestamp\":1684775040000},{\"state\":\"TRUE\",\"timestamp\":1684774980000},{\"state\":\"TRUE\",\"timestamp\":1684774920000},{\"state\":\"TRUE\",\"timestamp\":1684774860000},{\"state\":\"TRUE\",\"timestamp\":1684774800000},{\"state\":\"TRUE\",\"timestamp\":1684774740000},{\"state\":\"TRUE\",\"timestamp\":1684774680000},{\"state\":\"TRUE\",\"timestamp\":1684774620000},{\"state\":\"TRUE\",\"timestamp\":1684774560000},{\"state\":\"TRUE\",\"timestamp\":1684774500000},{\"state\":\"TRUE\",\"timestamp\":1684774440000},{\"state\":\"TRUE\",\"timestamp\":1684774380000},{\"state\":\"TRUE\",\"timestamp\":1684774320000},{\"state\":\"TRUE\",\"timestamp\":1684774260000},{\"state\":\"TRUE\",\"timestamp\":1684774200000},{\"state\":\"TRUE\",\"timestamp\":1684774140000},{\"state\":\"TRUE\",\"timestamp\":1684774080000},{\"state\":\"FALSE\",\"timestamp\":1684774020000},{\"state\":\"FALSE\",\"timestamp\":1684773960000},{\"state\":\"TRUE\",\"timestamp\":1684773900000},{\"state\":\"TRUE\",\"timestamp\":1684773840000},{\"state\":\"TRUE\",\"timestamp\":1684773780000},{\"state\":\"TRUE\",\"timestamp\":1684773720000},{\"state\":\"TRUE\",\"timestamp\":1684773660000},{\"state\":\"TRUE\",\"timestamp\":1684773600000},{\"state\":\"TRUE\",\"timestamp\":1684773540000},{\"state\":\"TRUE\",\"timestamp\":1684773480000},{\"state\":\"TRUE\",\"timestamp\":1684773420000},{\"state\":\"TRUE\",\"timestamp\":1684773360000},{\"state\":\"TRUE\",\"timestamp\":1684773300000},{\"state\":\"TRUE\",\"timestamp\":1684773240000},{\"state\":\"FALSE\",\"timestamp\":1684773180000},{\"state\":\"FALSE\",\"timestamp\":1684773120000},{\"state\":\"FALSE\",\"timestamp\":1684773060000},{\"state\":\"FALSE\",\"timestamp\":1684773000000},{\"state\":\"FALSE\",\"timestamp\":1684772940000},{\"state\":\"TRUE\",\"timestamp\":1684772880000},{\"state\":\"TRUE\",\"timestamp\":1684772820000},{\"state\":\"TRUE\",\"timestamp\":1684772760000},{\"state\":\"TRUE\",\"timestamp\":1684772700000},{\"state\":\"TRUE\",\"timestamp\":1684772640000},{\"state\":\"TRUE\",\"timestamp\":1684772580000},{\"state\":\"TRUE\",\"timestamp\":1684772520000},{\"state\":\"TRUE\",\"timestamp\":1684772460000},{\"state\":\"TRUE\",\"timestamp\":1684772400000},{\"state\":\"TRUE\",\"timestamp\":1684772340000},{\"state\":\"FALSE\",\"timestamp\":1684772280000},{\"state\":\"TRUE\",\"timestamp\":1684772220000},{\"state\":\"TRUE\",\"timestamp\":1684772160000},{\"state\":\"TRUE\",\"timestamp\":1684772100000},{\"state\":\"TRUE\",\"timestamp\":1684772040000},{\"state\":\"TRUE\",\"timestamp\":1684771980000},{\"state\":\"TRUE\",\"timestamp\":1684771920000},{\"state\":\"TRUE\",\"timestamp\":1684771860000},{\"state\":\"TRUE\",\"timestamp\":1684771800000},{\"state\":\"TRUE\",\"timestamp\":1684771740000},{\"state\":\"TRUE\",\"timestamp\":1684771680000},{\"state\":\"TRUE\",\"timestamp\":1684771620000},{\"state\":\"TRUE\",\"timestamp\":1684771560000},{\"state\":\"FALSE\",\"timestamp\":1684771500000},{\"state\":\"TRUE\",\"timestamp\":1684771440000},{\"state\":\"TRUE\",\"timestamp\":1684771380000},{\"state\":\"TRUE\",\"timestamp\":1684771320000},{\"state\":\"TRUE\",\"timestamp\":1684771260000},{\"state\":\"TRUE\",\"timestamp\":1684771200000},{\"state\":\"TRUE\",\"timestamp\":1684771140000},{\"state\":\"TRUE\",\"timestamp\":1684771080000},{\"state\":\"TRUE\",\"timestamp\":1684771020000},{\"state\":\"FALSE\",\"timestamp\":1684770960000},{\"state\":\"FALSE\",\"timestamp\":1684770900000},{\"state\":\"FALSE\",\"timestamp\":1684770840000},{\"state\":\"FALSE\",\"timestamp\":1684770780000},{\"state\":\"FALSE\",\"timestamp\":1684770720000},{\"state\":\"FALSE\",\"timestamp\":1684770660000},{\"state\":\"FALSE\",\"timestamp\":1684770600000},{\"state\":\"TRUE\",\"timestamp\":1684770540000},{\"state\":\"TRUE\",\"timestamp\":1684770480000},{\"state\":\"TRUE\",\"timestamp\":1684770420000},{\"state\":\"TRUE\",\"timestamp\":1684770360000},{\"state\":\"TRUE\",\"timestamp\":1684770300000},{\"state\":\"TRUE\",\"timestamp\":1684770240000},{\"state\":\"TRUE\",\"timestamp\":1684770180000},{\"state\":\"TRUE\",\"timestamp\":1684770120000},{\"state\":\"TRUE\",\"timestamp\":1684770060000},{\"state\":\"TRUE\",\"timestamp\":1684770000000},{\"state\":\"TRUE\",\"timestamp\":1684769940000},{\"state\":\"TRUE\",\"timestamp\":1684769880000},{\"state\":\"TRUE\",\"timestamp\":1684769820000},{\"state\":\"TRUE\",\"timestamp\":1684769760000},{\"state\":\"TRUE\",\"timestamp\":1684769700000},{\"state\":\"TRUE\",\"timestamp\":1684769640000},{\"state\":\"FALSE\",\"timestamp\":1684769580000},{\"state\":\"FALSE\",\"timestamp\":1684769520000},{\"state\":\"TRUE\",\"timestamp\":1684769460000},{\"state\":\"TRUE\",\"timestamp\":1684769400000},{\"state\":\"TRUE\",\"timestamp\":1684769340000},{\"state\":\"TRUE\",\"timestamp\":1684769280000},{\"state\":\"TRUE\",\"timestamp\":1684769220000}]","payloadType":"json","x":380,"y":330,"wires":[["411ebe8bcc7af36a"]]},{"id":"5a8c082857e0a8e5","type":"ui_statetrail","z":"242715e96c9f251a","group":"325714454937adc5","order":2,"width":"25","height":"2","name":"","label":"","states":[{"state":"TRUE","col":"#009933","t":"str","label":""},{"state":"FALSE","col":"#f80d0d","t":"str","label":""}],"periodLimit":"168","periodLimitUnit":"3600","timeformat":"HH:mm","tickmarks":"25","persist":false,"legend":1,"combine":true,"blanklabel":"","x":780,"y":330,"wires":[[]]},{"id":"325714454937adc5","type":"ui_group","name":"DEMO","tab":"fb48ae21810a7ddc","order":2,"disp":false,"width":"25","collapse":false,"className":""},{"id":"fb48ae21810a7ddc","type":"ui_tab","name":"TEST","icon":"dashboard","order":4,"disabled":false,"hidden":false}]
As I mentioned, the data comes in the modbus protocol boolean type true/false. My question is how to organize the data into an array with timestamp, is there a dedicated node or I need create a JS script or something?(my JS skills is poor)
In your example, with static data, it's easy, thanks
Is it live data? I see logged times, the data coming in every second...
Then you don't need anything else but send it directly to the state-trail node. Just make sure it is configured to receive boolean type of values. No need for timestamps when displaying live data.
my god, working!, everything is even simpler than I thought, thank you
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.