# Rflink data converting

**URL:** https://discourse.nodered.org/t/rflink-data-converting/74900
**Category:** General
**Created:** [8 February 2023 16:36 UTC](https://discourse.nodered.org/t/rflink-data-converting/74900 "2023-02-08T16:36:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)
#### Post date: [8 February 2023 16:36 UTC](https://discourse.nodered.org/t/rflink-data-converting/74900/1 "2023-02-08T16:36:50Z")

</div>

rflink gives data from weatherstation (as bought is some stores)  
e.g  
alecto /ws1700/ cresta/ oregon/ auriol and many others

data:  
20;20;Oregon Temp;ID=9610;TEMP=00de;BAT=OK;  
20;21;Cresta;ID=3401;TEMP=00dd;BAT=OK;  
20;22;Alecto V4;ID=5cf8;TEMP=00e9;HUM=32;  
and so on

Who gives advise  
1 how to converse in numbers decimal  
2 how to split in sections e.g. ID=65; TEMP=23; HUM=63; BAT= 0 OR 1  
from input  
Auriol V3;ID=1A01;TEMP=00d2;HUM=63;BAT=OK  
Dick  
[flow-question.txt](https://discourse.nodered.org/uploads/short-url/gc7ThO5WdR90Ez7fxWTPAH7RXmo.txt) (5.0 KB)

---

<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: [9 February 2023 16:51 UTC](https://discourse.nodered.org/t/rflink-data-converting/74900/2 "2023-02-09T16:51:56Z")

</div>

> [@dick](#):
>
> e.g. ID=65; TEMP=23; HUM=63; BAT= 0 OR 1  
> from input  
> Auriol V3;ID=1A01;TEMP=00d2;HUM=63;BAT=OK

I don't understand how 1A01 maps to 65, or 00d2 maps to 23

---

<div class="post-metadata">

### Author: ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)
#### Post date: [9 February 2023 18:20 UTC](https://discourse.nodered.org/t/rflink-data-converting/74900/3 "2023-02-09T18:20:55Z")

</div>

Colin both are different examples

Only the sentece Auriol ask

how can i translate those data to decimal.

Gr

Dick

Verzonden vanuit [Mail](https://go.microsoft.com/fwlink/?LinkId=550986) voor Windows

 ![1ABF694D168544A384242BFC04AE4C37.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2e839751fd263c2803de1577258c08f5c6235600.png)

---

<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: [9 February 2023 20:36 UTC](https://discourse.nodered.org/t/rflink-data-converting/74900/4 "2023-02-09T20:36:13Z")

</div>

Once you have split out the hex part (1A01 for example) you can use parseInt to convert it. So if, for example, you have "1A01" in the variable `value` then you can do  
`var decimalValue = parseInt(value, 16)`  
The 16 tells it that it is base16.

---

<div class="post-metadata">

### Author: ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)
#### Post date: [10 February 2023 07:47 UTC](https://discourse.nodered.org/t/rflink-data-converting/74900/5 "2023-02-10T07:47:43Z")

</div>

Ok Colin  
thanks for the help.

my problem is solved  
have found another solution on internet.  
with explanation to

[https://flows.nodered.org/flow/ce816c56bfb8cbac2861206a40d8196a](https://flows.nodered.org/flow/ce816c56bfb8cbac2861206a40d8196a)

thanks to all of the members who helps all the times  
I close the question  
Dick
