fabian-lauer / dbus-shelly-3em-smartmeter

Integrate Shelly 3EM smart meter into Victron Energies Venus OS
125 stars 55 forks source link

Not running as service at v2.93 large after shutdown / reboot #32

Closed dafricki closed 1 year ago

dafricki commented 1 year ago

It seems when using the Venus OS Large Image v2.93 there is a problem with the service when the Raspberry was shutted down and then started a few hours later. Then there are no values from the dbus-shelly-3em-smartmeter at "AC-Eingang" and "AC-Lasten" and dbus-spy shows no 3EM service.

fabian-lauer commented 1 year ago

Hi @dafricki ,

looks like this is a linked issue - see https://github.com/fabian-lauer/dbus-shelly-3em-smartmeter/issues/33 Not using large image nor raspberry. Therefore I can't test :-(

andreasnanko commented 1 year ago

Thats because the install script is broken due to wrong quotes. You need to change it to double quotes instead of single.

grep -qxF '$SCRIPT_DIR/install.sh' $filename || echo '$SCRIPT_DIR/install.sh' >> $filename

will result into

$SCRIPT_DIR/install.sh

where you wanted to inject the script path

So you want to change it to

grep -qxF "$SCRIPT_DIR/install.sh" $filename || echo "$SCRIPT_DIR/install.sh" >> $filename

andreasnanko commented 1 year ago

You don't need to run special commands, you need to fix the install.sh file. Afterwards just as described in the install documentation.

dafricki commented 1 year ago

Thank you very much, now it seems to work.

fabian-lauer commented 1 year ago

Updated in main-branch