I have 10 Raspberry Pi's on my desk as we speak as well as an Orange Pi and a 7" LCD Display Board. I primarily use RPi's as display board devices, but also use them in my home to perform tasks.
I am currently working on a ESP01-S ESP 8266 Relay to control the lights in my house.
I will write this script for you!
I've been a Linux Sysadmin for over 20 years, a PHP developer and database administrator during that time. Over the past few years - in my formal role - my entire team has moved to developing on the Javascript and Node.js stack, so I am familiar with that too.
I can definitely assist with this. I have strong skills with Linux server administration, Nginx, Apache, PHP, MySQL, PostgreSQL and related technologies.
I WILL solve it for you!