Oilfox per HTTPMOD einbinden

Begonnen von Micky79, 20 Juni 2019, 21:33:53

Vorheriges Thema - Nächstes Thema

amenomade

Zitat von: DoubleD am 07 September 2020, 19:59:35
Brauchst du den ganzen JSON-String?
Kann ich bei bedarf bereitstellen.

Gruß
DD
Oder eine funktionierende Version vom HTTPMOD für httpmod.template.

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

DoubleD

Zitat von: amenomade am 07 September 2020, 20:14:02
Oder eine funktionierende Version vom HTTPMOD für httpmod.template.

Bitteschön!
IDs usw. hab ich natürlich geändert... ;-)


{"user":{"id":"0000000-0000-0000-0000-000000000000",
"email":"mail.adresse@gmx.de",
"title":"Herr",
"firstName":"max",
"lastName":"muster",
"country":"DE",
"locale":"de_DE",
"passwordSet":true},

"devices":[{"id":"0000000-0000-0000-0000-000000000000",
"hwid":"ON0000000000",
"isRestricted":false,
"name":"Ort",
"tankShape":"CYLINDER",
"tankHeight":160,
"tankVolume":10000,
"tankOffset":12,
"tankIsUsableVolume":false,
"tankUsableVolume":9500,

"tank":{"height":160,
"offset":12,
"volume":10000,
"usableVolume":9500,
"shape":"CYLINDER",
"isUsableVolume":false,
"productGroupId":"0000000-0000-0000-0000-000000000000"},

"partnerId":"0000000-0000-0000-0000-000000000000",
"productGroupId":"0000000-0000-0000-0000-000000000000",
"notificationInfoEnabled":true,
"notificationInfoPercentage":30,
"notificationAlertEnabled":true,
"notificationAlertPercentage":25,

"address":{"city":"",
"country":"DE",
"addressLine1":"",
"zipCode":"99999",
"company":""},

"meteringIntervalSeconds":86400,

"lastMetering":{"value":55,
"fillingPercentage":81,
"quantity":7687,
"unit":"L",
"fillHeightCm":113,
"serverDate":1599478390000,
"battery":100,
"validity":"VALID_SONIC",
"liters":7687,
"currentOilHeight":113}}],

"partners":[{"id":"0000000-0000-0000-0000-000000000000",
"name":"Mobene B2C",
"displayName":"Mobene Unternehmensgruppe",
"logoUrl":"https://s3.eu-central-1.amazonaws.com/oilfox-files/logo.png",
"country":"DE",
"zipCodeRegEx":"^[0-9]{5}$",
"backgroundColor":"#9a9a9a",
"accentColor":"#ffffff",
"supportName":"",
"supportPhone":"",
"supportEmail":"",
"productGroups":[{"id":"0000000-0000-0000-0000-000000000000",
"name":"Heizöl",
"imageUrl":"https://s3.eu-central-1.amazonaws.com/oilfox-files/product_group_icons/HEATING_OIL.png",
"type":"HEATING_OIL"}],
"translationDeOrderButton":"Bestellen",
"translationEnOrderButton":"Order",
"translationFrOrderButton":"Commander"}]}