Coder Social home page Coder Social logo

Sunny night? about wttr.in HOT 20 OPEN

chubin avatar chubin commented on May 6, 2024 10
Sunny night?

from wttr.in.

Comments (20)

jonsafari avatar jonsafari commented on May 6, 2024 4

The intuitive thing is to use "Clear" for night and show the current phase of the moon. Everyone eventually notices "Sunny Night" and thinks "huh?"

from wttr.in.

msikma avatar msikma commented on May 6, 2024 4

This is a bit old discussion, but I'm wondering if maybe it can be brought up again? I would love to have a moon in the output.

It's a good idea to have the phase of the moon in the output as well, although that also means we'd need to determine the angle of the shadow using the user's latitude.

Some tests I've done (I tried to add a moon surface because it makes the shadow more visible):

Screenshot 2019-05-25 at 23 52 59

from wttr.in.

dhouck avatar dhouck commented on May 6, 2024 3

What if I ask for the weather in Svalbard, where the night often is sunny?

What if it’s partly cloudy; do we need to draw a cloud ASCII art over every potential moon phase?

from wttr.in.

jonsafari avatar jonsafari commented on May 6, 2024 1

@srvanrell Very strange. Compare with http://wttr.in/Madrid

from wttr.in.

chubin avatar chubin commented on May 6, 2024 1

@msikma Michiel (and please excuse for the typo in my last message),
I think that the new moons look better the original one (at least the first one of the two).
I think if we would combine them together it will be just perfect.

@srvanrell Sebastián, actually the pyphoon project (https://github.com/chubin/pyphoon) supports the size of the moon, check it out; but I suppose the range there is not big enough. The smallest moon is still too big.

I think I will make an experimental output format with moon based on the artwork of @msikma, so you could check it live.

from wttr.in.

antmak avatar antmak commented on May 6, 2024

I'm against a moon. One weather condition - one notation. Sun, moon, stars - what else? No. Sun only.

from wttr.in.

chubin avatar chubin commented on May 6, 2024

@antmak I understand your arguments. But should we use "Sunny" or "Clear" in this case?
Probably, we should make it configurable

from wttr.in.

srvanrell avatar srvanrell commented on May 6, 2024

I've just realized that the name already makes a distinction, "Clear" is different from "Sunny". Why should that distinction be lost in the picture?

from wttr.in.

jonsafari avatar jonsafari commented on May 6, 2024

@srvanrell For current conditions it uses "Clear" at night, and for the forecast it uses "Sunny" at night. In both cases a sun picture is used.

from wttr.in.

srvanrell avatar srvanrell commented on May 6, 2024

I don't remember what it uses for current conditions but I'm pretty sure that it uses "Clear" at night for the forecast.

from wttr.in.

jonsafari avatar jonsafari commented on May 6, 2024

@srvanrell

sunny_night

from wttr.in.

srvanrell avatar srvanrell commented on May 6, 2024

@jonsafari Well, it seems that depends on the user, lol.

I'm not trying to start a discussion. Check if you see "Sunny" with this link http://wttr.in/Santa_Fe?lang=en

from wttr.in.

m1guelpf avatar m1guelpf commented on May 6, 2024

It could be an issue with the translations...

from wttr.in.

chubin avatar chubin commented on May 6, 2024

It's not a translation issue, it is a datasource/caching issue. We probably should force either sunny or clear here.

@srvanrell @jonsafari @m1guelpf @antmak
What do you think about an additional option for the Moon/stars for the night (Sun by default)
(or conversely)

from wttr.in.

srvanrell avatar srvanrell commented on May 6, 2024

+1 on Moon/stars for the night

from wttr.in.

jonsafari avatar jonsafari commented on May 6, 2024

+1 for current-phase moon + stars for night, as default. Night is by definition not sunny.

from wttr.in.

chubin avatar chubin commented on May 6, 2024

@msikma Wow, Michel! Congratulations, it looks freaking awesome!!

Probably we should add more shades of gray (almost all modern terminal support them anyway)
to make it more voluminous, and maybe replace the ---- at the top with - ' ' - and with -__- at the bottom, to make it more round ans so hexagonal (but I am not sure).

What you say?

Regarding the user latitude, in my opinion shadow difference is infinitesimal in this case, and it can't be displayed. The only important data is whether the user is in the northern hemisphere or in the southern, because in this case the difference can become visible.

from wttr.in.

msikma avatar msikma commented on May 6, 2024

@msikma Wow, Michel! Congratulations, it looks freaking awesome!!

Thank you, but it's Michiel 😅

I did some more experimenting, but I don't think it looks any better than before. It's starting to look too complicated. Here's the link to my test script: https://gist.github.com/msikma/e253da8f89f2d4a9748aa5aa85d2baa5

Screen Shot 2019-05-27 at 00 12 04

from wttr.in.

srvanrell avatar srvanrell commented on May 6, 2024

Great job! @msikma That shadow looks absolutely fantastic!

+1 for the moon and +10 for the shadow

What about the size of the moon? Should it be similar to clouds or the sun?

An ascii version of the phases of the moon can be found in https://www.oocities.org/spunk1111/celestal.htm . Maybe it helps to create further designs.

from wttr.in.

msikma avatar msikma commented on May 6, 2024

I don't think the first of the two new ones looks bad, but the extra height makes it look a bit too oval. Anyway I'm sure we'll figure that out, it's just a matter of some fine tuning. 🙂

Looking forward to seeing a first test in the program!

from wttr.in.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.