json api to intaract with beerery controller on raspberry pi