Giter Site home page Giter Site logo

zanjie1999 / workdayalarmclockgo Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 7.61 MB

工作咩闹钟 使用 Golang 重构的 工作日闹钟 服务端 社畜的一天从美好的音乐开始 每天不同的闹钟铃声 全平台兼容包括Android

Home Page: https://www.bilibili.com/video/BV1KW4y1P7Ca/

Shell 3.22% Go 64.54% HTML 27.24% Batchfile 3.34% CSS 1.66%
alarm-clock golang server workday

workdayalarmclockgo's Introduction

使用 Golang 重构的 工作咩闹钟

原项目是 工作日闹钟,从2017年用Python2写出来后,使用Python3重构,现在使用Golang重构,最大的原因是想适配Android

可以在每次在设定的网抑云歌单中随机抽取2首作为闹钟铃声,
另外可以作为网抑云音乐播放器使用,随机播放永不重复,实现除语音助手外的智能音响应有的功能

这是一个服务端程序,交互将通过8080端口的Web服务在浏览器完成,尽量减少ram占用,以便运行在骁龙210的随身WiFi上(包括Android端仅占用47M的Ram),使用蓝牙音响播放闹钟声音

这个程序将解决传统闹钟的几个问题:

  1. 在节假日调休的情况下,该响的时候不响不该响的时候响
  2. 闹钟铃声千篇一律,天天一样,容易听腻
  3. 闹钟时间不够长,声音不够大,容易睡过头
  4. 小爱音响断网后闹钟不会响
  5. 闹钟随机音乐不能放我喜欢的歌
  6. 随机播放重复概率过高

如何使用

Android使用 App
其他系统需要安装sox和curl,并且暂停,音量控制不可用
Linux: 包管理器比如apt或者yum等 install sox curl
macOS: brew install sox curl
Windows:这样启动 workdayAlarmClock 你的播放器路径

指令

# 停止播放
stop
# 下一首
next
# 上一首
prev
# 退出
exit

天气播报

会在每次闹钟停止后(手动停止或播放完自动停止),播报今天的天气和前一天的温度差,以便决定穿什么衣服
你需要手动在闹钟设置中输入天气代码的框中输入你的区/市,并点击右边的查询按钮,保存设置后尝试点击“测试获取天气”来检查是否能正常使用
因配额资源有限,请勿将我的语音合成api用于其他用途,谢谢合作,否则将会取消这一功能

workdayalarmclockgo's People

Contributors

zanjie1999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

x2009again

workdayalarmclockgo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.