Hia, looks like really great work.
A note here, I’ve been having to stop emonhub to free up the UART on the pi for other things, including oem dev. But there’s a problem.
The issue has been that after entering these bash commands:
I tried disabling the interfacer.
Perhaps there’s a deeper issue with Raspbian. It seems like any activity on the Serial line while the rPi was booting was slowing down the boot process significantly. At the moment, I can only think that emonhub is trying to parse the equivalent of noise. There might be another process before emonhub trying to do something with incoming signals.
Are you saying a boot with emonhub masked is quicker than with it enabled?
Might be worth experimenting and adding a delay into the service file to delay startup. To do that you need to enable the timer file instead of a service file and edit rc.local so it does not kick it off early. There used to be a delay in rc.local IIRC.
An ‘enabled’ service is just one that starts at boot. If it is installed (and not masked), it can still be started at anytime.