GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OWREP(1) FreeBSD General Commands Manual (con) OWREP(1)

owrep
Weather information utility

owrep [-c file] [-d delim] [-D] [-h] [-l location] [-u units] [-z]

owrep is a simple utility for accessing the current weather from http://www.openweathermap.org, using the published API. It can generate either a human-readable weather summary, or a compressed set of data in a fixed format, with fields separated by a specified delimiter. The latter is suitable for feeding into other programs for further processing.

The following options are available:

file
Specify alternate location for the configuration file.
delim
Specify the delimiter for use with -z; the default is @. delim must be a single character.
Turn on debugging; various progress messages are generated, and the raw data from http://www.openweathermap.org is also output.
Display a short help message.
location
Specify the location for the weather report. This is a number obtained from http://www.openweathermap.org. If given, this overrides any value in the configuration file.
units
Specify the units to be used for output; the possible values are imperial and metric. These keywords may be abbreviated. If given, this overrides any value in the configuration file.
Generate compressed output.

In normal output mode, weather information is generated in a self explanatory, human readable form.

In compressed output mode, weather information is generated as a single line containing many fields, separated by the specified delimiter (the default being @). These fields are as follows. The Type column indicates the type of information provided.

Number Type Contents
1 string City/Town
2 string Country
3 real Longitude
4 string Longitude direction (E or W)
5 real Latitude
6 string Latitude direction (N or S)
7 date Sunrise date
8 time Sunrise time
9 date Sunset date
10 time Sunset time
11 string Temperature units
12 integer Temperature now
13 integer Temperature minimum
14 integer Temperature maximum
15 integer Humidity
16 string Humidity units
17 integer Pressure
18 string Pressure units
19 string Wind speed units
20 real Wind speed
21 string Wind speed description
22 real Gust speed
23 integer Wind direction (bearing)
24 string Wind direction code (e.g. SW)
25 string Wind direction description
26 integer Cloud cover percentage
27 string Cloud cover description
28 integer Visibility distance
29 string Visibility units
30 string Precipitation mode
31 integer Precipitation
32 string Precipitation units
33 date Date of last update
34 time Time of last update

/usr/local/etc/owrep.conf
default configuration file

The owrep utility exits 0 on success, and >0 if an error occurs.

owrep.conf(5)

Bob Eager ⟨bob@eager.cx⟩.
March 4, 2018 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.