# Vcgencmd TypeError: Cannot read property 'toFixed(1)

**URL:** <https://discourse.nodered.org/t/vcgencmd-typeerror-cannot-read-property-tofixed-1/11843>\
**Category:** General\
**Created:** [4 June 2019 13:21 UTC](https://discourse.nodered.org/t/vcgencmd-typeerror-cannot-read-property-tofixed-1/11843 "2019-06-04T13:21:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![papyOsullivan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/papyosullivan/32/1602_2.png) [@papyOsullivan](https://discourse.nodered.org/u/papyOsullivan)\
**Post date:** [4 June 2019 13:21 UTC](https://discourse.nodered.org/t/vcgencmd-typeerror-cannot-read-property-tofixed-1/11843/1 "2019-06-04T13:21:19Z")

</div>

Hello  
When I run

root@Natacha:~# sudo vcgencmd measure\_temp  
temp=53.5'C  
ok  
When I run

```auto
[{"id":"c99cf11.468181","type":"exec","z":"36cdc84c.72bd68","command":"sudo vcgencmd measure_temp ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":500,"y":135.5,"wires":[["e157aa66.6b5358"],[],[]]}]

```

I have an error  
msg.payload : string[0]  
""

Why  
Thanks

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [4 June 2019 13:39 UTC](https://discourse.nodered.org/t/vcgencmd-typeerror-cannot-read-property-tofixed-1/11843/2 "2019-06-04T13:39:34Z")

</div>

Did you try to set the debug node to `complete msg object` ?

---

<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:** [4 June 2019 13:43 UTC](https://discourse.nodered.org/t/vcgencmd-typeerror-cannot-read-property-tofixed-1/11843/3 "2019-06-04T13:43:22Z")

</div>

You also have the "append msg.payload" ticked.

You appear to be logged in as root ( at least in your terminal) any particular reason?

Assuming you are running on a pi there is also no need to use sudo.

```auto
[{"id":"320a0c1b.c3ddcc","type":"inject","z":"ca2c4e94.cde3f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":104.5,"y":119,"wires":[["8c1a5eb0.59c25"]]},{"id":"8c1a5eb0.59c25","type":"exec","z":"ca2c4e94.cde3f","command":"vcgencmd measure_temp ","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":329,"y":225,"wires":[["3b0b4065.2c944"],["c0315ee2.23676"],["1057146a.30a23c"]]},{"id":"3b0b4065.2c944","type":"debug","z":"ca2c4e94.cde3f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":586.5,"y":176,"wires":[]},{"id":"c0315ee2.23676","type":"debug","z":"ca2c4e94.cde3f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":600,"y":235,"wires":[]},{"id":"1057146a.30a23c","type":"debug","z":"ca2c4e94.cde3f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":598,"y":281,"wires":[]}]

```
