# Screenshot of Dashboard headless mode

**URL:** <https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738>\
**Category:** General\
**Created:** [10 November 2019 06:52 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738 "2019-11-10T06:52:23Z")\
**Posts on this page:** 20\
**Page:** 2

<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 November 2019 18:29 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/21 "2019-11-14T18:29:14Z")

</div>

I think some of our tests use [webdriver.io](http://webdriver.io) but I haven’t used it personally

---

<div class="post-metadata">

**Author:** ![moebius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/moebius/32/2872_2.png) [@moebius](https://discourse.nodered.org/u/moebius)\
**Post date:** [14 November 2019 20:44 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/22 "2019-11-14T20:44:28Z")

</div>

Did you try to print it -\> save as pdf?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [14 November 2019 22:52 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/23 "2019-11-14T22:52:36Z")

</div>

Better question - why make it headless ? Sure do not have a screen attached but you can still have a desktop environment with VNC etc etc on it and remote into there when needed - or am i missing something ?

Craig

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [14 November 2019 22:55 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/24 "2019-11-14T22:55:16Z")

</div>

So if you have Telegram access etc you could have the PI open up a SSH tunnel or VPN etc based on receiving a command from the Telgram Bot

What is the underlying communication option to the remote site ?

Craig

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 10:05 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/25 "2019-11-15T10:05:16Z")

</div>

Hi craigcurtin,

The problem is that it is in a remote area and I can only connect via LTE (4G). There is no chance to do a port forwarding. VPN and reverse SSH makes no sense because I need a "easy to check" method with the cell phone. That is the reason I use Telegram service.

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 10:06 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/26 "2019-11-15T10:06:50Z")

</div>

AND... I want a short status report every day. This is easy to realize via Telegram.

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 10:08 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/27 "2019-11-15T10:08:47Z")

</div>

@ moebius  
how can I program a automatic pdf print of the dashboard?

---

<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:** [15 November 2019 11:09 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/28 "2019-11-15T11:09:06Z")

</div>

Rather than running up an app to fetch the web page and screenshot it, perhaps keep firefox running all the time and just run a screenshot on that.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [15 November 2019 11:12 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/29 "2019-11-15T11:12:11Z")

</div>

What is the use of a dashboard if no one can look at it? Why not have the pi build a report that can be sent?

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 12:14 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/30 "2019-11-15T12:14:17Z")

</div>

@zenofmud: The dashboard is to generate a graphic of the sensor data over time, so it is easier for the user to see what happened the last week or day.  
I can send data out (that is what I am doing no), but it would be more convenient when I would get a graphic to analyse the data.

@colin: How can I take a automatic screenshot of firefox when it runs in the background?

---

<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:** [15 November 2019 12:28 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/31 "2019-11-15T12:28:21Z")

</div>

> [@stefanp](#):
>
> can I take a automatic screenshot of firefox when it runs in the background

It won't be running in the background, it will be in the foreground. You just won't have a display plugged in.

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 14:11 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/32 "2019-11-15T14:11:28Z")

</div>

@colin: How can I make a partial screenshot of the pi?

---

<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:** [15 November 2019 14:24 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/33 "2019-11-15T14:24:11Z")

</div>

No idea, sorry. Google?

---

<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:** [15 November 2019 14:28 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/34 "2019-11-15T14:28:34Z")

</div>

Do a full screenshot then post process it later? Either in the Pi or after transfer.

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 15:05 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/35 "2019-11-15T15:05:11Z")

</div>

You have any idea how I can do a screenshot of the pi in general.  
I came up with the headless idea, because some people already did this in NR but not of the dashboard.  
AND it is used for automation and testing.

---

<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:** [15 November 2019 15:40 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/36 "2019-11-15T15:40:26Z")

</div>

Did you try as I suggested? Google (or your favourite search engine) for  
raspbian screenshot command line

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 17:04 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/37 "2019-11-15T17:04:43Z")

</div>

@Colin YUP, i found the Scrot program. I till try with that program today.

---

<div class="post-metadata">

**Author:** ![stefanp](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stefanp](https://discourse.nodered.org/u/stefanp)\
**Post date:** [15 November 2019 19:06 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/38 "2019-11-15T19:06:41Z")

</div>

@Colin I had to install a gui first because I am using the buster lite version.  
I can use the scrot command to take a screenshot, so this is good.  
BUT i tried a very simple exec node with a injector and I dont get a screenshot 🙄  
The command is just "scrot /home/pi/test.png"  
It works in the GUI (execute and Xterm) but not if I use it with node red 🤔

---

<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:** [15 November 2019 22:12 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/39 "2019-11-15T22:12:03Z")

</div>

Does scrot let you specify which X display you want to take a snapshot of?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [16 November 2019 04:16 UTC](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738/40 "2019-11-16T04:16:02Z")

</div>

Have a look at Zerotier - it essentially creates a Virtual VPN - there is very little communications overhead until you connect. You could then script the daily reports etc to come from a central site that then takea remote session, grabs data and screenshots etc from the remote PI

Personally i think it would be far easier for the sensor data you wish to visualise to be logged on the remote pi and then uploaded to a central location once a day and imported/visualised that way

Craig

[Previous page](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738.md?page=1)

[Next page](https://discourse.nodered.org/t/screenshot-of-dashboard-headless-mode/17738.md?page=3)
