定制 sumpygump/belltoll 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sumpygump/belltoll

Composer 安装命令:

composer require sumpygump/belltoll

包简介

CLI tool to chime like a clock tower

README 文档

README

This is a PHP script (command line) that will chime like a clock tower. It has audio files for the 15-minute, 30-minute, 45-minute bell tolls, plus each hour.

Installation

Install with composer using the following command

composer global require sumpygump/belltoll

Make sure that ~/.composer/vendor/bin/ is on your $PATH

Or symlink it to the the /usr/local/bin

$ ln -s ~/.composer/vendor/bin/belltoll /usr/local/bin/belltoll

Usage

When you invoke the program it will chime like a bell tower if it is the right time. Simple run belltoll. If it is not the right time it will say "It's not time for a bell."

The program relies on mpg123 to be installed on your machine to actually play the audio files.

You can pass the -t or --time parameter to force the program to think it is a specific time (for testing). Example: belltoll -t 1:30

Use the -q or --quiet to make the program have no output.

Usage: belltoll [options]

Options:
  -h [--help] : Display help
  -q [--quiet] : No output
  -v [--verbose] : Include more verbose output
  -t [--time] <time> : Use specific time instead of current time
  --version : Show version and exit

Install as cron task

Since it relies on running at the right time, it is suggested to add it to your crontab. Use the command $ crontab -e to edit yours. See the file crontab.example for additional details.

00,15,30,45 * * * * /usr/local/bin/belltoll >> /dev/null 2>&1

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固