@Dan in CA wrote:
If your plugin is something you would like to share with the community, I would suggest keeping it as self contained as possible and not modifying the existing UI. However there is already an unused location field on the option page that could hold lat-lon data (gv.sd).
It sounds like you are planning to calculate sunset time from geographic location rather require a light sensor. That would be really cool.
Doesn’t the mobile app use gv.sd for the current weather?