Comments (5)
I just realised that I probably created an issue in the wrong repository: chubin/wttr.in#65
Basically, I wanted different table sizes depending on the width of the terminal; I'll just copy-paste what I wrote in the other thread, since I believe it is relevant:
WIDTH >= 125
:
┌─────────────┐
┌──────────────────────────────┬───────────────────────┤ Wed 25. Jan ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ \ / Sunny │ \ / Sunny │ Cloudy │ .-. Light drizzle │
│ .-. 10 – 11 °C │ .-. 15 °C │ .--. 11 – 12 °C │ ( ). 10 – 12 °C │
│ ― ( ) ― ↖ 7 – 9 km/h │ ― ( ) ― ↑ 13 – 14 km/h │ .-( ). ↑ 14 – 22 km/h │ (___(__) ↑ 15 – 24 km/h │
│ `-’ 10 km │ `-’ 10 km │ (___.__)__) 10 km │ ‘ ‘ ‘ ‘ 2 km │
│ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.5 mm | 95% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
63 <= WIDTH < 125
:
┌─────────────┐
┌───────────────────────┤ Wed 25. Jan ├───────────────────────┐
│ Morning └──────┬──────┘ Noon │
├──────────────────────────────┼──────────────────────────────┤
│ \ / Sunny │ \ / Sunny │
│ .-. 10 – 11 °C │ .-. 15 °C │
│ ― ( ) ― ↖ 7 – 9 km/h │ ― ( ) ― ↑ 13 – 14 km/h │
│ `-’ 10 km │ `-’ 10 km │
│ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │
├──────────────────────────────┼──────────────────────────────┤
│ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┤
│ Cloudy │ .-. Light drizzle │
│ .--. 11 – 12 °C │ ( ). 10 – 12 °C │
│ .-( ). ↑ 14 – 22 km/h │ (___(__) ↑ 15 – 24 km/h │
│ (___.__)__) 10 km │ ‘ ‘ ‘ ‘ 2 km │
│ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.5 mm | 95% │
└──────────────────────────────┴──────────────────────────────┘
WIDTH < 63
(only looks good if WIDTH >= 32
):
┌─────────────┐
│ Wed 25. Jan │
├─────────────┴────────────────┐
│ Morning │
├──────────────────────────────┤
│ \ / Sunny │
│ .-. 10 – 11 °C │
│ ― ( ) ― ↖ 7 – 9 km/h │
│ `-’ 10 km │
│ / \ 0.0 mm | 0% │
├──────────────────────────────┤
│ Noon │
├──────────────────────────────┤
│ \ / Sunny │
│ .-. 15 °C │
│ ― ( ) ― ↑ 13 – 14 km/h │
│ `-’ 10 km │
│ / \ 0.0 mm | 0% │
├──────────────────────────────┤
│ Evening │
├──────────────────────────────┤
│ Cloudy │
│ .--. 11 – 12 °C │
│ .-( ). ↑ 14 – 22 km/h │
│ (___.__)__) 10 km │
│ 0.0 mm | 0% │
├──────────────────────────────┤
│ Night │
├──────────────────────────────┤
│ .-. Light drizzle │
│ ( ). 10 – 12 °C │
│ (___(__) ↑ 15 – 24 km/h │
│ ‘ ‘ ‘ ‘ 2 km │
│ ‘ ‘ ‘ ‘ 0.5 mm | 95% │
└──────────────────────────────┘
Note: I aligned the date in this last example to the left, but maybe try something else!
Keep up the good work!
from wego.
see issue #53
from wego.
Be patient, I'm halfway through finally fixing #1. It's just a little regression to fix, which should be done by christmas. Then you are free to build frontends to your liking, changing all the rendering stuff and achieve happiness and joy for everyone.
from wego.
That'd be great. Maybe I'd make a gnome toolbar extension based on it!
from wego.
Just another thanks for the great job @schachmat, and a
from wego.
Related Issues (20)
- Better representation for Lightning in ASCII Art. HOT 6
- Weird table indentation HOT 2
- Expose formatCond method in frontend interface
- Feature request: Can you add UV index into the result HOT 1
- can't find backend 'openweathermap' HOT 4
- Dark Sky API being shut down after 2021 HOT 4
- [Feature Request] ASCII Frontend for Radar View HOT 1
- Yr HOT 1
- Question/Enhancement: Please add local build instructions HOT 1
- Bug/Enhancement: Visibility, Sunrise, Sunset data returned by OpenWeatherMap is not captured in by json frontend
- API on OWM not working
- Go module support HOT 1
- Can't install. HOT 2
- "Could not find selected backend 'forecast.io'?" HOT 4
- please add backend `www.weatherapi.com`
- Move config file default path to os.UserConfigDir()
- Debian Support? HOT 2
- wegorc file does not generate HOT 4
- Is it possible to change the color settings?
- Denser ASCII graph frontend like ways/fingr project
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 wego.