# Trouble with Layout and other stuff

**URL:** <https://discourse.nodered.org/t/trouble-with-layout-and-other-stuff/11986>\
**Category:** General\
**Created:** [8 June 2019 20:25 UTC](https://discourse.nodered.org/t/trouble-with-layout-and-other-stuff/11986 "2019-06-08T20:25:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeInNC](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@MikeInNC](https://discourse.nodered.org/u/MikeInNC)\
**Post date:** [8 June 2019 20:25 UTC](https://discourse.nodered.org/t/trouble-with-layout-and-other-stuff/11986/1 "2019-06-08T20:25:25Z")

</div>

Hi all,

I'm having trouble getting all my flows rto show up in the layout. I have two flows but I can't get both to show up in the Layout.  
Been looking at a tutorial that says to select the proper group on each object but I can't see how to do that.  
Also, I am trying to set a switch to toggle but can't get that to work either.

I am controlling a Raspberry Pi Zero W. I am able to turn on and off an LED with two switches but cannot get the CPU temperature (using a parsing function and a gauge) .

Thanks in advance for your help  
Mike

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 June 2019 20:48 UTC](https://discourse.nodered.org/t/trouble-with-layout-and-other-stuff/11986/2 "2019-06-08T20:48:25Z")

</div>

I'm afraid you're not gonna get a lot of help unless you post screen shots and your flow (export it and paste between three ticks ```` code here ````)

There is barely anything to go on with what you have posted.

Some tips...

- Add debug nodes after every node and verify what you expect is correct.
- Be more specific
  - nclude the OS, node version, npm version, node-red version,
  - what nodes you're using,
  - what hardware you're using and communicating to
  - What you have tried and where you're stuck

- Check out examples and the cookbook (links at the top of this forum or search cookbook)
- Search this forum - there are many examples and tips

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [8 June 2019 21:47 UTC](https://discourse.nodered.org/t/trouble-with-layout-and-other-stuff/11986/3 "2019-06-08T21:47:19Z")

</div>

> [@MikeInNC](#):
>
> but cannot get the CPU temperature (using a parsing function and a gauge) .

Hi Mike.

I too (as do many people) have a RPI.  
For me, getting the temperature is a command.

I put an `exec` node in the flow and enter this command in it to be run.  
`/opt/vc/bin/vcgencmd measure_temp| sed 's/[^0-9]*//g'`

The `exec` node has 3 outputs. I take the output of the first (top) output and put it through a `function` node with this in it:

```auto
msg.payload = Number(msg.payload)/10;
msg.topic=global.get('myDeviceName');
msg.topic ="TEMP/" + msg.topic;
return msg;

```

Then the message is on-sent to other nodes.

If the node wants the temperature, it just reads the `msg.payload`.

The `msg.payload` can then be sent into a `gauge` or `chart` node quite easily.

Hope that helps.
