Hello everyone,
I’m looking for a module template to display the response for a specific API call.
I’ve got a Petcare SureFlap and already set up a REST API for it.
link text
I’m only trying to display the current location of my cat on the mirror. The look should be similar to MMM-FHEM.
The request url looks like that:
http://192.168.178.xxx:3001/households/xxxxxx/pets/xxxxxx/location
So I’ll need the following config variables:
host
port
householdID
petID
updateInterval
Name of the pet as title because it isn’t included in this specific call
The response looks like this:
{"location":"Inside","pet_id":xxxxxx}
The final module should display the pet’s name as title and the current location (preferrably with German translation) underneath it.
I hope that someone can point me in the right direction. I’ve already tried editing the existing MMM-FHEM because it looks just like what I want but I’m struggling with the extraction of values from the call.