开源一个极简的群日程工具

本文介绍了一个开源的小程序,用于解析文本并创建日程,支持快捷指令和API接口。用户可在不方便使用语音助手时方便地创建日程,并能分享到群组。小程序还兼容PC端,生成的日程文件可被主流日历软件识别。开发者提供了开放的API接口,未来计划改进日程标题解析和多语言支持。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这是一个极简日程小助手,目前以小程序的形式发布。用户喂给它一段文字,它会帮你解析文字里的时间信息,并且创建一个含有通知的日程,用以备忘一些活动或者会议事项。

schedule-parser-3

当然如果你在没有人的环境,你可以直接:

🔊:Hey, Siri. 帮我创建一个 xxx 日程

而这个小程序的作用就是让用户在不方便使用语音助手的场景下,能够方便快捷地创建日程。

image-20211130154822949

另外,小程序支持分享日程到群组,因此如果你是活动组织人员或者群管理员,你可以将日程进行分享,邀请他人订阅,起到备忘的作用。

小程序针对 PC 端做了兼容,在 PC 保存日程时,会生成 .ics 格式的文件。这种文件可以被主流的日历软件识别,双击打开即可添加到系统日历。

image-20211130194807208

你可以扫码体验小程序:

gh_afe22e1af473_344

快捷指令

为了简化操作步骤,笔者还制作了快捷指令,读者可以在 iOS、iPadOS、MacOS(需要更新 Monterey 系统)使用。当你复制了一段通知之后,点击快捷指令,便会自动解析通知的文本内容,创建一个新的日程。

RPReplay_Final1638198744.2021-11-30 20_29_39

开放 API 接口

为了方便二次开发,笔者将开发的 API 接口进行开放,有需要的读者可以查阅 API 文档

schedule-parse-1

本次提供两个 API,文字解析接口支持传入一段文字,返回其中的时间信息;下载日历接口支持生成 .ics 文件,可以直接导入系统的日历。

顺便安利一下 Postman 的 API 文档功能,支持一键生成在线文档,共享起来非常方便。

总结

每次有新的想法都会急于将其实现,从而忽略了最优的解决方式。例如这个工具仅仅是为了满足个人需求,提高一些效率,其实用「快捷指令」是最好的实现方式。因此在开发过程中,想到需求小众,使用者不会很多,挫败感油然而生,但最后还是硬着头皮按照设计稿完成了小程序。

目前的工具还有一些不太完善的地方,在之后的迭代会加上日程标题的解析、完善多语言(英文、日文)的解析、并且考虑接入一些办公应用(飞书、钉钉)。

项目地址:https://github.com/Mayandev/schedule-parser

如果你是一个小型的办公网络,你可以创建一个服务器来进行日程安排,这只是一个开源的小服务器,你果你需要大的免费的软件去http://www.bedework.org/bedework/下载 使用教程 Installation Dependencies Radicale is written in pure python and does not depend on any librabry. It is known to work on Python 2.5, 2.6, 3.0 and 3.1 [1]. Linux users certainly have Python already installed. For Windows and MacOS users, please install Python [2] thanks to the adequate installer. [1] See Python Versions and OS Support for further information. [2] Python download page. Radicale Radicale can be freely downloaded on the project website, download section. Just get the file and unzip it in a folder of your choice. CalDAV Clients At this time Radicale has been tested and works fine with the latests version of Mozilla Sunbird (versions 0.9+), Mozilla Lightning (0.9+), and Evolution (2.30+). More clients will be supported in the future. However, it may work with any calendar client which implements CalDAV specifications too (luck is highly recommanded). To download Sunbird, go to the Sunbird project website and choose the latest version. Follow the instructions depending on your operating system. Simple Usage Starting Server To start Radicale CalDAV server, you have to launch the file called radicale.py located in the root folder of the software package. Using Sunbird or Lightning After starting Sunbird or Lightning, click on File and New Calendar. Upcoming window asks you about your calendar storage. Chose a calendar On the Network, otherwise Sunbird will use its own file system storage instead of Radicale's one and your calendar won't be remotely accessible. Next window asks you to provide information about remote calendar access. Protocol used by Radicale is CalDAV. A standard location for a basic use of a Radicale calendar is http://localhost:5232/user/calendar/, where you can replace user and calendar by some strings of your choice. Calendars are automatically created if needed. You can now customize your calendar by giving it a nickname and a color. This
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值