The best time of year to visit most of Indonesia is April to October.
There tends to be more rain in the other months, although there is never a bad time to travel as these are usually short, tropical downpours and the rains bring benefits as the countryside comes to life with lush vegetation. Indonesia is generally warm throughout the year, although nights can be cold in the highlands.