# Non standard NMEA string to Influx

**URL:** <https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393>\
**Category:** General\
**Created:** [6 September 2022 13:09 UTC](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393 "2022-09-06T13:09:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![questrov](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questrov/32/67312_2.png) [@questrov](https://discourse.nodered.org/u/questrov)\
**Post date:** [6 September 2022 13:09 UTC](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393/1 "2022-09-06T13:09:54Z")

</div>

Can drop a standard NMEA string into NMEA node and Influx node takes it no problem.

NMEA input

```auto
$HEHDT,248.03,T*12

```

Output from NMEA node to Influx node

```auto
{"sentence":"HDT","type":"heading-info","heading":248.11,"talker_id":"HE"}

```

Can't quite get the function correct (to influx node) for non standard string

```auto
$TWIND,4.3,101.83,4.3,213.5,0,61.9,248.33,

```

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [6 September 2022 14:42 UTC](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393/2 "2022-09-06T14:42:54Z")

</div>

Welcome to the forum!

The non standard string should be easy to handle with a split / join node. What are the individual parameters?I'm guessing the last one is the heading?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 September 2022 15:00 UTC](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393/3 "2022-09-06T15:00:58Z")

</div>

The csv node can be used to convert a csv string to an object, which I think is what you are trying to do. For example

```auto
[{"id":"de1d683f618c27f8","type":"inject","z":"a09f61f0c8158af3","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"$TWIND,4.3,101.83,4.3,213.5,0,61.9,248.33,","payloadType":"str","x":150,"y":160,"wires":[["7d8069ae2e8b4afd"]]},{"id":"7d8069ae2e8b4afd","type":"csv","z":"a09f61f0c8158af3","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"a,b,c,d,e","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":310,"y":160,"wires":[["2536feb2e6fd10dc"]]},{"id":"2536feb2e6fd10dc","type":"debug","z":"a09f61f0c8158af3","name":"debug 60","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":460,"y":160,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![questrov](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questrov/32/67312_2.png) [@questrov](https://discourse.nodered.org/u/questrov)\
**Post date:** [6 September 2022 17:42 UTC](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393/4 "2022-09-06T17:42:10Z")

</div>

Worked great thanks so much for the help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 September 2022 17:42 UTC](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393/5 "2022-09-20T17:42:16Z")

</div>

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