mario-deluna/phptv 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mario-deluna/phptv

Composer 安装命令:

composer require mario-deluna/phptv

包简介

PHP Remote control for Sony Android TVs.

README 文档

README

PHPTv

A Command-Line Remote control for Sony Bravia Android TV written in PHP.

It was one of those evenings where I could not find the fu****g remote for my TV. So instead of doing the work I'm supposed to do. I decided to procrastinate by writing this little program that allows you to control your Sony Android TV over the command line.

license GitHub release

❓❓❓

ezgif-2-b5b7210025

Installation

If you are using composer you can make use of global packages.

$ composer global require mario-deluna/phptv

Make sure that you have exported the vendors bin path:

$ export PATH="$PATH:$HOME/.composer/vendor/bin"

You can also just download and use the prebuild .phar.

$ wget https://github.com/mario-deluna/PHPTv/blob/v1.0.1/phptv.phar?raw=true -O phptv.phar

And if you trust me, add it to your bin dir.

$ sudo chmod a+x phptv.phar
$ sudo mv phptv.phar /usr/local/bin/phptv

Setting up the Pre-Shared Key (PSK)

  1. Go To "Settings" > "Network" > "Home network setup" > "IP control"
  2. Set "Authentication" to "Normal and Pre-Shared Key"
  3. Choose a "Pre-Shared Key". (Default is 0000)

Now you should be ready to use the remote.

Usage

To start the remote just enter phptv <the ip of your tv> <psk>.

$ phptv 192.168.1.42 0000

Remote key controls:

------------------------------------------------------------
| key | action      | description                          |
============================================================
| ←   | Left        | Navigate left                        |
------------------------------------------------------------
| →   | Right       | Navigate Right                       |
------------------------------------------------------------
| ↑   | Up          | Navigate Up                          |
------------------------------------------------------------
| ↓   | Down        | Navigate Down                        |
------------------------------------------------------------
| ↵   | Confirm     | Enter / Confirm                      |
------------------------------------------------------------
| ⌫   | Return      | Go Back / Return                     |
------------------------------------------------------------
| c   | Command     | Opens the command prompt.            |
------------------------------------------------------------
| f   | Forward     | Enter the forward raw commands mode. |
------------------------------------------------------------
| g   | Home        | Go Home.                             |
------------------------------------------------------------
| p   | TogglePower | Turns the TV on / Off                |
------------------------------------------------------------
| m   | Mute        | Mute / Unmute the Tv.                |
------------------------------------------------------------
| b   | VolumeDown  | Turn down for what?                  |
------------------------------------------------------------
| n   | VolumeUp    | Turn up the Volume                   |
------------------------------------------------------------

PS

This is an absolute "just for fun" and "because I can" project. You will be off much faster just using the normal Remote. I still hope you like this little goof.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 37
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 37
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固