via HTTP Binding I created a thing based on JSONPATH Transformation. Basically it’s about getting COVID stuff from here: https://api.corona-zahlen.org/vaccinations/
The thing works quite well:
UID: http:url:92180f4e2e label: CovidVaccinationNW thingTypeUID: http:url configuration: authMode: BASIC ignoreSSLErrors: false baseURL: https://api.corona-zahlen.org/vaccinations/ delay: 0 stateMethod: GET refresh: 30 commandMethod: GET contentType: application/json timeout: 3000 bufferSize: 2048 channels: - id: administeredVaccinations channelTypeUID: http:number label: Gesamte Impfungen description: null configuration: pattern: "%1$,d" stateTransformation: JSONPATH:$.data[*].NW.administeredVaccinations
But I’m wondering, if it would be possible to also format the number here? E.g. I want to include a thousands separator and therefore added
above. Unfortunately I does not work.
It works, when I put
into add Metadata → State Description → Pattern section.