Btw, just in case you could do a quick search for Kobo in general.
But yes, a plugin like you describe should be simple enough.
Here are some of the frontlight control functions.
Here is the night mode switch.
Here is the BackgroundRunner plugin you could use to execute the POST.