Coded based on information gathered from the following sources:
- https://github.com/MichaluxPL/Sofar_LSW3
- https://pysolarmanv5.readthedocs.io/en/latest/solarmanv5_protocol.html
- Inspecting the response data from the Inverter/LSW-3 Logger
Uses api from https://sunrise-sunset.org/api for detecting daytime to prevent unnecessary logging during night time.