support both wattdepot2 and wattdepot3 http apis