I suppose the right data are the temperature for the daytime, actually the average temperature during the hours of energy production. Am I right?
You are right that the most relevant ambient temperature data is for the hours of PV energy production. So if you enter just a single value per month, a conservative approach would be to enter the average daytime high for each month. Ideally, you should import a data file with hourly temperature data.