2020-08-13, 11:54 AM
(2020-08-12, 09:19 PM)MatsA Wrote:(2020-08-12, 07:19 PM)Sailoog Wrote: I have checked the signal k code and there is a blocking loop here: https://github.com/SignalK/signalk-serve...alk.js#L51 This could be the reason for that high process consumption.
Adding "time.sleep(0.01)" after line 51 should fix this but I am not sure where this file goes after installation to overwrite and test this change.
Thanks for the feedback. The source is found at "/home/pi/signalk-server-node/packages/streams/pigpio-seatalk.js" in a standard SK install. Or just use 'sudo find / -name "pigpio-seatalk.js"' I don't have the possibility to check it for some days...
I need to know where that embedded python code is installed to hardcode it and test this change because I do not want to build signal k server from source.
pigpio-seatalk.js is not found in a working system.