1
- # About
1
+ # PyYrASCII
2
+
3
+ ## About
2
4
3
5
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.
4
6
5
7
## Usage
6
8
7
9
The service can be used in the following ways:
10
+
8
11
* ` finger [email protected] ` - norwegian city name
9
12
* ` finger [email protected] ` - norwegian postal code
10
13
* ` 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:
18
21
19
22
* Finger is supported on all major platforms (Windows, OS X, Linux, FreeBSD, Android, ...). Open up your terminal (or cmd.exe on Windows).
20
23
* 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)
24
26
25
27
## Example
26
28
27
- ```
29
+ ``` bash
28
30
29
31
-= Meteogram for norway/oslo/oslo/oslo =-
30
32
' C Rain (mm)
@@ -51,11 +53,11 @@ and the NRK. Try "finger @graph.no" for more info.
51
53
52
54
For the U.S., thanks to a comment at http://osxdaily.com/2016/02/18/get-weather-command-line-finger-graph/ :
53
55
54
- ```
56
+ ``` bash
55
57
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;}'
56
58
57
- -= Meteogram for norway/oslo/oslo/oslo =-
58
- 'F Rain (mm)
59
+ -= Meteogram for norway/oslo/oslo/oslo =-
60
+ ' F Rain (mm)
59
61
77
60
62
73
61
63
69 ---
@@ -67,7 +69,7 @@ finger
[email protected] | sed "s/'C/'F/" | sed 's/^ \?-\?[0-9]\+/{\0{/' | awk -F{ '
67
69
9 =-----
68
70
7
69
71
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
+
71
73
SE SE SE SE SE SE SE SE NW NW NW NW NW SW SW SW SW SW SW SW SW SW Wind dir.
72
74
2 2 1 2 2 2 2 2 0 1 0 1 1 1 2 2 2 1 4 4 4 5 Wind(mps)
73
75
@@ -88,19 +90,19 @@ Thanks to selbekk and karnival for pull requests.
88
90
* Please checkout https://github.com/ways/pyofflinefilecache to project directory.
89
91
* debian packages: `python-mysqldb`
90
92
91
-
92
93
## TODO
93
94
94
95
* BUG: o: doesn' t show full location name
95
96
* BUG: Too tall for windows default window size.
96
97
* BUG: Temperature sometimes runs of scale in not-hourly mode.
97
98
* BUG: Uncertain-rain overwrites the out-of-scale value on top.
98
99
* 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? )
100
101
* IMPROVEMENT: improve 0458%3
101
102
* IMPROVEMENT: add text to o: ( " cloudy" , " thunder" , etc).
102
103
* FEATURE: Include warnings (obsforecast). Example:
103
- ```
104
+
105
+ ` ` ` xml
104
106
< forecast>
105
107
< text>
106
108
< location name=" Oslo" >
0 commit comments