wttr.in icon indicating copy to clipboard operation
wttr.in copied to clipboard

WTTR.IN Color Scheme

Open skyvalleyhigherpraise opened this issue 3 years ago • 15 comments

The color scheme is too dark on Kindle Paperwhite devices. Possible to make lighter: color scheme selection on the site?

skyvalleyhigherpraise avatar Mar 15 '21 05:03 skyvalleyhigherpraise

@skyvalleyhigherpraise commented on Mar 15, 2021, 8:34 AM GMT+3:30:

The color scheme is too dark on Kindle Paperwhite devices. Possible to make lighter: color scheme selection on the site?

I use some simple filters to overlay the image on my desktop. Perhaps you can do the same?

        curl 'wttr.in/Sabzevar,Iran_transparency=255_qp0.png' > "$t" && {
            # dark: plus > negate > screen; overlay, lighten, diff, add are very bad
            convert "$f" \( "$t" -channel RGB -resize 500x \) -gravity east -geometry +170+0 -compose plus -composite "$t" && f="$t"

The result: image

NightMachinery avatar Mar 15 '21 12:03 NightMachinery

The "Experimental Browser" on Kindle Paperwhite is limited. Filters and overlay not possible on the browser.

skyvalleyhigherpraise avatar Mar 15 '21 15:03 skyvalleyhigherpraise

The "Experimental Browser" on Kindle Paperwhite is limited. Filters and overlay not possible on the browser.

I suggest you just download the HTML version, use pandoc to convert it to EPUB, use ebook-convert from Calibre to convert it to MOBI, then send it every day at 5AM to your Kindle via email. It would work better than using the monster that is Kindle’s browser. (Shame on Amazon. They deliberately keep their users chained to increase their own sales.)

You can change the colorscheme of the downloaded HTML programmatically, though I am not sure how difficult/brittle this would be.

NightMachinery avatar Mar 15 '21 15:03 NightMachinery

I think it is an interesting use-case, and I would be gladly add support for Kindle Paperwhite to wttr.in. I think we have a lot of Kindle owners among wttr.in users, and of course they will be happy to know that we support their e-book readers now.

My question:

  1. We can convert the report in any format on the server side. What format is ideal for paper white?
  2. Is it a reall approach with the emails, or is it a joke? I mean, if it is not a joke, wttr.in even could mail it automatically if needed.

Many users already many times proposed to add something like a SMTP interface to wttr.in, as well as subscription-style notification via various interfaces. So perhaps we should add it indeed, if it will help us to support Kindle.

@NightMachinary if you need it, wttr.in supports this too: https://fa.wttr.in

chubin avatar Mar 15 '21 18:03 chubin

@chubin I have seen exactly one kindle-friendly website out there, whose URL I don’t remember; They were some sort of subscription-based rss reader. I remember the demo surprised me pleasantly, so I guess it’s possible to do this in the browser itself for wttr (which is not that complex or interactive, fortunately). You want to have a very minimal, black and white (with white being the majority) UI that doesn’t scroll (use buttons to switch pages if needed).

The email thing is very much serious :D There are lots of services that send stuff to people’s Kindles via email. There is one hurdle though: either the customer must add the server’s address as a trusted address, or the server should spoof a trusted address. Since the server does not know trusted addresses of people, they would need to give one trusted email address to the server at minimum.

The email approach has its own drawbacks: It needs to be periodic (presumably daily), and so it is a bit stale compared to seeing the latest results. The sent items will also clutter Kindle’s library (a much more annoying disadvantage).

PS: That Persian localization displays wrongly; The letters are inverted in the headers (i.e., the right-to-left ordering has not been respected). E.g., it displays رهظ instead of ظهر . This problem also existed when I downloaded a PNG that used a Persian name for its location.

NightMachinery avatar Mar 15 '21 19:03 NightMachinery

That Persian localization displays wrongly; The letters are inverted in the headers

Are you talking about the browser or the terminal implementation? I think in terminal it is correct, and that is the browser, who spoils the result.

chubin avatar Mar 15 '21 19:03 chubin

@skyvalleyhigherpraise Patrick, can you please share a photo of your kindle with wttr.in opened it it, so that we would understand what we could improve?

chubin avatar Mar 15 '21 19:03 chubin

@chubin Screenshot taken on the KIndle Paperwhite and photo of the screen both attached. PXL_20210315_204921806_3 screenshot_2021_03_15T13_42_47-0700

skyvalleyhigherpraise avatar Mar 15 '21 21:03 skyvalleyhigherpraise

@skyvalleyhigherpraise I've got an idea; maybe you should just try the inverted mode? Have you tried it? https://wttr.in/?I

chubin avatar Apr 04 '21 11:04 chubin

@chubin Screenshot taken on the KIndle Paperwhite and photo of the screen both attached. Just tried the inverted mode and it's too light. There needs to be a medium for it to display correctly on the device. Kindle Paperwhite Inverted Device Picture Kindle Paperwhite Inverted Screenshot

skyvalleyhigherpraise avatar Apr 05 '21 07:04 skyvalleyhigherpraise

In my opinion the white version looks better, but the font should be darker.

Could you please check these ones:

  • http://wttr.in/files/bwtest0.html
  • http://wttr.in/files/bwtest1.html

?

chubin avatar Apr 05 '21 10:04 chubin

@chubin Still a bit too light, but slightly better. bwtest0 Screenshot bwtest0 photo bwtest1 Screenshot bwtest1 photo

skyvalleyhigherpraise avatar Apr 07 '21 17:04 skyvalleyhigherpraise

Could you please check this one too: http://wttr.in/files/bwtest2.html (bold)

If it will not help either, maybe we should try to play with the image size:

http://wttr.in/files/bwtest3.html (narrow table)

chubin avatar Apr 23 '21 16:04 chubin

Related discussion:

https://forum.xda-developers.com/t/nst-g-r-i-p-weatherace-for-the-nook-simple-touch.3911928/page-4#post-84902019

chubin avatar May 01 '21 11:05 chubin

Hi Igor,

Here are the bw3 screenshots.


Patrick Berg

Skyvalley Higher Praise:

http://skyvalleyhigherpraise.com/

http://radio.skyvalleyhigherpraise.com/ https://twitter.com/skyvalleyhgrprz http://church.skyvalleyhigherpraise.com "but if you return to Me and obey My mitzvot, and do them, then even if your dispersed people are at the ends of the heavens, I will gather them from there, and bring them back to the place where I have chosen for My Name to dwell." Nehemiah 1:9 https://www.biblegateway.com/passage/?search=Nehemiah%201%3A4-11&version=TLV;NIV

On Fri, Apr 23, 2021 at 9:42 AM Igor Chubin @.***> wrote:

Could you please check this one too: http://wttr.in/files/bwtest2.html (bold)

If it will not help either, maybe we should try to play with the image size:

http://wttr.in/files/bwtest3.html (narrow table)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chubin/wttr.in/issues/590#issuecomment-825781110, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAF73EU52FVZBAS442Z4HTTKGPQPANCNFSM4ZF2HBVA .

skyvalleyhigherpraise avatar Jul 15 '21 22:07 skyvalleyhigherpraise

Hi, I just set wttr.in up to render on a kindle, saw this thread, and had a couple of other suggestions. For reference, here's what I'm using to render the png currently:

wget https://v2.wttr.in/Denver_background=FFFFFF.png?FTI -O "raw.${output}"
convert \( "raw.${output}" -background white -gravity center -extent 600x800 \) "${output}"

Thing that would be useful:

  • bold font. the current thin font is kind of hard to read.
  • pure black+white image, not greyscale. I tried a "hack-bold" where I used convert's -threshold XX% argument, but the output always looked blocky and weird.
  • specify the resolution, and center the image. the kindle doesn't do well (i.e. doesn't screen blank) if you give it an image that's not big enough. it's easy enough to grow the image with convert, as above, though.

Anyway, this is good enough for now. Thanks for the service! Here's a physical picture of what my kindle looks like. PXL_20221120_193625798

tych0 avatar Nov 20 '22 19:11 tych0