Hypfer / ICantBelieveItsNotValetudo

A Valetudo companion service which renders maps to pngs
Apache License 2.0
129 stars 80 forks source link

crop and color doesn't have effects #20

Closed mekkki closed 3 years ago

mekkki commented 4 years ago

hello,

i have an issue, the crop parameters don't have any effect on the image. the drawRobot, scale and other parameters are working fine. if i write the mapSettings outside the "mqtt": { } all the parameters don't work.

here's my app/config.json , my map is 1430x1200 by default :

{ "mqtt": { "identifier": "rockrobo", "topicPrefix": "valetudo", "autoconfPrefix": "homeassistant", "broker_url": "mqtt://XXXXXXXXXXXX", "caPath": "", "mapSettings": { "crop_x1": 350, "crop_y1": 400, "crop_x2": 1100, "crop_y2": 900, "drawPath": true, "drawCharger": true, "drawRobot": true, "border": 2, "scale": 2 }, "mapDataTopic": "valetudo/rockrobo/map_data", "minMillisecondsBetweenMapUpdates": 10000, "publishMapImage": true }, "webserver": { "enabled": true, "port": 3000 } }

anyone having the same problem ? any solution ?