@buran, thanks. hopefully this helps. I put a * for some of the items.
import time import samsara from samsara.rest import ApiException from pprint import pprint import time, datetime # group_id = * #Date and time (your time zone): Tuesday, June 11, 2019 1:00:00 PM GMT-04:00 start_ms = 1560333600000 #Date and time (your time zone): Tuesday, June 11, 2019 6:00:00 PM GMT-04:00 end_ms = 1560344400000 #3600000 will return data at hour intervals step_ms = 3600000 series = [{"field":"probeTemperature","widget_id":212014918280113}] # api_instance = samsara.DefaultApi() access_token = '#' # str | Samsara API access token. history_param = samsara.HistoryParam(group_id, start_ms, end_ms, step_ms, series) # HistoryParam | Group ID, time range and resolution, and list of sensor ID, field pairs to query. #print(history_param) try: # /sensors/history api_response = api_instance.get_sensors_history(access_token, history_param) pprint(api_response)