The cl-darksky Reference Manual

This is the cl-darksky Reference Manual, version 0.1.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed May 15 03:52:05 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

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


2.1 cl-darksky

Get weather via Dark Sky

Author

Artemiy Stepanov

License

BSD 2-clause

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
  • jonathan (system).
  • dexador (system).
  • alexandria (system).
Source

cl-darksky.asd.

Child Component

src (module).


3 Modules

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


3.1 cl-darksky/src

Source

cl-darksky.asd.

Parent Component

cl-darksky (system).

Child Components

4 Files

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


4.1 Lisp


4.1.1 cl-darksky/cl-darksky.asd

Source

cl-darksky.asd.

Parent Component

cl-darksky (system).

ASDF Systems

cl-darksky.


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

Dependency

http.lisp (file).

Source

cl-darksky.asd.

Parent Component

src (module).

Packages

cl-darksky.

Public Interface

4.1.3 cl-darksky/src/http.lisp

Source

cl-darksky.asd.

Parent Component

src (module).

Packages

cl-darksky.http.

Public Interface

http-get (function).


5 Packages

Packages are listed by definition order.


5.1 cl-darksky

Source

cl-darksky.lisp.

Use List
Public Interface

5.2 cl-darksky.http

Source

http.lisp.

Use List

common-lisp.

Used By List

cl-darksky.

Public Interface

http-get (function).


6 Definitions

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


6.1 Public Interface


6.1.1 Special variables

Special Variable: *api-key*
Package

cl-darksky.

Source

cl-darksky.lisp.


6.1.2 Ordinary functions

Function: forecast (lat lgn)
Package

cl-darksky.

Source

cl-darksky.lisp.

Function: forecast-hourly (lat lgn)
Package

cl-darksky.

Source

cl-darksky.lisp.

Function: http-get (url)
Package

cl-darksky.http.

Source

http.lisp.


Appendix A Indexes


A.1 Concepts


A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*api-key*: Public special variables

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