A rough guide to the seasons of Indonesia is as follows:
October to February (Monsoon rainy season).
March to September (Drier and hotter season).
Try to avoid the monsoon season if possible because the rain is very heavy and the ocean waves can be very strong.
(Information transferred from my previous VT Indonesia page)