update raspberry-pi demo api