# Create aerospace attitude indicator in dashboard?

**URL:** <https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957>\
**Category:** Dashboard\
**Created:** [14 February 2021 05:10 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957 "2021-02-14T05:10:40Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 18:38 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/21 "2021-02-14T18:38:06Z")

</div>

@gerry: it should be the CSS, js, and img folders from the Github submission. Just those folders will do.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 18:39 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/22 "2021-02-14T18:39:14Z")

</div>

I have those on my pi, in the node-red/static/flight/img css js folders

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 18:39 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/23 "2021-02-14T18:39:25Z")

</div>

> [@gerry](#):
>
> I'm obviously missing something as my dashboard is blank

Open developer tools and you will see console errors. show to us so we can tell what is wrong

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 18:39 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/24 "2021-02-14T18:39:26Z")

</div>

You'll have to configure your static folder in your .node-red/settings.js file first, if you haven't done so yet.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 18:40 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/25 "2021-02-14T18:40:20Z")

</div>

didn't configure, not sure what that means  
I just created the static folder in explorer

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 18:47 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/26 "2021-02-14T18:47:54Z")

</div>

![flight](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/f/bf2cfb63bdaf90e03e39816811c201237c3e7624.jpeg)

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 18:55 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/27 "2021-02-14T18:55:57Z")

</div>

You'll need to specify the path to your static folder in your .node-red/settings.js file.

If you open the file and search for "httpStatic" you should find a comment like this:

> // When httpAdminRoot is used to move the UI to a different root path, the  
> // following property can be used to identify a directory of static content  
> // that should be served at [http://localhost:1880/](http://localhost:1880/).

Just below that should be the path to your static folder, e.g.:

> httpStatic: 'C:/Users/jdoe/.node-red/static'

That path depends on where you put your own static folder.

This seems to be one of the first things people do when starting with node-red, so I'm probably stating the obvious to you, but just in case... because this needs to be done or the flight gauges won't work...

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 18:57 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/28 "2021-02-14T18:57:21Z")

</div>

never had a static folder before so didn't do that, I'm on it now,

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 18:58 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/29 "2021-02-14T18:58:11Z")

</div>

I didn't have one until yesterday so you're like a full day behind me 😉

It seems you could put the static folder anywhere, but the recommendation I've seen is to put the static folder under .node-red. I think it's for security reasons---because the folder would be open to others, maybe?

What I know is swiss cheese, but putting it under .node-red seems to be the thing to do.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:03 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/30 "2021-02-14T19:03:36Z")

</div>

well, did the settings.js thing and dashboard is still blank

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 February 2021 19:03 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/31 "2021-02-14T19:03:46Z")

</div>

You can put it anywhere. Putting it under .node-red just keeps it all together if you want to move or backup everything Node-RED related

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 19:04 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/32 "2021-02-14T19:04:34Z")

</div>

After changing the settings you'll need to restart node-red

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:04 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/33 "2021-02-14T19:04:43Z")

</div>

the error message did change now it's

Source map error: Error: request failed with status 401  
Resource URL: [http://192.168.1.74:1880/ui/js/app.min.js](http://192.168.1.74:1880/ui/js/app.min.js)  
Source Map URL: angular-chart.min.js.map

did a full reboot of the pi, just because that's how I roll

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 19:06 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/34 "2021-02-14T19:06:56Z")

</div>

@hotNipi: Any reason the flight data is refreshed at such a low rate? Will I run into issues if stream data, e.g., at 60 Hz from a TCP connection? I know the faster the rate, the more computation has to be done, which could exceed what your computer can handle... Just wondering if this is why the low refresh rate?

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 19:08 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/35 "2021-02-14T19:08:05Z")

</div>

Oh man, I wish I could help but this is just the blind leading the blind... I'll have to let someone who actually knows node-red intervene... Sorry 😃

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 19:08 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/36 "2021-02-14T19:08:14Z")

</div>

That's a playground, do what ever you like with it.

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 19:09 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/37 "2021-02-14T19:09:01Z")

</div>

Great! 60 Hz it is 😃

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 February 2021 19:11 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/38 "2021-02-14T19:11:05Z")

</div>

Source map errors are not important. Can you show the network tab, to see if there is actually all files loaded

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/99ca56429498097f6c3228dfa1edd9660235066c.png)

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [14 February 2021 19:13 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/39 "2021-02-14T19:13:03Z")

</div>

![flight1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3f20198399294c64a26c8d58f9ae919a8c5b2333.jpeg)

---

<div class="post-metadata">

**Author:** ![a1ex](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@a1ex](https://discourse.nodered.org/u/a1ex)\
**Post date:** [14 February 2021 19:13 UTC](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957/40 "2021-02-14T19:13:21Z")

</div>

@hotNipi: If I want to change the altitude/speed ranges, I can tell I'll need to modify the SVG graphics, but I'll also need to somehow scale the deflections of the needle. Any pointers on how to change the scaling?

[Previous page](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957.md?page=1)

[Next page](https://discourse.nodered.org/t/create-aerospace-attitude-indicator-in-dashboard/40957.md?page=3)
