# How to display value from access token (Wattage meter)

**URL:** <https://discourse.nodered.org/t/how-to-display-value-from-access-token-wattage-meter/6506>\
**Category:** General\
**Created:** [7 January 2019 12:34 UTC](https://discourse.nodered.org/t/how-to-display-value-from-access-token-wattage-meter/6506 "2019-01-07T12:34:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ole88](https://avatars.discourse-cdn.com/v4/letter/o/977dab/32.png) [@ole88](https://discourse.nodered.org/u/ole88)\
**Post date:** [7 January 2019 12:34 UTC](https://discourse.nodered.org/t/how-to-display-value-from-access-token-wattage-meter/6506/1 "2019-01-07T12:34:10Z")

</div>

Hi all.

I would like to display the instant use of power into a gauge. I have a power meter that uses API, and I have the access token I want to use is:  
[https://my.eliq.io/api/datanow?accesstoken=ab307b7798254bea8e0c3c11a7f6e8f4&channelid=14336](https://my.eliq.io/api/datanow?accesstoken=ab307b7798254bea8e0c3c11a7f6e8f4&channelid=14336)

{"channelid":14336,"createddate":"2019-01-07T13:27:56","power":1110.0}

How can I set node-red to use the value of "power" in a gauge?  
I've tried with using "http-response", "function" and "gauge", but I'm not sure how to program it. I guess its a simple thing for those who am more experienced than me.

Thanks for all your help in advance.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [7 January 2019 12:48 UTC](https://discourse.nodered.org/t/how-to-display-value-from-access-token-wattage-meter/6506/2 "2019-01-07T12:48:19Z")

</div>

`http response` is for if you want Node-RED to act as a webserver.

Take a look at `http request` that will return a string. but if you run it through the `json` node you will then be able to manipulate the data.

The debug node if your friend especially after reading this page [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

With this information and reading the info panels of the dashboard you should be able to get where you want...

---

<div class="post-metadata">

**Author:** ![ole88](https://avatars.discourse-cdn.com/v4/letter/o/977dab/32.png) [@ole88](https://discourse.nodered.org/u/ole88)\
**Post date:** [7 January 2019 12:57 UTC](https://discourse.nodered.org/t/how-to-display-value-from-access-token-wattage-meter/6506/3 "2019-01-07T12:57:49Z")

</div>

Thanks! I'll look into it.

---

<div class="post-metadata">

**Author:** ![ole88](https://avatars.discourse-cdn.com/v4/letter/o/977dab/32.png) [@ole88](https://discourse.nodered.org/u/ole88)\
**Post date:** [7 January 2019 13:42 UTC](https://discourse.nodered.org/t/how-to-display-value-from-access-token-wattage-meter/6506/4 "2019-01-07T13:42:58Z")

</div>

I created a http request with GET and the weblink I had. Then json with msg.payload, and then for a test I used a text function with the value {{msg.payload.power}}. It worked.

Thanks for your help ukmoose.
