service script for php interface script thanks to https://github.com/myheathub/mhh