I can use the timestamps to define the start and end for the variables but, it sets up a problem. It seems like I need to GET all the values of a variable in order to determine the correct timestamp for the dates I want to focus on. Would it be possible to define the start and end arguments using dates? That way, Ubidots would just send all the datapoints from those dates inclusive just like it does on the webpage when you are looking at the variable. Thanks for your help. Chip
In Ubidots you can’t use a format date for define the start and end arguments but you can convert a date to miliseconds.
In javascript you can use the method .getTime(), example:
var start_date = (new Date()).getTime()
or
var start_date = new Date();
console.log(start_date.getTime());
>>>> 1444323660649
Best,
woakas,
Thank you. For some reason, I thought the start and end timestamps needed to be exactly equal to the timestamps of the first and last datapoints in the series. I can see now this is not the case and the date selection is working! Brilliant.
Chip