Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude filter #54

Open
ole-tange opened this issue May 18, 2021 · 2 comments
Open

Exclude filter #54

ole-tange opened this issue May 18, 2021 · 2 comments

Comments

@ole-tange
Copy link

I want to do my 2h laundry:

  • within the next 24h
  • when the electricity is green
  • but not while people are asleep

So on top of the "x hour" filter within the next "y hours", I want a way to exclude an interval. For me it would be 21-07.

Maybe simply change the "within the next y hours" to a double ended slider, so I could slide the start and end time of the interval?

@fuglede
Copy link
Collaborator

fuglede commented May 19, 2021

I like the double ended slider idea! It has been a priority to keep the overview as clean as possible (so as to scare as few people away as possible), so it would have to somehow be done without making the entire thing too complex. If you already had a concrete picture in mind, a doodle might be a good starting point!

And it would have to be mobile-friendly.

One thing that's sort of close already is the first plot below the overview which is the one I'll often use myself. You can drag or scroll on the lower plot to increase the size of the forecast to get 24h on the top one, then eyeball it to find the best two. It's a little finicky compared to the dropdowns though. One option could perhaps be to simply illustrate the best period directly on that plot.

image

Since you're a technically minded person, if you didn't already dig into the details, perhaps you'll find use in the API already in place as it's a bit more flexible than the frontend; for instance, to get the best 2 hours within the next 9, you would use https://grønstrøm.nu/api/v1/greenest-period/2/9

@ole-tange
Copy link
Author

Something like this:

De grønneste ===[3]=== timer
inden for [14:00]===========[14:00]

This is run at 14:00 (i.e. now=14:00).

The [] are 3 sliders. Slider1 goes from 1..6. Slider2 goes from now..slider3. Slider3 goes from slider2..now+24h.

Defaults:

slider1 = 3 hours (My washing machine takes 2 hours. My dishwasher takes 3 hours. So I would have to change a 1 hour default every time).
slider2 = now
slider3 = now+24h

Sliders are touchscreen friendly, and reasonably OK on a computer.

It is easy to understand, but you might have to slide thrice: If the best time is during the night, I first need to slide slider3 to 18:00 to find the best time today. Then I need to slide slider3 back to now+24h and slide slider2 to 08:00 to find the best time tomorrow.

I agree that it might be even better to show the range in the plot, but I also think that might be harder to make touchscreen friendly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants