mschlenstedt / LoxBerry-Plugin-Stats4Lox

A LoxBerry Plugin: http://plugins.loxberry.de/plugin/stats4lox
1 stars 2 forks source link

Konvertierung V1 -> V2 (JSON): Falscher minValue in statcfg #33

Closed mschlenstedt closed 5 years ago

mschlenstedt commented 5 years ago

Im Sink:

   "Sink" : {
      "RRD" : {
         "filename" : "0001.rrd",
         "maxValue" : "\\+60",
         "minValue" : "\\-50",
         "sendStatus" : "running",
         "sendStatusError" : null,
         "step" : "300"
      }

Im Source:

   "Source" : {
      "Loxone" : {
         "blockType" : null,
         "category" : "Wetter",
         "fetchSource" : "Temp Lüf Außenluft",
         "minValue" : "\\+60",
         "msno" : "1",
         "place" : "Außen",
         "uid" : "",
         "unit" : "°C"
      }

Im Source wird maxValue zu minValue und maxValue fehlt.

mschlenstedt commented 5 years ago

Wollen wir die ganze Konvertierung nicht rausschmeissen? Oder auslagern (ist das vielleicht schon so?)? Bis auf Du hat das Plugin glaube ich bisher keiner genutzt :-)

christianTF commented 5 years ago

Lass das Migration.pm erstmal drin, da sieht man erstmal, was wo rein muss. Sobald der Import auf json ist, werfe ich es hinaus.