TP4056 - Li-lon Battery Charger temperature problem
The data sheet does have guidance: -


  TEMP(Pin 1) :Temperature Sense Input Connecting TEMP pin to NTC
  thermistor’s output in Lithium ion battery pack. If TEMP pin’s voltage
  is below 45% or above 80% of supply voltage VIN for more than 0.15S,
  this means that battery’s temperature is too high or too low, charging
  is suspended. The temperature sense function can be disabled by
  grounding the TEMP pin.


So, given that your NTC is defined by the battery (hence you should know its value) you find values for R1 and R2 that tweak the bias point so that at mid-nominal battery temperature, you produce a voltage that is centred between 45% and 80% of the power rail.