← 返回
未分类 中文

Tronclass Cli

Interact with the TronClass learning management system (currently optimized for FJU) via the `tronclass` CLI — check courses, assignments, deadlines, grades,...
Interact with the TronClass learning management system (currently optimized for FJU) via the `tronclass` CLI — check courses, assignments, deadlines, grades,...
yujun-bo2 yujun-bo2 来源
未分类 clawhub v1.2.2 1 版本 99818.8 Key: 无需
★ 1
Stars
📥 531
下载
💾 0
安装
1
版本
#latest

概述

TronClass CLI Skill

You have access to tronclass-cli, a command-line tool for managing the user's TronClass account.

Setup

Install globally (once):

npm install -g tronclass-cli

General Guidelines

  • Authentication: Most commands require a saved session. If a command fails, tell the user to run tronclass auth login . The session is reused automatically; tronclass auth check probes a live TronClass endpoint to confirm whether it's still valid.
  • FJU users: Use tronclass auth login --fju for the CAS flow with CAPTCHA support.
  • Non-interactive login (agents/scripts): Pass --password

    (and --base-url for generic deployments) to skip prompts. For FJU, where a human must solve the CAPTCHA, use the two-step deferred flow: tronclass auth login --fju --non-interactive prints a captcha ID and opens the captcha image; then tronclass auth captcha --password

    completes the login. The password is never written to disk — it is supplied only at resume time.

  • Finding IDs: The typical lookup chain is courses listactivities list activities view . The todo command shows activity IDs directly in the first column.
  • Aliases: activitiesa, coursesc, homeworkhw/h, todotd/t, announcementsann. Subcommands also have short aliases (listl/ls, viewv, downloadd/dl, submits).

Command Quick Reference

CommandWhat it does
------
tronclass auth login [--fju] [--password

] [--base-url ]

Log in (interactive by default; --password / --base-url make it non-interactive)
tronclass auth login --fju --non-interactive Start a deferred-CAPTCHA FJU login; prints a captcha ID, no password on disk
tronclass auth captcha --password

Complete a deferred FJU login with the solved CAPTCHA
tronclass auth checkProbe a live endpoint to report session validity (Valid / Expired / Unknown)
tronclass auth logoutClear saved session
tronclass todoPending tasks — first column is the activity ID
tronclass courses list [--all] [--raw]List courses
tronclass activities list List activities in a course
tronclass activities view Rich view: metadata + description + attachments
tronclass activities download [output]Download file (defaults to ~/Downloads/)
tronclass homework list List homework for a course
tronclass homework view Rich view: metadata + prompt + teacher attachments + your own submission/draft
tronclass homework submit Submit homework files
tronclass ann list [course_id]List announcements (school-wide if no course_id)
tronclass ann view [course_id]Rich view: metadata + HTML-rendered body + attachments
tronclass ann download [output]Download an announcement attachment

Most list/view commands support --fields f1,f2,... to customize displayed columns.

Key Behaviors

tronclass todo — shows id, course_name, title, end_time by default. The id column is the activity ID you can pass directly to activities view.

tronclass activities view — displays a formatted table (not raw JSON). The Attachments section lists each file with its ref_id and a ready-to-run download command. No need to manually dig through JSON.

tronclass activities download output_file is optional. If omitted, the file is saved to ~/Downloads/ using the server-provided filename.

tronclass homework view — rich layout: metadata (status / deadline color-coded), HTML-rendered prompt, teacher attachments (each with ref_id for activities download), and a "My Submission" section showing whether you've submitted, saved a draft, or done nothing — plus the files you uploaded. Use this before submitting to read the prompt and confirm a draft.

tronclass ann list — with no argument, lists the school-wide announcement feed (first page, ~30 items). Pass a course_id to list announcements for a specific course.

tronclass ann view — renders the announcement's HTML body in the terminal (bold, links, lists, images). If you know which course the announcement belongs to, pass course_id as the second argument to skip a multi-page search of the global feed.

Common Workflows

Check what's due:

tronclass todo

Download a course file:

tronclass courses list                        # get course_id
tronclass activities list <course_id>         # get activity_id
tronclass activities view <activity_id>       # see Attachments table → note ref_id
tronclass activities download <ref_id>        # saves to ~/Downloads/ automatically

Submit homework:

tronclass homework list <course_id>           # find activity_id
tronclass homework view <activity_id>         # read the prompt + grab teacher attachments
tronclass homework submit <activity_id> ./my_essay.pdf --draft   # save a draft first
tronclass homework view <activity_id>         # verify the draft
tronclass homework submit <activity_id> ./my_essay.pdf           # final submit

Read announcements:

tronclass ann list                            # school-wide feed
tronclass ann list <course_id>                # course-specific feed
tronclass ann view <ann_id> [course_id]       # full content, HTML rendered

Reference Files

For detailed option lists, field names, and edge cases, load the relevant reference:

  • references/auth.md — login flows, session management
  • references/todo.md — todo fields, filtering
  • references/courses.md — course fields, --raw flag
  • references/activities.md — activities list/view/download in depth
  • references/homework.md — homework list, view, submit options, draft mode
  • references/announcements.md — announcements list, view (HTML rendering), download

版本历史

共 1 个版本

  • v1.2.2 当前
    2026-05-02 00:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

education

Thinking Partner

itsflow
通过提问探索复杂问题的协作思考伙伴
★ 48 📥 9,866
knowledge-management

Relationship Chat Analysis

yujun-bo2
仅在用户明确提供、上传、粘贴或指认具体恋爱聊天记录并请求证据分析时使用此技能。
★ 0 📥 262
education

Language Learning Tutor

chipagosfinest
AI语言导师,通过对话、词汇练习、语法课程、抽认卡及沉浸式练习,助您学习任意语言。适用于学习新语言、练词汇、学语法、翻译、会话练习、旅行准备、习语俚语或改善发音。支持包括中、英、日、韩、法、德、西等在内的100多种语言。
★ 28 📥 8,825