flexnst/laravel-lgtv is a Laravel package for lg webos tv control with laravel.
It currently has 8 GitHub stars and 76 downloads on Packagist (latest version v1.0.5).
Install it with composer require flexnst/laravel-lgtv.
Discover more Laravel packages by flexnst
or browse all Laravel packages to compare alternatives.
Last updated
The package allows you to control the status of LG Smart TVs based on WebOS, switch channels, control sound, launch applications and emulate pressing buttons on the remote control.
composer require flexnst/laravel-lgtv
php artisan vendor:publish --provider="Flexnst\LgTv\LgTvServiceProvider" --tag=config
Discover TV ip address on network:
$ip = \LgTv::device()->discover();
Start TV:
\LgTv::device()->turn_on();
TV off:
\LgTv::device()->turn_off();
Show float message on TV screen:
\LgTv::device()->show_float('Hello!');
// config/lgtv.php
<?php
return [
'devices' => [
'tv1' => [
'ip' => env('LGTV_TV1_IP'),
'mac' => env('LGTV_TV1_MAC'),
'key_path' => storage_path('lgtv_tv1.key')
]
],
'default' => 'tv1'
];