meshtastic-map icon indicating copy to clipboard operation
meshtastic-map copied to clipboard

Remove extra image requests

Open GMart opened this issue 1 year ago • 3 comments

The site currently requests about 2 dozen device images that don't exist each time the site loads. There could be a check to make sure the image exists before trying to load the image. Or we can add a placeholder image for each device type. I guess there already is one, but not sure how that is generated.

GMart avatar Apr 23 '24 15:04 GMart

Related: https://github.com/liamcottle/meshtastic-map/pull/18#issuecomment-2073593020

liamcottle avatar Apr 23 '24 22:04 liamcottle

This adds an extra 1mb or so to responses, since there's like 12k nodes in the db now lol...

https://github.com/liamcottle/meshtastic-map/tree/feature/hardware-model-image-urls

liamcottle avatar Apr 23 '24 23:04 liamcottle

Ok, then I guess the current way works fine. Could you add a server side script, then the response would only be the current device types with image urls? So maybe 30 URLs total. It would only need to update maybe once per day. I'm not up to date with how scripting works these days.

GMart avatar Apr 25 '24 15:04 GMart