Feed Filter Bug

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
iethis
 
Posts: 2
Joined: Tue Jul 07, 2020 5:50 am

Feed Filter Bug

Post by iethis »

I have seen this buried in some other topic and reported by a few people and then the subject changed....

Using the date pickers presented on a feed to filter by date range will cause a JS error which leaves the user with a black screen.

The date pickers are (not well supported) rendered by the browser (chrome) when the input type is datetime-local. The key there being local. The rest of the JS is hard coded to a en_us locale.... So I would expect anyone trying to use these filters with a locale that uses a non US format will have this issue.

Needs to retrieve locale and then use code for that locale.

Or, just give us the option to use text input and we can put in the dates in a specified format.

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Feed Filter Bug

Post by brubell »

Using the date pickers presented on a feed to filter by date range will cause a JS error which leaves the user with a black screen.
Could you please post a screenshot of this error?

User avatar
iethis
 
Posts: 2
Joined: Tue Jul 07, 2020 5:50 am

Re: Feed Filter Bug

Post by iethis »

brubell wrote:Could you please post a screenshot of this error?
sure.
Clipboard01.jpg
Clipboard01.jpg (5.32 KiB) Viewed 1048 times
:D

I guess the devtools output is more useful...
2.jpg
2.jpg (26.19 KiB) Viewed 1048 times

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Feed Filter Bug

Post by brubell »

Ok, thanks! I've filed a bug report internally for this issue and will update the topic when I have an update.

User avatar
alexglowee
 
Posts: 5
Joined: Thu Mar 25, 2021 7:22 am

Re: Feed Filter Bug

Post by alexglowee »

Hi,

Is there an update ? I have exactly the same problem.

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Feed Filter Bug

Post by brubell »

alexglowee wrote:Hi,

Is there an update ? I have exactly the same problem.
No update or ETA, sorry!

User avatar
alexglowee
 
Posts: 5
Joined: Thu Mar 25, 2021 7:22 am

Re: Feed Filter Bug

Post by alexglowee »

Hi,

So, currently, there isn't a method to filter the feed?

I wanted to pay for an IO+ account but this option is very important for us :/

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Feed Filter Bug

Post by brubell »

alexglowee wrote:Hi,

So, currently, there isn't a method to filter the feed?

I wanted to pay for an IO+ account but this option is very important for us :/
Not from the website, however, you can download the feed's data as .csv and filter in excel, or as .json.

User avatar
alexglowee
 
Posts: 5
Joined: Thu Mar 25, 2021 7:22 am

Re: Feed Filter Bug

Post by alexglowee »

Of course but if a sensor feed is active 24h/24 and 7D/7 good luck to filter your data to have for example only one hour.

I have already tested this solution and Excel is very slow when there is too much data...

User avatar
adruino
 
Posts: 15
Joined: Wed Aug 20, 2014 8:56 am

Re: Feed Filter Bug

Post by adruino »

Just giving this a bump.
I would like to filter my data and eliminate on spurious value in a few data feeds.
I updated my device firmware and introduced a bug that sent a few obviously bad values which I'd like to delete from the feed.

-Adrian

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Feed Filter Bug

Post by jwcooper »

We've deployed a change to temporarily remove datetime-local from those inputs. For now, you can edit the date and time as iso8601 date format, which is the default with how those forms should populate.

Eventually, we'll get a proper date widget on there, but wanted to just get a fix out there.

User avatar
martyburns
 
Posts: 1
Joined: Thu Jun 10, 2021 1:51 am

Re: Feed Filter Bug

Post by martyburns »

Hi, I am still getting this error, can you please give me an example date format for me to enter?

I have tried yyyy-mm-dd but no luck.

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: Feed Filter Bug

Post by jwcooper »

It should default to the proper format when you initially click the Filter button. Example here: 2021-08-02T13:06

Make sure to include the time.

It's on our list to add a nicer date picker to that Filter option as well.

User avatar
kevinjwalters
 
Posts: 1025
Joined: Sun Oct 01, 2017 3:15 pm

Re: Feed Filter Bug

Post by kevinjwalters »

I also get the black screen too if I try to filter the feed data even if I leave the values as they appear on the filter. I have a public feed which this can be seen on https://io.adafruit.com/kevinjwalters/f ... 0-standard - just click on Filter then click Apply.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”