Skip to content
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

Denser ASCII graph frontend like ways/fingr project #165

Open
poetaman opened this issue Mar 14, 2023 · 0 comments
Open

Denser ASCII graph frontend like ways/fingr project #165

poetaman opened this issue Mar 14, 2023 · 0 comments

Comments

@poetaman
Copy link

poetaman commented Mar 14, 2023

It would be nice to have a denser ASCII graph front end like ways/fingr graph.no project.

% echo "San Francisco, California" | nc graph.no 79
          -= Meteogram for San Francisco, California, United States =-
 'C                                                                   Rain (mm)
 17
 16
 15
 14                                         |               ======    7 mm
 13===                                      |      =========      === 6 mm
 12   ======================================|==|===                   5 mm
 11                                         |  |                      4 mm
 10                                |  |  |  |  |           |          3 mm
  9                                |  |  |  |  |           |          2 mm
  8  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |    1 mm
   _18_19 20 21 22 23 14/03 02 03 04 05 06 07_08_09_10_11_12_13_14_15 Hour

     S  S  S  S  S  S SE SE SE SE SE SE SE SE SE SE  S  S  S  S  S  S Wind dir.
     7  7  7  6  6  5  5  5  6  6  6  6  6  7 10 12 14 14 14 14 15 15 Wind(m/s)

Legend left axis:   - Sunny   ^ Scattered   = Clouded   =V= Thunder   # Fog
Legend right axis:  | Rain    ! Sleet       * Snow
[Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK.]

Screenshot-1:
Screenshot 2023-03-13 at 6 47 10 PM

Screenshot-2:
68747470733a2f2f30702e6e6f2f5f696d616765732f66696e676572332e706e67

To learn more options provided by ways/fingr graph.no. Try using with finger:

% finger @graph.no
% finger @graph.no
[graph.no]
Trying 178.255.144.27...
Weather via finger, graph.no

* Code: https://github.com/ways/fingr/
* https://nominatim.org/ is used for location lookup.
* https://www.yr.no/ is used for weather data.
* Hosted by Copyleft Solutions AS: https://copyleft.no/
* Contact: finger@falkp.no

Usage:
    finger oslo@graph.no

Using coordinates:
    finger 59.1,10.1@graph.no

Using imperial units:
    finger ^oslo@graph.no

Ask for wider output, longer forecast (~<screen width>):
    finger oslo~200@graph.no

Specify another location when names conflict:
    finger "oslo, united states"@graph.no

Display "wind chill" / "feels like" temperature:
    finger ¤oslo@graph.no

No graph, just a one-line forecast (needs improvement):
    finger o:oslo@graph.no

Hammering will get you blacklisted. Remember the data doesn't change more than once an hour.

News:
* Launched in 2012
* 2021-05: total rewrite due to API changes. Much better location searching, proper hour-by-hour for most of the world.
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant