Skip to content
/ fingr Public

Weather forcast / meteogram via finger. Rewrite of pyyrascii

License

Notifications You must be signed in to change notification settings

ways/fingr

Repository files navigation

Graph.no finger weather

Finger server, serving weather forcast

An ascii version of Yr.no's meteogram https://www.yr.no/en/forecast/graph/1-72837/Norway/Oslo/Oslo/Oslo

Usage

If you just want to use the service, type: finger oslo@graph.no (replace oslo with your city). Finger is supported on all major platforms (Windows, MacOS, Linux, FreeBSD, Android, ...).

If you don't have finger available, but have some standard shell tools, try one of the following:

echo oslo|nc graph.no 79
telnet graph.no 79 (and then type oslo)

If you want to run the server yourself, read on below.

Example output

$ finger oslo@graph.no

        -= Meteogram for norway/oslo/oslo/oslo =-                    
'C                                                                   Rain
9                                                         --------- 
8                                                   =-----          
7                                                                   
6                                                =--                
5                                             ---                   
4=--                                       ---                      
3                                                                   
2   ------                              ---                         
1         ---------               ------                            
0                  ---------                                        
    21 22 23 00 01 02 03 04 05 06_07_08_09_10_11_12_13_14_15_16_17_18 Hour

    N NE SE SE SE  S  S SE SE SE SE  S SW SW  S SW SW SW SW SW  S SE Wind dir.
    3  2  2  2  2  1  1  1  0  1  1  1  1  1  2  2  2  2  2  2  2  2 Wind(mps)

Legend left axis:   - Sunny   ^ Scattered   = Clouded   =V= Thunder   # Fog
Legend right axis:  | Rain    ! Sleet       * Snow

Techs

Thanks

Contributions from:

Server install or running locally

User docker compose:

  • docker compose up

Or:

  • Start redis: docker run -it --rm --network host redis
  • Start fingr.py

If you don't see real IPs in the log, you may need to set this in /etc/docker/daemon.json:

{
    "userland-proxy": false
}

Testing

- create a venv and install tox
- Run `tox`

More

See legacy.txt for the transition from pyyrascii to this.

TODO

  • Return error when no location found.
  • Merge read_denylist, read_motdlist.
  • Set default dirs for configs.
  • Mount configs in docker compose file.

About

Weather forcast / meteogram via finger. Rewrite of pyyrascii

Resources

License

Stars

Watchers

Forks

Packages