[feature] added example of usage xively in a loop