Comments (20)
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.
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):
from wttr.in.
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.
@srvanrell Very strange. Compare with http://wttr.in/Madrid
from wttr.in.
@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.
I'm against a moon. One weather condition - one notation. Sun, moon, stars - what else? No. Sun only.
from wttr.in.
@antmak I understand your arguments. But should we use "Sunny" or "Clear" in this case?
Probably, we should make it configurable
from wttr.in.
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.
@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.
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.
from wttr.in.
@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.
It could be an issue with the translations...
from wttr.in.
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.
+1 on Moon/stars for the night
from wttr.in.
+1 for current-phase moon + stars for night, as default. Night is by definition not sunny.
from wttr.in.
@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 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
from wttr.in.
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.
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)
- wrong IATA airport code location HOT 1
- wttr.in is down HOT 5
- Zip Codes, Municipalities, Provinces in Spain.
- Problems with coordinates in Ohio, USA
- wttr.in is down HOT 2
- wttr.in is down again HOT 2
- Site is down HOT 7
- Possible to change to use IP2Location.io API instead of IP2Location.com web service?
- Localisation issue HOT 2
- wttr.in is down HOT 1
- SSL certificate expired (again) HOT 1
- The SSl certificate has expired (again). HOT 3
- None of the installation methods work
- Feature request: Temperature range on custom output
- The cloud icon ☁️ (One-line output) does not displayed correctly in tmux
- Short on Queries for 9 months straight?
- wttr.in down HOT 5
- Yandex as a provider
- v2.wttr.in: broken markup: not enough width for emojis HOT 1
- wttr.in down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wttr.in.