
_✨ NoneBot2 Hobby Radio Plugin ✨_
Hello everyone, I amPreschool DirectorThe project address is:https://github.com/yzyyz1387/cqsat
Prerequisites
This is a plugin for a QQ bot. It needs to be run within a program based on Nonebot2.
You can find information on how to deploy this type of robot in my article here:Building a bot using Nonebot2 and go-cqhttp
Or, you can view...go-cqhttp And Nonebot2Official website
Features
- Fan culture
- Example prompts:

- Other features are currently under development.
Instructions
Group chat/private messaging: [ Within the group, private messages]
- Sent during binding:
绑定位置
- When changing location, also send:
绑定位置
- Please enter the required information.
经度 纬度 海拔(Separated by spaces)
- For example: 75.8656, 39.3809, 1330.0

Subscribe to satellite feed: [Group chat]
Sent when subscribing:订阅卫星
During this process, users will be prompted to enter:
卫星名称: Case-insensitive (use spaces to separate multiple words)
- For example: SO-50 ISS ao-92
最低仰角: Enter a number (between 1 and 90, inclusive)xx度Orxx°)
- For example, 10

Query satellite subscriptions [within group]
- Send
查询订阅

View a list of supported satellites [in group chat or private messages]
- Send
卫星列表

Check the status of a satellite at a specific time after its launch [in group chat or private message]
- Send
查询卫星+卫星名+ +分钟数 The satellite name and the number of minutes should be separated by a space.
- For example, query satellite SO-50 at 50 minutes (query the status of SO-50 after 50 minutes).

Unsubscribe from satellite [in group]
- Send
取消订阅+卫星名称 Several satellites, separated by spaces
- For example: Unsubscribe from SO-50 ISS ao-92

Cancel current operation
- Send during the Q&A process
取消 Alternatively 算了 Cancel current operation

Installation
Direct installation
Temporarily move the files from the warehouse folder to the robot folder.
Then install the dependencies required for this project.
pip install -r requirements.txt
Installing pip
First, install the package.
pip install nonebot-plugin-cqsat
Re-enterbot.py
Include the following code
nonebot.load_plugin("cqsat")
Installing nb-cli [Recommended]
Open the robot project folder (the directory where bot.py is located).
Execute
nb plugin install nonebot-plugin-cqsat
Instructions
Data sources
- Currently, it only supports data fromhttp://www.cmse.gov.cn/gfgg/zgkjzgdcs/The data
- It also supports the China Space Station, with TLE data for the China Space Station sourced fromOfficial website of China's human spaceflight program
Instructions for use
- Regarding the Chinese space station, it is recommended to use it with the following guidelines:
天宫
- Currently, all data is obtained online.
- Check every minute.
- After checking the current time, the user's satellite viewing preferences will be recorded.
- If a user arrives more than ten minutes after the scheduled time, and the maximum angle of elevation during their stay exceeds the minimum angle set by the user, a notification will be sent to the user within the group.
- When performing an input operation, the input
取消 Alternatively 算了 Cancel current operation
Log
This plugindebugThe log output at the specified level is being sent to the machine.人文件夹/cqsat/log.logMiddle
TODO
References
PyEphem Homepage – The PyEphem homepage (rhodesmill.org)
Diao Ninghui, Liu Jianqiang, Sun Congrong, et al. Satellite Orbit Calculation Based on the SGP4 Model [J]. Remote Sensing Information, 2012, 27(4):64-70. DOI: 10.3969/j.issn.1000-3177.2012.04.011.