From 441aba6134d5ed9582b951e540c66e4c38e6cbd1 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 9 Nov 2020 20:15:02 +0100 Subject: [PATCH] add much more convenient way to get a sure petcare api token (#15587) (will be even more convenient when the surepy lib in home assistant will be bumped to a more recent version which includes the cli) --- source/_integrations/surepetcare.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_integrations/surepetcare.markdown b/source/_integrations/surepetcare.markdown index f97a07445d3..6040766fece 100644 --- a/source/_integrations/surepetcare.markdown +++ b/source/_integrations/surepetcare.markdown @@ -57,8 +57,9 @@ surepetcare: ## Getting the IDs of your flaps, feeders and pets -There are (at least) two ways: +There are (at least) three ways, sorted in "descending convenience order": +- Use the [surepy](https://github.com/benleb/surepy) tool (uses the same library as this integration) from [@benleb](https://github.com/benleb). A Python tool to get your token simply by running a single command (check `surepy --help` for the exact command). - Use the [sp_cli.py](https://github.com/rcastberg/sure_petcare/blob/master/sp_cli.py) from [@rcastberg](https://github.com/rcastberg) to fetch the IDs from the Sure Petcare API. With the default setting, the IDs will be written as JSON to `~/.surepet.cache`. - Visit [surepetcare.io](https://surepetcare.io) and log in with your Sure Petcare credentials. Open the developer tools in Chrome/Firefox, switch to the "Network" tab and refresh the page. Now look for calls to `start` (`pets`, `` and others are also possible, but `start` shows you all information at once). Click on this call and in the JSON displayed you will find all the needed IDs.