Skip to content

lamadaemon/myweeklyplanner-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyWeeklyPlanner-Auto

996.icu LICENSE npm

A simple script used to automatically setup your plans in MyWeeklyPlanner

Usage

First, install via npm -g myweeklyplanner-auto

You'll need a profile name and then use the command above to generate a config.

myweeklyplanner-auto <profileName> --genConfig

You'll need to fill in these fields: username password botToken(If you need to notify you in tg) target(If you need to notify you in tg) schedule baseURL

The field schedule is an array with the size of 7. The first entry represents Sunday then the Monday and vice-versa. Here is an example entry. You have to enter either room or the teacher's name to let the script find their staffID.

In the plan field, you have to enter your plan for that day.

{
     "selectionCandidate": {
         "room": "222B",
         "teacher": ""
     },
     "plan": "Career life education"
}

Last, setup this script on your server with a crontab task:

0 0 */14 * 0 myweeklyplanner-auto <profile> [--tg] >/dev/null 2>&1

If you want to see all the teachers you may use the command: (Need a profile!)

myweeklyplanner-auto <profileName> --listTeachers

Changelog

  • 1.0.3:
    • Fix overriding exist entries
    • Improve performance

Future plan

  • Use commander to manage cli.
  • Make telegram notify feature use editMessage instead of sending new messages.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published