Hypfer / ICantBelieveItsNotValetudo

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

Howto Debug during Setup #58

Closed dcbo closed 2 years ago

dcbo commented 3 years ago

Hi, I'm Dario from Germany,

I hope this is the right place to ask.

I found this nice Project and I tried to set it up but I run into problems, thus I have a question regarding the logLevel, which I think I'm not able to change,

What I did:

icantbelieveitsnotvaletudo:
    build:
      context: ./ICantBelieveItsNotValetudo/
      dockerfile: Dockerfile
    container_name: "iot-ICantBelieveItsNotValetudo"
    restart: unless-stopped
    user: "1000:1000"   
    networks:
      - proxy      
    ports:
      - "3000:3000"
    volumes:
      - ./ICantBelieveItsNotValetudo/config.json:/app/config.json

Then i created an empty file touch ./ICantBelieveItsNotValetudo/config.json And fired up the Container. docker-compose up icantbelieveitsnotvaletudo A default config.json is generated and I edited it to my needs and everything seems OK (I get no Errors in the Log) But nothing happens, The Webserver returns Not Found when requesting http://[IP]:3000/api/map/image and I don't see any messages published by icantbelieveitsnotvaletudo

Here is my Question:

To enable more Debugging-Output i changed logLevel in config.json to "logLevel": "trace" But it seems to have no effect.

What am I doing wrong?

trancefam commented 3 years ago

Hi, I do not have the answer for the logLevel issue, but I may be able to help with the image not showing up. With Valetudo 2021.4.0, the mqtt topic changed (noted here under faq https://github.com/Hypfer/Valetudo/releases/tag/2021.04.0):

"Q: ICBINV does not seem to be retrieving the map A: The map topic changed, it is now TOPIC_PREFIX/IDENTIFIER/MapData/map-data, update your ICBINV config and ICBINV to 2021.04.0"

This made me realize that the default mqtt in the latest ICBINV was valetudo/rockrobo/MapData/map-data and the default mqtt in the latest valetudo was valetudo/robot/MapData/map-data

Once I changed the identifier of the vacuum in ICBINV to match what is listed as the default identifier in Valetudo, it worked.

TLDR: try changing valetudo/rockrobo/MapData/map-data to valetudo/robot/MapData/map-data in config.json

I created a PR #60

ownbee commented 3 years ago

Change README as well? That got me fooled for hours!

rossiluis22 commented 3 years ago

thanks!! also spent a lot of hours, and finally the problem was that /MapData/map-data... please update the README so people don't get confused.