This is a bit inconvenient on a bike with a smallish tank & no fuel gauge.
After a while pondering I came up with this;
A short length of thick wall vacuum tube pushed tightly onto the brass reset shaft inside the speedo, finish off with a plastic tyre valve cap to close the end of the tube

Works a treat & looks decent too

Phil