cedbossneo / openmower-gui

28 stars 17 forks source link

The map isn't displayed anymore #35

Closed sraillard closed 4 months ago

sraillard commented 4 months ago

When selecting the "Map" entry, there is a blank screen: image

In the container log, we can see these error (404) messages:

[GIN] 2024/04/30 - 11:35:47 | 404 |      33.315µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538182&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      23.167µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538181&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      20.778µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538182&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |       17.63µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538181&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |       32.13µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538182&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      14.612µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538180&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      13.741µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538183&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      16.741µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538181&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      16.019µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538180&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      35.038µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538183&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      30.574µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538183&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      19.167µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538180&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      27.649µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538184&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      18.167µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538179&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      14.797µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538184&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      35.704µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538179&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      13.056µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538179&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      14.834µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538184&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:47 | 404 |      32.593µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269091&y=187099&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      21.556µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269090&y=187099&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      23.649µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269091&y=187100&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      21.297µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269090&y=187100&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      33.056µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269092&y=187099&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      32.408µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269089&y=187100&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      67.871µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269092&y=187100&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      21.889µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269089&y=187099&z=19"
[GIN] 2024/04/30 - 11:35:47 | 404 |      22.722µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=134545&y=93549&z=18"
[GIN] 2024/04/30 - 11:35:47 | 404 |      34.408µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=134545&y=93550&z=18"
[GIN] 2024/04/30 - 11:35:47 | 404 |       30.63µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=134546&y=93549&z=18"
[GIN] 2024/04/30 - 11:35:47 | 404 |      23.982µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=134544&y=93550&z=18"
[GIN] 2024/04/30 - 11:35:47 | 404 |      28.556µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=134546&y=93550&z=18"
[GIN] 2024/04/30 - 11:35:47 | 404 |      31.945µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=134544&y=93549&z=18"
[GIN] 2024/04/30 - 11:35:47 | 404 |      12.278µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=67272&y=46775&z=17"
[GIN] 2024/04/30 - 11:35:47 | 404 |      79.668µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=67272&y=46774&z=17"
[GIN] 2024/04/30 - 11:35:47 | 404 |      49.779µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=67273&y=46774&z=17"
[GIN] 2024/04/30 - 11:35:47 | 404 |      31.686µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=67273&y=46775&z=17"
[GIN] 2024/04/30 - 11:35:47 | 404 |      26.926µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=33636&y=23387&z=16"
[GIN] 2024/04/30 - 11:35:47 | 404 |       32.26µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=16818&y=11693&z=15"
[GIN] 2024/04/30 - 11:35:47 | 404 |      28.056µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=8409&y=5846&z=14"
[GIN] 2024/04/30 - 11:35:47 | 404 |      25.315µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=4204&y=2923&z=13"
[GIN] 2024/04/30 - 11:35:47 | 404 |      36.927µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=2102&y=1461&z=12"
[GIN] 2024/04/30 - 11:35:47 | 404 |      35.112µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=1051&y=730&z=11"
[GIN] 2024/04/30 - 11:35:47 | 404 |       30.63µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=525&y=365&z=10"
[GIN] 2024/04/30 - 11:35:50 | 404 |      32.945µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538182&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      30.167µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538181&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      27.019µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538180&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      25.871µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538184&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      21.352µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538183&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      30.037µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538185&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      14.944µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538185&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      37.574µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538179&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      29.704µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538185&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |          29µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538185&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |          35µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269091&y=187098&z=19"
[GIN] 2024/04/30 - 11:35:50 | 404 |      25.908µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269090&y=187098&z=19"
[GIN] 2024/04/30 - 11:35:50 | 404 |      29.241µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269092&y=187098&z=19"
[GIN] 2024/04/30 - 11:35:50 | 404 |      33.371µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538178&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      22.408µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538178&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      27.148µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538178&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |       14.63µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538178&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:50 | 404 |      21.056µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269089&y=187098&z=19"
[GIN] 2024/04/30 - 11:35:51 | 404 |     144.447µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538177&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |      21.315µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538186&y=374199&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |       27.63µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538177&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |      19.537µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538177&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |      14.686µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538186&y=374200&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |      12.852µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538186&y=374198&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |      14.093µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538177&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |      23.834µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=538186&y=374197&z=20"
[GIN] 2024/04/30 - 11:35:51 | 404 |      30.982µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269088&y=187099&z=19"
[GIN] 2024/04/30 - 11:35:51 | 404 |      79.001µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269088&y=187100&z=19"
[GIN] 2024/04/30 - 11:35:51 | 404 |      26.389µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269093&y=187099&z=19"
[GIN] 2024/04/30 - 11:35:51 | 404 |      23.871µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269093&y=187100&z=19"
[GIN] 2024/04/30 - 11:35:51 | 404 |       29.89µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269088&y=187098&z=19"
[GIN] 2024/04/30 - 11:35:51 | 404 |      33.593µs |    192.168.1.51 | GET      "/tiles/vt/lyrs=s,h&x=269093&y=187098&z=19"
sraillard commented 4 months ago

I have find a way to fix the issue:

Edit: it worked once, then no more map, so this isn't a fix for the issue

DavidBoman commented 4 months ago

I have the same issue.

karlranseierausrom commented 4 months ago

I would like to add:

olliewalsh commented 4 months ago

the mapbox API key is no longer valid

sraillard commented 4 months ago

is it possible to disable the mapbox display so we can at least see the mower path?

olliewalsh commented 4 months ago

Can try ghcr.io/olliewalsh/openmower-gui:master until @cedbossneo can fix this. This uses maplibre/maptiler instead of mapbox. You will need to create a free maptiler account (and unlike mapbox creditcard is not required) , get your api key then set it in as the env var MAP_API_KEY or via the setting page

olliewalsh commented 4 months ago

@sraillard by the way those 404 errors are not the issue, open debug console on chrome and can see 401 unauthorized errors from mapbox

Pawel-sp9pw commented 4 months ago

olliewalsh

Where have to add api key?

olliewalsh commented 4 months ago

Where have to add api key?

Depends on how you run it, set MAP_API_KEY in https://github.com/cedbossneo/openmower-gui/blob/master/README.md?plain=1#L50 or https://github.com/cedbossneo/openmower-gui/blob/master/docker-compose.yaml#L19

Tsepatek commented 4 months ago

Hi Olliewalsh, Did I get it right? I edited gui.serivice file and replaced cedbossneo with olliewalsh and added --env MAP_API_KEY=XXXXXXXXX \

I cannot get gui.service to start.

Tsepatek commented 4 months ago

Now I was able to start the service so I got it right. Thanks for this. I need to edit my map.

sraillard commented 4 months ago

Thank you @olliewalsh: I have tried your new version and the map is displayed!

Getting an API key was quite easy, I went tohttps://www.maptiler.com/, create a free account, then there is a menu where the API key can be copied.

Here are my quick notes if it can help to migrate:

- systemctl stop gui.service
- nano /etc/systemd/system/gui.service
  - Add this line with your API key: --env MAP_API_KEY=xxxx \
  - Replace the container name by ghcr.io/olliewalsh/openmower-gui:test
- systemctl daemon-reload
- systemctl start gui.service

Edit: the forked repo is here https://github.com/olliewalsh/openmower-gui

cedbossneo commented 4 months ago

Fixed map token

cedbossneo commented 4 months ago

@olliewalsh Is maplibre better ? If yes, maybe we can merge your work

Tsepatek commented 4 months ago

@olliewalsh Is maplibre better ? If yes, maybe we can merge your work

Hi, both of the maps are quite blurry at least in my home town view. Could it be possible to you some other layer than satellite?

waffle-stomper commented 4 months ago

@cedbossneo Is there a way I can manually trigger an Openmower GUI update? I've got an old install (on OpenmowerOS) where the map is still broken

sraillard commented 4 months ago

to update: podman pull ghcr.io/cedbossneo/openmower-gui:master