The cl-darksky Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-darksky Reference Manual

This is the cl-darksky Reference Manual, version 0.1.1, generated automatically by Declt version 2.4 "Will Decker" on Wed Jun 20 11:03:06 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

Cl-Darksky

cl-dakrsky allows you to retrieve the weather via latitude and longitude.

Usage

Before starting you need specify your API key:

(setf cl-darksky:*api-key* "YOUR_BIG_SECRET")
(cl-darksky:forecast 45.0455 41.9683)
; => (("ozone" . 381.87) ("visibility" . 6.22) ("uvIndex" . 0) ("cloudCover" . 0.92)
;     ("windBearing" . 125) ("windGust" . 18.73) ("windSpeed" . 11.24)
;     ("pressure" . 1019.32) ("humidity" . 0.89) ("dewPoint" . 32.45)
;     ("apparentTemperature" . 27.34) ("temperature" . 35.37)
;     ("precipProbability" . 0) ("precipIntensity" . 0)
;     ("icon" . "partly-cloudy-night") ("summary" . "Mostly Cloudy")
;     ("time" . 1518293286))
(cl-darksky:forecast-hourly 45.0455 41.9683)
; => (("data"
;     (("ozone" . 381.93) ("visibility" . 6.22) ("uvIndex" . 0)
;      ("cloudCover" . 0.91) ("windBearing" . 126) ("windGust" . 18.69)
;      ("windSpeed" . 11.29) ("pressure" . 1019.37) ("humidity" . 0.9)
;      ("dewPoint" . 32.63) ("apparentTemperature" . 27.32) ("temperature" . 35.37)
;      ("precipProbability" . 0) ("precipIntensity" . 0)
;      ("icon" . "partly-cloudy-night") ("summary" . "Mostly Cloudy")
;      ("time" . 1518292800))
;     (("ozone" . 381.44) ("visibility" . 6.22) ("uvIndex" . 0)
;      ("cloudCover" . 0.95) ("windBearing" . 122) ("windGust" . 19)
;      ("windSpeed" . 10.88) ("pressure" . 1019.02) ("humidity" . 0.85)
;      ("dewPoint" . 31.3) ("apparentTemperature" . 27.51) ("temperature" . 35.38)
;      ("precipProbability" . 0) ("precipIntensity" . 0) ("icon" . "cloudy")
;      ("summary" . "Overcast") ("time" . 1518296400))
;      ...

Installation

Now available from Quicklisp

(ql:quickload :cl-darksky)

Requirements

Author

Copyright

Copyright (c) 2018 Artemiy Stepanov

License

Licensed under the BSD 2-clause License.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-darksky

Author

Artemiy Stepanov

License

BSD 2-clause

Description

Get weather via Dark Sky

Long Description

# Cl-Darksky
cl-dakrsky allows you to retrieve the weather via latitude and longitude.
## Usage

Before starting you need specify your API key:

“‘
(setf cl-darksky:*api-key* "YOUR_BIG_SECRET")
“‘

- For currently:

“‘
(cl-darksky:forecast 45.0455 41.9683)
; => (("ozone" . 381.87) ("visibility" . 6.22) ("uvIndex" . 0) ("cloudCover" . 0.92)
; ("windBearing" . 125) ("windGust" . 18.73) ("windSpeed" . 11.24)
; ("pressure" . 1019.32) ("humidity" . 0.89) ("dewPoint" . 32.45)
; ("apparentTemperature" . 27.34) ("temperature" . 35.37)
; ("precipProbability" . 0) ("precipIntensity" . 0)
; ("icon" . "partly-cloudy-night") ("summary" . "Mostly Cloudy")
; ("time" . 1518293286))
“‘

- For hourly:

“‘
(cl-darksky:forecast-hourly 45.0455 41.9683)
; => (("data"
; (("ozone" . 381.93) ("visibility" . 6.22) ("uvIndex" . 0)
; ("cloudCover" . 0.91) ("windBearing" . 126) ("windGust" . 18.69)
; ("windSpeed" . 11.29) ("pressure" . 1019.37) ("humidity" . 0.9)
; ("dewPoint" . 32.63) ("apparentTemperature" . 27.32) ("temperature" . 35.37)
; ("precipProbability" . 0) ("precipIntensity" . 0)
; ("icon" . "partly-cloudy-night") ("summary" . "Mostly Cloudy")
; ("time" . 1518292800))
; (("ozone" . 381.44) ("visibility" . 6.22) ("uvIndex" . 0)
; ("cloudCover" . 0.95) ("windBearing" . 122) ("windGust" . 19)
; ("windSpeed" . 10.88) ("pressure" . 1019.02) ("humidity" . 0.85)
; ("dewPoint" . 31.3) ("apparentTemperature" . 27.51) ("temperature" . 35.38)
; ("precipProbability" . 0) ("precipIntensity" . 0) ("icon" . "cloudy")
; ("summary" . "Overcast") ("time" . 1518296400))
; ...
“‘

## Installation
Now available from [Quicklisp](https://www.quicklisp.org/beta/)

“‘
(ql:quickload :cl-darksky)
“‘

## Requirements

- You need an API key to use it (https://darksky.net/dev/). Don’t worry, you can use it for free.

## Author

- Artemiy Stepanov

## Copyright

Copyright (c) 2018 Artemiy Stepanov

## License

Licensed under the BSD 2-clause License.

Version

0.1.1

Dependencies
Source

cl-darksky.asd (file)

Component

src (module)


Next: , Previous: , Up: Top   [Contents][Index]

3 Modules

Modules are listed depth-first from the system components tree.


Previous: , Up: Modules   [Contents][Index]

3.1 cl-darksky/src

Parent

cl-darksky (system)

Location

src/

Components

Next: , Previous: , Up: Top   [Contents][Index]

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.1 cl-darksky.asd

Location

cl-darksky.asd

Systems

cl-darksky (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.2 cl-darksky/src/cl-darksky.lisp

Dependency

http.lisp (file)

Parent

src (module)

Location

src/cl-darksky.lisp

Packages

cl-darksky

Exported Definitions
Internal Definitions

*api-key* (special variable)


Previous: , Up: Lisp files   [Contents][Index]

4.1.3 cl-darksky/src/http.lisp

Parent

src (module)

Location

src/http.lisp

Packages

cl-darksky.http

Exported Definitions

http-get (function)


Next: , Previous: , Up: Top   [Contents][Index]

5 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

5.1 cl-darksky

Source

cl-darksky.lisp (file)

Use List
Exported Definitions
Internal Definitions

*api-key* (special variable)


Previous: , Up: Packages   [Contents][Index]

5.2 cl-darksky.http

Source

http.lisp (file)

Use List

common-lisp

Used By List

cl-darksky

Exported Definitions

http-get (function)


Next: , Previous: , Up: Top   [Contents][Index]

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

6.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

6.1.1 Functions

Function: forecast LAT LGN
Package

cl-darksky

Source

cl-darksky.lisp (file)

Function: forecast-hourly LAT LGN
Package

cl-darksky

Source

cl-darksky.lisp (file)

Function: http-get URL
Package

cl-darksky.http

Source

http.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

6.2 Internal definitions


Previous: , Up: Internal definitions   [Contents][Index]

6.2.1 Special variables

Special Variable: *api-key*
Package

cl-darksky

Source

cl-darksky.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L   M  
Index Entry  Section

C
cl-darksky.asd: The cl-darksky<dot>asd file
cl-darksky/src: The cl-darksky/src module
cl-darksky/src/cl-darksky.lisp: The cl-darksky/src/cl-darksky<dot>lisp file
cl-darksky/src/http.lisp: The cl-darksky/src/http<dot>lisp file

F
File, Lisp, cl-darksky.asd: The cl-darksky<dot>asd file
File, Lisp, cl-darksky/src/cl-darksky.lisp: The cl-darksky/src/cl-darksky<dot>lisp file
File, Lisp, cl-darksky/src/http.lisp: The cl-darksky/src/http<dot>lisp file

L
Lisp File, cl-darksky.asd: The cl-darksky<dot>asd file
Lisp File, cl-darksky/src/cl-darksky.lisp: The cl-darksky/src/cl-darksky<dot>lisp file
Lisp File, cl-darksky/src/http.lisp: The cl-darksky/src/http<dot>lisp file

M
Module, cl-darksky/src: The cl-darksky/src module

Jump to:   C   F   L   M  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   F   H  
Index Entry  Section

F
forecast: Exported functions
forecast-hourly: Exported functions
Function, forecast: Exported functions
Function, forecast-hourly: Exported functions
Function, http-get: Exported functions

H
http-get: Exported functions

Jump to:   F   H  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*api-key*: Internal special variables

S
Special Variable, *api-key*: Internal special variables

Jump to:   *  
S  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   P   S  
Index Entry  Section

C
cl-darksky: The cl-darksky system
cl-darksky: The cl-darksky package
cl-darksky.http: The cl-darksky<dot>http package

P
Package, cl-darksky: The cl-darksky package
Package, cl-darksky.http: The cl-darksky<dot>http package

S
System, cl-darksky: The cl-darksky system

Jump to:   C   P   S