thrown together web api for a arduino connected to a mac