New Install and DemandShaper

Hi,

I have installed a new SD card image emonSD-01Feb24 This new image does not come with DemandShaper as standard so I manually installed it demandshaper/docs/manual-install.md at master · emoncms/demandshaper

I think its working but in the Emoncms Logs I keep getting the below. any pointers?

2024-11-17 16:32:16.013|ERROR|demandshaper_model.php|Saved to disk

Also the service keeps stopping

@glyn.hudson Demandshaper is one of yours, I think. Possibly, the service is running as wrong user and needs a drop in.

Hello @Pukka did you want to use this with the OpenEVSE v4?

There is a development branch with a fix to make this work, try the following via SSH:

cd /opt/emoncms/modules/demandshaper
git pull
git checkout openevse_wifi_v4

You then need to edit the IP address for your OpenEVSE manually here:

nano /etc/emoncms/modules/demandshaper/devices/openevse.php

See line 14. Then restart the demandshaper with:

sudo systemctl restart demandshaper

I need to make that IP address or hostname enter-able from the UI!

The demandshaper needs a bit of work really. I am still using it day in day out here personally and it works well, it could just do with a few improvements really to make it more suitable for general use.

Hi @TrystanLea

I have installed the V4 branch and edited the openevse.php, in this location /opt/emoncms/modules/demandshaper/devices

In /etc I dont have a emoncms folder.

I am still getting an error in the log and the service stopping

2024-11-18 17:29:59.-477|WARN|index.php|406 Not Acceptable|override
2024-11-18 17:30:01.-284|ERROR|demandshaper_model.php|Saved to disk

Sorry @Pukka not sure what’s going wrong there. Do you have remote access on this system? happy to have a look, feel free to PM me the details…

You could try deleting the demandshaper device and then reassigning the openevse device type via the inputs page.

1 Like

@TrystanLea I did try this but still no differance. I have sent you a PM :smiley:

1 Like

Thank you so much @TrystanLea !!!

I was 99.9999% the way there, I had put the wrong IP address in the openevse.php

1 Like