Comment by la_fayette
7 days ago
For customer projects I am happily using paid "text to speech" APIs from several vendors.
Privately, I would like to use an API, which gets my Lego bricks inventory and returns all sets which I could build. Further it should show me sets, which I almost can build and show me missing pieces. Also e.g. it should show me sets with slight color differences, e.g. I have bricks in yellow but originally it requires orange. Things like that...
Sounds a lot like rebrickable. I'm not sure if they have an API though
That's a funny idea :)
I think the first one should be very much doable, but I am not sure how I would build the "almost complete" and the "similar colors" features.
I guess calculating the Levenshtein distance between the sets would work somehow?
Edit: scratch that, just intersect the set of available pieces with each set. If there are fewer than n--or m%--missing pieces, suggest those.
not sure if there are APIs, but there are a couple of websites that do that for Lego already.