-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add option for smaller output (for 80x24) #151
Comments
Yes, you are right, but as a temporary workaround you can use ?2n:
|
Try this:
It exactly fits the screen (80x25) |
it's perfect ;) |
I would say it is a perfect workaround, but what would be really perfect, if we could get 4x4 weather table that fits 80x25 screen and could be activated with a single option |
@chubin, you may be interested in this: |
I know about less, but similar to grep, ultimately I can't use it, because
the place I wanted to run this doesn't have any OS on it, just an
equivalent of curl. If it could be an extra flag, that would be ideal - for
now, if course, the solution is to do those text transforms in C before
displaying it
…On Oct 5, 2017 1:20 AM, "Agustin Ferrari" ***@***.***> wrote:
@chubin <https://github.com/chubin>, you may be interested in this:
curl wttr.in | less -S
This way the long lines are truncated and the text can be moved using the
arrows keys.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#151 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB8lHsti7oaIcvYA8x8jGDoqrYYt4k8sks5spBKmgaJpZM4PpmYM>
.
|
I'm currently porting wttr.in to an embedded platform which have a 80*68 terminal but does no binutils. |
@yne Just specify
Does it work for you? |
@chubin |
@yne: That's really cool!!! Could you please a photo of it and post it here? |
Photo:Screencap:Sorry for derailing this thread |
@yne Thank you very much! Overcast looks strange. Do you know why? |
no Idea, maybe one of the CSI code was misunderstood, I'll investigate later :) |
@yne Have you tried rate.sx by the way already? Maybe you don't need this info on PSvita, but it anyway cool (and I'm curious, if the sparks will be displayed correclty). (I noted that some unicode characters are displayed wrong on your shot) |
we're getting a bit derailed here, but I can help explain what's going on there. This page https://www.in-ulm.de/~mascheck/various/alternate_charset/ has some explanation, it's a little confusing. ESC(0 switches to codepage 0, which is: The normal codepage is "B". Some more details - https://espterm.github.io/help.html - if you open the Alternate Character Sets section - note that pages 1, 2 and 3 listed there are not standard. |
@MightyPork Thanks for clearing that up, and for your patience. |
I think a compact output option would be great! I am imagining something like this:
Is this format similar to what you had in mind @MightyPork @chubin? For now, I just use a short python script which creates this summary by reformatting stdout from wttr.in (without colors, |
Not sure if what @joelostblom asked for is being worked on/done. But I vote for that. |
Third this, this is exactly what I was looking for. I used your script @joelostblom but had to sub out "-" for ".." which they apparent did at some point. |
@kyprifog At what place have you substituted |
I was referring to the python parsing script. It was assuming dates ranges were with - but they were with ... |
@kyprifog Ah, ok; I think we shoult adopt the output format as the script, and make it available at |
Just jumping in to say I also want this feature. I want to use wttr on small embedded displays that might only be 70x25 or something like that. |
@nickajeglin Sure! Have you seen v2.wttr.in by the way? What do you think about it? |
V2 is awesome! I am kind of obsessed with meteograms. I have a widget on my phone right now that grabs a custom image from NOAA every 4 hours. It's apparently a php backend and you can pull charts for lots of different weather variables and locations just by changing the arguments: https://preview.tinyurl.com/ycbb94zv (Sorry for the tinyurl, GitHub wouldn't let me link the original huge one) |
Wow, it is a cool meteogram; we need something like this in the console! |
Maybe I should open a separate issue for this request, but it goes sort of along with this. The "n" option outputs noon and night. Can we get a similar option to get any 3 divisions? I'm looking for the ability to select morning-noon-night or morning-noon-evening |
@nickajeglin It's a good idea, something like |
w3m could be workaround in terminal, since it can scroll contents. But it fails to show colors (despite receiving html) and png - only basic format and only mono. There could be URL options for expected window size.
Edit: With options for output size some above options could be tuned dynamically (at least try to fit). |
actually, The real solution would be to pass the terminal width automatically to the server I think, we have a lot of different options and opinions, how exactly the narrow view should |
For the people who are too lazy to read the entire issue, you can do curl wttr.in/(location)?0n to get only the weather report for today. Adding 1 to the number right before n will add the next day to the weather report. |
I would like to propose a slim-version. I really care about evening and morning, but it doesn't work on my portrait orientation monitor. It works with the option n, which limits to noon and night, but I think there is a middle ground: Just stack one day into two rows. And whilst we are it, make an ultra-slim version, which stacks all 4 into one column...
|
@FrostKiwi Wow! That's a good idea, accepted |
It would be nice to have an option to get a more compact output (eg. with icon only for the current weather)
This is what it looks like on a 80x24 screen:
The text was updated successfully, but these errors were encountered: