How to remote set any value (e.g. TimeAlarm)?

I found this code @ScruffR wrote in this post. Can i set values for hh and mm through a webapp. If you can site any examples where this has been done i could learn from that code.