Emoncms demandshaper problem


My install is local, I have MQTT messages working and openevse is passing the data along with messages going out.

I installed demandshaper as instructed but don’t seem to get it working at all, the on/off/smart/time tab does nothing and i get an odd error like a route problem, although dashboards/apps all work.

Also the box for selecting a demand shaper signal is blank

Below is a screenshot

Any ideas where to look to find the problem?

Ok, i’ve got a little further.

As i run it on my own install i decided to create the pi directory and give www-data permissions and put the demandshaper directory in there and this seems to fix it as much as i now get the graph and options for demand signal etc.

But at the top it says openevse unresponsive, so now working on what that means? and where to find the problem.

Please attach your image to your post as opposed to putting it on a third party site.

If, for some reason the image becomes inaccessible, your post loses its value. I’ve upped your privileges so you shouldn’t have a problem.


Thanks Robert, I’ve edited my post and uploaded the screenshot.

Hi Simon,

I suggest your best route may be to export your data and start afresh. If you don’t want to use the EmonSD image, you can do an install using the EmonScripts. This then puts everything where EmonCMS expects to find them.

You can also edit the config and install just what you want.

Thanks for the reply, but this problem seems related to the demandshaper module, you can read the install instructions says to put it in /home/pi but for people who don’t use the emonpi it’s not correct but do think something is hardcoded, i need to try work that out.

I’d rather understand where and what is going wrong really but also think reporting my findings will help others.

Do appreciate your reply though and if i only had emoncms on the pc it might be an option but it’s a Intel NUC running Domoticz and other stuff and don’t want to really start breaking it all.

Is the base system up to date?

If available can you click on the button Copy as Markdown next to Server Information on the Admin page and paste here please (no further formatting required).

yes base is up to date.

Server Information

Server Information


  • emoncms_mqtt :- Active Running
  • redis-server :- Active Running
  • demandshaper :- Active Running



  • OS :- Linux 5.0.0-37-generic
  • Host :- domoticz | domoticz.local.lan | (
  • Date :- 2019-12-18 15:35:31 GMT
  • Uptime :- 15:35:31 up 3 days, 23:29, 1 user, load average: 0.17, 0.10, 0.08


  • RAM :- Used: 23.21%
    • Total :- 3.71 GB
    • Used :- 882.49 MB
    • Free :- 2.85 GB
      Write Load Period


  • / :- Used: 36.11%
    • Total :- 53.48 GB
    • Used :- 19.31 GB
    • Free :- 31.94 GB
    • Write Load :- n/a
  • /boot :- Used: 16.19%
    • Total :- 975.9 MB
    • Used :- 158.03 MB
    • Free :- 750.67 MB
    • Write Load :- n/a
  • /boot/efi :- Used: 1.47%
    • Total :- 510.98 MB
    • Used :- 7.54 MB
    • Free :- 503.45 MB
    • Write Load :- n/a


  • Server :- Apache/2.4.38 (Ubuntu) HTTP/1.1 CGI/1.1 80


  • Version :- 5.7.28-0ubuntu0.19.04.2
  • Host :- localhost:6379 (
  • Date :- 2019-12-18 15:35:31 (UTC 00:00‌​)
  • Stats :- Uptime: 63486 Threads: 5 Questions: 78014 Slow queries: 0 Opens: 231 Flush tables: 1 Open tables: 224 Queries per second avg: 1.228


  • Version :-
    • Redis Server :- 5.0.3
    • PHP Redis :- 4.1.1
  • Host :- localhost:6379
  • Size :- 120 keys (952.96K)
  • Uptime :- 3 days

MQTT Server

  • Version :- Mosquitto ?
  • Host :- (


  • Version :- 7.2.24-0ubuntu0.19.04.1 (Zend Version 3.2.0)
  • Modules :- apache2handler | bz2 v7.2.24-0ubuntu0.19.04.1 | calendar v7.2.24-0ubuntu0.19.04.1 | Core v7.2.24-0ubuntu0.19.04.1 | ctype v7.2.24-0ubuntu0.19.04.1 | curl v7.2.24-0ubuntu0.19.04.1 | date v7.2.24-0ubuntu0.19.04.1 | dom v20031129 | exif v7.2.24-0ubuntu0.19.04.1 | fileinfo v1.0.5 | filter v7.2.24-0ubuntu0.19.04.1 | ftp v7.2.24-0ubuntu0.19.04.1 | gd v7.2.24-0ubuntu0.19.04.1 | gettext v7.2.24-0ubuntu0.19.04.1 | gmp v7.2.24-0ubuntu0.19.04.1 | hash v1.0 | iconv v7.2.24-0ubuntu0.19.04.1 | json v1.6.0 | ldap v7.2.24-0ubuntu0.19.04.1 | libxml v7.2.24-0ubuntu0.19.04.1 | mbstring v7.2.24-0ubuntu0.19.04.1 | mosquitto v0.4.0 | mysqli v7.2.24-0ubuntu0.19.04.1 | mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $ | odbc v7.2.24-0ubuntu0.19.04.1 | openssl v7.2.24-0ubuntu0.19.04.1 | pcre v7.2.24-0ubuntu0.19.04.1 | PDO v7.2.24-0ubuntu0.19.04.1 | pdo_mysql v7.2.24-0ubuntu0.19.04.1 | PDO_ODBC v7.2.24-0ubuntu0.19.04.1 | pdo_pgsql v7.2.24-0ubuntu0.19.04.1 | pdo_sqlite v7.2.24-0ubuntu0.19.04.1 | pgsql v7.2.24-0ubuntu0.19.04.1 | Phar v2.0.2 | posix v7.2.24-0ubuntu0.19.04.1 | pspell v7.2.24-0ubuntu0.19.04.1 | readline v7.2.24-0ubuntu0.19.04.1 | recode v7.2.24-0ubuntu0.19.04.1 | redis v4.1.1 | Reflection v7.2.24-0ubuntu0.19.04.1 | session v7.2.24-0ubuntu0.19.04.1 | shmop v7.2.24-0ubuntu0.19.04.1 | SimpleXML v7.2.24-0ubuntu0.19.04.1 | snmp v0.1 | sockets v7.2.24-0ubuntu0.19.04.1 | sodium v7.2.24-0ubuntu0.19.04.1 | SPL v7.2.24-0ubuntu0.19.04.1 | sqlite3 v7.2.24-0ubuntu0.19.04.1 | standard v7.2.24-0ubuntu0.19.04.1 | sysvmsg v7.2.24-0ubuntu0.19.04.1 | sysvsem v7.2.24-0ubuntu0.19.04.1 | sysvshm v7.2.24-0ubuntu0.19.04.1 | tidy v7.2.24-0ubuntu0.19.04.1 | tokenizer v7.2.24-0ubuntu0.19.04.1 | wddx v7.2.24-0ubuntu0.19.04.1 | xml v7.2.24-0ubuntu0.19.04.1 | xmlreader v7.2.24-0ubuntu0.19.04.1 | xmlrpc v7.2.24-0ubuntu0.19.04.1 | xmlwriter v7.2.24-0ubuntu0.19.04.1 | xsl v7.2.24-0ubuntu0.19.04.1 | Zend OPcache v7.2.24-0ubuntu0.19.04.1 | zlib v7.2.24-0ubuntu0.19.04.1
Client Information

Client Information


  • Browser :- Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
  • Language :- en-GB,en;q=0.9


  • Size :- 1487 x 843


  • Resolution :- 1504 x 1003

Looking at the install scripts etc, it seems things have moved around so I’ll look at reinstalling.

Yes they have.

However, I suspect your issue may be that service-runner is not running and I think Demand Shaper requires it (I could be wrong).

The scripts work quite well on a clean Ubuntu - check my post on the subject - and you can select what to install, so for instance, just the mosquitto client and not the server if it is already installed and configured. However, there has never been an ‘uninstall’ done first :grin:.

Thanks for your help.

So as to finish this post off with what I found. My install might not quite be right and had to manually create the pi dir in home to emulate it being on the raspberry pi, this i think is down to a setting somewhere for the path to find the files which i will find but my workaround got the front-end actually to respond.

I then had an issue with it saying unresponsive next to openevse after a few seconds, this turn out to be a problem with a setting on the openevse mqtt setup, i had it set to just openevse on the base topic as it suggest in the gui, changing this to emon/openevse fixed the response and now scheduling is working.

I hope this helps others!

@glyn.hudson - is this an issue?