Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

Commit e47501f

Browse files
author
Lars Falk-Petersen
committed
readme
1 parent 59e0f4c commit e47501f

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
# About
1+
# PyYrASCII
2+
3+
## About
24

35
An ASCII version of http://www.yr.no/sted/Norge/Oslo/Oslo/Oslo/time_for_time.html. Created to be run by a finger server.
46

57
## Usage
68

79
The service can be used in the following ways:
10+
811
* `finger [email protected]` - norwegian city name
912
* `finger [email protected]` - norwegian postal code
1013
* `finger [email protected]` - international city name. These are not hourly. Only data for every 6 hours available.
@@ -18,13 +21,12 @@ The service can be used in the following ways:
1821

1922
* Finger is supported on all major platforms (Windows, OS X, Linux, FreeBSD, Android, ...). Open up your terminal (or cmd.exe on Windows).
2023
* If you don't have finger available, but have some standard shell tools, try one of the following:
21-
* `echo oslo|nc graph.no 79`
22-
* `telnet graph.no 79` (and then type oslo)
23-
24+
* `echo oslo|nc graph.no 79`
25+
* `telnet graph.no 79` (and then type oslo)
2426

2527
## Example
2628

27-
```
29+
```bash
2830
2931
-= Meteogram for norway/oslo/oslo/oslo =-
3032
'C Rain (mm)
@@ -51,11 +53,11 @@ and the NRK. Try "finger @graph.no" for more info.
5153

5254
For the U.S., thanks to a comment at http://osxdaily.com/2016/02/18/get-weather-command-line-finger-graph/:
5355

54-
```
56+
```bash
5557
finger [email protected] | sed "s/'C/'F/" | sed 's/^ \?-\?[0-9]\+/{\0{/' | awk -F{ '{if($2 != "") printf "%3i%s\n", $2*1.8+32, $3; else print $1;}'
5658

57-
-= Meteogram for norway/oslo/oslo/oslo =-
58-
'F Rain (mm)
59+
-= Meteogram for norway/oslo/oslo/oslo =-
60+
'F Rain (mm)
5961
77
6062
73
6163
69 ---
@@ -67,7 +69,7 @@ finger [email protected] | sed "s/'C/'F/" | sed 's/^ \?-\?[0-9]\+/{\0{/' | awk -F{ '
6769
9 =-----
6870
7
6971
20 21 22 23 00 01 02 03 04 05 06_07_08_09_10_11_12_13_14_15_16_17 Hour
70-
72+
7173
SE SE SE SE SE SE SE SE NW NW NW NW NW SW SW SW SW SW SW SW SW SW Wind dir.
7274
2 2 1 2 2 2 2 2 0 1 0 1 1 1 2 2 2 1 4 4 4 5 Wind(mps)
7375
@@ -88,19 +90,19 @@ Thanks to selbekk and karnival for pull requests.
8890
* Please checkout https://github.com/ways/pyofflinefilecache to project directory.
8991
* debian packages: `python-mysqldb`
9092
91-
9293
## TODO
9394
9495
* BUG: o: doesn't show full location name
9596
* BUG: Too tall for windows default window size.
9697
* BUG: Temperature sometimes runs of scale in not-hourly mode.
9798
* BUG: Uncertain-rain overwrites the out-of-scale value on top.
9899
* FEATURE: Add arguments to get weather in different format:
99-
** i:0458 to get an iconic view. ("Fullscreen" or small?)
100+
* i:0458 to get an iconic view. ("Fullscreen" or small?)
100101
* IMPROVEMENT: improve 0458%3
101102
* IMPROVEMENT: add text to o: ( "cloudy", "thunder", etc).
102103
* FEATURE: Include warnings (obsforecast). Example:
103-
```
104+
105+
```xml
104106
<forecast>
105107
<text>
106108
<location name="Oslo">

0 commit comments

Comments
 (0)