# Portable emoncms dashboards (looking for testers)

**URL:** <https://community.openenergymonitor.org/t/portable-emoncms-dashboards-looking-for-testers/6870>\
**Category:** Emoncms\
**Tags:** development, dashboards\
**Created:** [18 March 2018 10:30 UTC](https://community.openenergymonitor.org/t/portable-emoncms-dashboards-looking-for-testers/6870 "2018-03-18T10:30:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [18 March 2018 10:30 UTC](https://community.openenergymonitor.org/t/portable-emoncms-dashboards-looking-for-testers/6870/1 "2018-03-18T10:30:51Z")

</div>

There have been a number of requests for making it easier to copy dashboards across accounts and between different emoncms installations. E.g copying an [emoncms.org](http://emoncms.org) dashboard to run on an emonpi.

**tag:name reference**

For sometime dashboards have used unique feedid’s for their configuration which means that a dashboard on one account cant be copied to another account because the feedid’s will be different on the second account.  
I’ve put together a solution to this problem providing the option to use tag:name reference for feeds in dashboards as well as feedid reference. The option to use either reference mode can be selected on the dashboard settings page:

 ![feedmodeconfig](https://community.openenergymonitor.org/uploads/default/original/2X/9/9f8c0d85bb1f55f44e54724774a369db220b974f.png)

After switching the feedmode from feedid to tag:name, go through each widget in the dashboard and re-save its feed configuration to use the new reference mode to complete the conversion.

You should then be able to copy the dashboard html following the next step to a dashboard on another account but with feeds of the same tag and name.

**dashboard html acess**

I have also added a second feature on the dashboard configuration page suggested by @pb66 which makes it simpler to access the html for the dashboard as well as making it possible to copy and paste dashboard content between installations:

 ![htmleditor](https://community.openenergymonitor.org/uploads/default/original/2X/e/ef27fa3a0c2f90c1d0b2f53b0c931268b28775be.png)

**XSS Filter**

There is also a new xss filter that removes javascript to help protect against XSS attacks, using [https://github.com/voku/anti-xss](https://github.com/voku/anti-xss)

## Testing

Im looking for help testing these features before they are merged into the master branch.  
To switch to this tagname\_option development branch on an emonpi/emonbase the terminal commands are:

```
cd /var/www/emoncms/Modules/dashboard
git checkout tagname_option

```

You may want to backup your mysql database before doing this, just in case there’s a bug that overwrites a previously created dashboard.

The github issues created by @pb66 can be found here:

- [Edit and/or cut'n'paste dashboard content · Issue #149 · emoncms/dashboard · GitHub](https://github.com/emoncms/dashboard/issues/149)
- [https://github.com/emoncms/dashboard/issues/145](https://github.com/emoncms/dashboard/issues/145)

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [3 May 2018 14:20 UTC](https://community.openenergymonitor.org/t/portable-emoncms-dashboards-looking-for-testers/6870/2 "2018-05-03T14:20:14Z")

</div>

I’ve merged this into the master branch but not yet into stable [Tagname option by TrystanLea · Pull Request #154 · emoncms/dashboard · GitHub](https://github.com/emoncms/dashboard/pull/154)

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [8 May 2018 18:53 UTC](https://community.openenergymonitor.org/t/portable-emoncms-dashboards-looking-for-testers/6870/3 "2018-05-08T18:53:39Z")

</div>

[Emoncms.org](http://Emoncms.org) is now running latest master which includes the html editor and feed tag:name feature.

I have also added a new API to make dashboard export easier (and will be used by sync tool)

```
https://emoncms.org/dashboard/getcontent.json?id=DASHBOARDID&apikey=APIKEY_WRITE
```

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [14 June 2018 14:33 UTC](https://community.openenergymonitor.org/t/portable-emoncms-dashboards-looking-for-testers/6870/4 "2018-06-14T14:33:30Z")

</div>

> [@TrystanLea](#):
>
> I’ve merged this into the master branch but not yet into stable [https://github.com/emoncms/dashboard/pull/154](https://github.com/emoncms/dashboard/pull/154)

This has now been merged into Dashboard stable branch V1.3.0
