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 2d 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 43% 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

3019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7173f0646b0cdebf4cf99d9282707c85e92ffc1a5d06247de8cefaba619fcb8c?d=identicon)[peledies](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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