Constraints on Ωm and σ8 from the potential-based cluster temperature function