Another #factorio post.
https://blog.ktz.me/factorio-controlling-space-ship-collectors-filters-via-circuit-logic/
Set Asteroid collector filters by reading the contents of a belt