So I have a filter that gets the data from the last week that device has received data:
const temp_data_PIR = await device.getData({
variable: ‘temperature’,
end_date: ‘1 week’
});
However, I need a filter that retrieves that from the current week in real time and if no data obtained from this week then this filter should return null.
Thanks!
Daniel