Issue for upload to influxdb

Hi,

i was trying to send the output counter to influxdb, but i few ways still not successful yet. help me thanks

[{"id":"afd749500f2d393d","type":"tab","label":"ControlTimer Example","disabled":false,"info":""},{"id":"79276f6f06e96f24","type":"inject","z":"afd749500f2d393d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"START","payloadType":"str","x":430,"y":180,"wires":[["3d7c118af7cc6fe6"]]},{"id":"1ae1e3ee2f5250a6","type":"debug","z":"afd749500f2d393d","name":"TIMER TRIGGERED","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1000,"y":280,"wires":[]},{"id":"9711419041494ee9","type":"inject","z":"afd749500f2d393d","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"STOP","payloadType":"str","x":430,"y":220,"wires":[["44e6d3eefa84eb4d"]]},{"id":"2db5a47c85a55778","type":"inject","z":"afd749500f2d393d","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"RESET","payloadType":"str","x":430,"y":260,"wires":[["44e6d3eefa84eb4d"]]},{"id":"52882ab466bde0a2","type":"inject","z":"afd749500f2d393d","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"PAUSE","payloadType":"str","x":430,"y":300,"wires":[["44e6d3eefa84eb4d"]]},{"id":"5acb4a13897dfe33","type":"inject","z":"afd749500f2d393d","name":"CONTINUE","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"CONTINUE","payloadType":"str","x":450,"y":340,"wires":[["44e6d3eefa84eb4d"]]},{"id":"5c9aea117d0cb988","type":"debug","z":"afd749500f2d393d","name":"TIMER HALTED","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":980,"y":320,"wires":[]},{"id":"bbd756d4850041fa","type":"inject","z":"afd749500f2d393d","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"UNKNOWN1","payloadType":"str","x":450,"y":380,"wires":[["44e6d3eefa84eb4d"]]},{"id":"76203a31872dca18","type":"inject","z":"afd749500f2d393d","name":"UNKNOWN2","props":[{"p":"unknown","v":"UNKNOWN2","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":450,"y":420,"wires":[["44e6d3eefa84eb4d"]]},{"id":"01f89a1a0cfa1eb2","type":"inject","z":"afd749500f2d393d","name":"START (3000ms delay)","props":[{"p":"payload"},{"p":"timerType","v":"delay","vt":"str"},{"p":"timerDuration","v":"3000","vt":"num"},{"p":"timerDurationUnit","v":"millisecond","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"START","payloadType":"str","x":480,"y":460,"wires":[["44e6d3eefa84eb4d"]]},{"id":"c96f33f73a45a2a0","type":"inject","z":"afd749500f2d393d","name":"START (3000ms loop)","props":[{"p":"payload"},{"p":"timerType","v":"loop","vt":"str"},{"p":"timerDuration","v":"3000","vt":"num"},{"p":"timerDurationUnit","v":"millisecond","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"START","payloadType":"str","x":480,"y":500,"wires":[["44e6d3eefa84eb4d"]]},{"id":"44e6d3eefa84eb4d","type":"controltimer","z":"afd749500f2d393d","name":"","timerType":"delay","timerDurationUnit":"second","timerDurationType":"num","timerDuration":5,"timerLoopTimeoutUnit":"second","timerLoopTimeoutType":"num","timerLoopTimeout":0,"loopTimeoutMessageType":"str","loopTimeoutMessage":"LOOP_TIMEOUT","timerMaxLoopIterationsType":"num","timerMaxLoopIterations":0,"loopMaxIterationsMessageType":"str","loopMaxIterationsMessage":"MAX_LOOP_ITERATIONS","isConsecutiveStartActionTimerResetAllowed":false,"isRunningTimerProgressVisible":true,"outputReceivedMessageOnTimerTrigger":true,"outputReceivedMessageOnTimerHalt":false,"startTimerOnReceivalOfUnknownMessage":false,"resetTimerOnReceivalOfUnknownMessage":false,"isDebugModeEnabled":false,"timerTriggeredMessageType":"str","timerTriggeredMessage":"TIMER_TRIGGERED","timerHaltedMessageType":"str","timerHaltedMessage":"TIMER_HALTED","isStartActionEnabled":true,"isStopActionEnabled":true,"isResetActionEnabled":true,"isPauseActionEnabled":true,"isContinueActionEnabled":true,"actionPropertyNameType":"str","actionPropertyName":"payload","startActionNameType":"str","startActionName":"START","stopActionNameType":"str","stopActionName":"STOP","resetActionNameType":"str","resetActionName":"RESET","pauseActionNameType":"str","pauseActionName":"PAUSE","continueActionNameType":"str","continueActionName":"CONTINUE","x":760,"y":360,"wires":[["1ae1e3ee2f5250a6","56914520387b800e"],["5c9aea117d0cb988"]]},{"id":"3d7c118af7cc6fe6","type":"counter","z":"afd749500f2d393d","name":"","init":"0","step":"1","lower":null,"upper":null,"mode":"increment","outputs":1,"x":640,"y":180,"wires":[["44e6d3eefa84eb4d"]]},{"id":"bbb26f75dbc2bc65","type":"change","z":"afd749500f2d393d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"[\t   {\t       \"measurement\": msg.topic,\t       \"fields\":msg.$.payload\t  }\t]         ","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":120,"wires":[["bb3db460f53b807b","0e5ffb9e42fdd23b"]]},{"id":"f031950cf90c4c1d","type":"change","z":"afd749500f2d393d","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"1counter","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":120,"wires":[["bbb26f75dbc2bc65"]]},{"id":"56914520387b800e","type":"switch","z":"afd749500f2d393d","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Counter","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":830,"y":120,"wires":[["f031950cf90c4c1d"]]},{"id":"bb3db460f53b807b","type":"debug","z":"afd749500f2d393d","name":"debug 27","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1260,"y":60,"wires":[]},{"id":"0e5ffb9e42fdd23b","type":"influxdb out","z":"afd749500f2d393d","influxdb":"674fb45688a62b64","name":"","measurement":"counter","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"edd0c042c68f2516","bucket":"a7d011720e62e846","x":1320,"y":260,"wires":[]},{"id":"674fb45688a62b64","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"","usetls":false,"tls":"","influxdbVersion":"2.0","url":"http://localhost:8086","rejectUnauthorized":true}]

If it is the count value that you are writing then that needs to be in msg.payload, not msg.count.
Check the help text for the influx out node for different ways of formatting msg.paylosd.

ok thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.