PHPackages                             ko/ambient-weather - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ko/ambient-weather

ActiveLibrary[API Development](/categories/api)

ko/ambient-weather
==================

A PHP SDK for interacting with the ambient weather api to retrieve data and draw canvas visualizations

0.0.6(8y ago)219MITPHP

Since Feb 3Pushed 8y ago2 watchersCompare

[ Source](https://github.com/peledies/ko-ambient-weather)[ Packagist](https://packagist.org/packages/ko/ambient-weather)[ RSS](/packages/ko-ambient-weather/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

ambient-weather
===============

[](#ambient-weather)

This module is built for interacting with the [ambientweather.net](http://ambientweather.net) API. It utilizes the [ko\\json-cache](https://github.com/peledies/ko-json-cache) module to reduce pressure on the ambient weather API and to provide a faster load time for the weather station data.

### Demo

[](#demo)

[Weather Data Demo](https://weather.karnsonline.com)

Install
-------

[](#install)

```
composer require ko/ambient-weather
```

Properties
----------

[](#properties)

PropertyTypeDescriptionapiKeyStringYour ambient weather API KeyapplicationKeyStringYour ambient weather API Applicaiton KeyintervalIntegerThe reporting interval of your weather stationtimeframeIntegerThe ammount of time into the past to fetch data fordeviceStringThe MAC address of your weather stationUsage
-----

[](#usage)

#### Build the cache

[](#build-the-cache)

Build the `cache` settings object

```
  $KOCacheSettings = new \KO\Cache\Settings();
  $KOCacheSettings->setValidity(15);
  $KOCacheSettings->setFile('data_cache.json');
```

Instantiate a new cache object with the settings

```
  $KOCache = new \KO\Cache\Cache($KOCacheSettings);
```

#### Build the AmbientWeather object

[](#build-the-ambientweather-object)

Build the `AmbientWeather` settings object

```
  $AWSettings = new \KO\AmbientWeather\Settings();
  $AWSettings->setApiKey('your-api-key-here');
  $AWSettings->setApplicationKey('your-application-key-here');
  $AWSettings->setInterval(5);
  $AWSettings->setTimeframe(4);
  $AWSettings->setDevice('device-mac-address');
```

Instantiate a new `AmbientWeather` object with the settings

```
  $AW = new \KO\AmbientWeather\AmbientWeather($AWSettings, $KOCache);
```

#### Charts

[](#charts)

```
new KO\AmbientWeather\Charts\Wind($AW);
new KO\AmbientWeather\Charts\Temperature($AW);
new KO\AmbientWeather\Charts\Barometric($AW);

```

#### Gauges

[](#gauges)

```
KO\AmbientWeather\Gauges\WindDirection($AW);
KO\AmbientWeather\Gauges\WindSpeed($AW);

```

#### Complete Example

[](#complete-example)

```

    Document

```

Documentation
-------------

[](#documentation)

See the full [Documentation](http://ko.karnsonline.com/ambient-weather) for more details.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

3066d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1185267?v=4)[Deac Karns](/maintainers/peledies)[@peledies](https://github.com/peledies)

---

Top Contributors

[![peledies](https://avatars.githubusercontent.com/u/1185267?v=4)](https://github.com/peledies "peledies (15 commits)")

### Embed Badge

![Health badge](/badges/ko-ambient-weather/health.svg)

```
[![Health](https://phpackages.com/badges/ko-ambient-weather/health.svg)](https://phpackages.com/packages/ko-ambient-weather)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
