onReady won't exist once this function ends. Can you attach it to the climate object itself?