I have a Tinydb where the tags are the current date and previous days. Format is Mo D, yyyy.
I want to extract the values from todays date and each value for the previous ‘N’ days.
How can I make a loop to do that? Many thanks.
I have a Tinydb where the tags are the current date and previous days. Format is Mo D, yyyy.
I want to extract the values from todays date and each value for the previous ‘N’ days.
How can I make a loop to do that? Many thanks.
Pick a tag format more amenable to date calculations, like the milliseconds from 1970 representation of dates.
Pull in the Clock component from the Sensors drawer in the Designer to get the conversion blocks.
Loop over the list of tags and values you get from TinyDB, and filter it by date range.