https://github.com/webproject-xyz/ikea-tradfri-php
PHP library to wrap coap-client commands to control ikea tradfri hub
https://github.com/webproject-xyz/ikea-tradfri-php
codeception ikea light-controller php smarthome tradfri
Last synced: 22 days ago
JSON representation
PHP library to wrap coap-client commands to control ikea tradfri hub
- Host: GitHub
- URL: https://github.com/webproject-xyz/ikea-tradfri-php
- Owner: WebProject-xyz
- License: mit
- Created: 2017-12-30T20:57:48.000Z (about 8 years ago)
- Default Branch: 2.6.x
- Last Pushed: 2024-10-30T04:03:55.000Z (over 1 year ago)
- Last Synced: 2024-10-30T07:14:20.307Z (over 1 year ago)
- Topics: codeception, ikea, light-controller, php, smarthome, tradfri
- Language: PHP
- Homepage:
- Size: 1.74 MB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# ikea-tradfri-api
> PHP api to control Ikea smart lights (tradfri)
-----
Inspired by
> [hvanderlaan/ikea-smartlight](https://github.com/hvanderlaan/ikea-smartlight) _Python_
## Status
### Main
[](https://www.codacy.com/gh/WebProject-xyz/ikea-tradfri-php/dashboard?utm_source=github.com&utm_medium=referral&utm_content=WebProject-xyz/ikea-tradfri-php&utm_campaign=Badge_Grade)
[](https://github.com/WebProject-xyz/ikea-tradfri-php/actions/workflows/cocdeception.yml)
[](https://codeclimate.com/github/WebProject-xyz/ikea-tradfri-php/maintainability)
[](https://codeclimate.com/github/WebProject-xyz/ikea-tradfri-php/test_coverage)
[](https://codecov.io/gh/WebProject-xyz/ikea-tradfri-php)
[](https://styleci.io/repos/115823629)
### Develop
[](https://github.com/WebProject-xyz/ikea-tradfri-php/actions/workflows/cocdeception.yml)
[](https://github.com/WebProject-xyz/ikea-tradfri-php/actions/workflows/codacy-analysis.yml)
[](https://codecov.io/gh/WebProject-xyz/ikea-tradfri-php)
[](https://styleci.io/repos/115823629)
### Requirements and initial setup
> see [requirements.md](requirements.md)
## How to use
- [Example config](wiki/example/init-dist.php)
- [wiki/example](wiki/example)
## Docker Coap-Client
### Get client
>
```bash
docker pull webproject/coap-client:latest
```
### Run command in Docker
> Generate API User and (Shared Key)
```bash
docker run --rm --name coap-client webproject/coap-client -m post -u "Client_identity" -k "" -e '{"9090":"php-api-user"}' "coaps://:5684/15011/9063""
```
### Get all api endpoints
```bash
docker run --rm --name coap-client webproject/coap-client -m get -u "php-api-user" -k "" "coaps://:5684/.well-known/core"
```