Giter VIP home page Giter VIP logo

gymautoorderseu's Introduction

GymAutoOrderSEU

Introduction

A gym order system for Southeast University throw newids login using Nodejs.

We have multiple options for users to choose their own sport item. Such as badminton, table tennis.

Usage

Installation

First of all, clone or download zip of this project. Make sure that Nodejs has already been installed on your device.

Then use `npm` to install all the needed package.
You can use this command to install:
```dos
npm install
```

### Order
Afterwards, you can start the project by using this command:
```dos
node ./orderByTime.js -u YourIdNumber -p YourPassword -d OrderDate -t OrderTimeIndex -i OrderItem
```

**YourIdNumber** is a 9 digit e-card number (like 213200001).

**YourPassword** is the unified authentication password of your e-card (Same as your password for login to my.seu.edu.cn).

**OrderDate** is the date that you want to use the gym, you should type the date in `YYYY-MM-DD` (like 2020-10-24).

**OrderTime** is the time that you want to use the gym, here is the index of time and the argument. That means when you want to order a court of 18:00-19:00, you should set this argument to 6.
```js
const orderTimes = {
    11.5: "11:30-12:30",
    12.5: "12:30-13:30",
    9: "09:00-10:00",
    10: "10:00-11:00",
    11: "11:00-12:00",
    12: "12:00-13:00",
    1: "13:00-14:00",
    2: "14:00-15:00",
    3: "15:00-16:00",
    4: "16:00-17:00",
    5: "17:00-18:00",
    6: "18:00-19:00",
    7: "19:00-20:00",
    8: "20:00-21:00",
};
``` 
**OrderItem** is the item you want to play. And it is set to `羽毛球` by default.

This is all the options:
```javascript
const orderItemMap = {
    乒乓球: "7",
    篮球: "8",
    排球: "9",
    羽毛球: "10",
    舞蹈: "11",
    健身: "12",
    武术: "13",
    跆拳道: "14",
    牌区羽毛球: "15",
    牌区乒乓球: "16",
    牌区网球: "17",
};
```

e.g. When you(id: 213140001, password: 123456) want to order a badminton court at 18:00-19:00 on 2020-10-24, you can run this command:
```dos
 node ./orderByTime.js 213140001 123456 2020-10-24 6 羽毛球
```


## Note
We won't collect your password, the password is only for order a court. Please don't worry.

gymautoorderseu's People

Contributors

divineweir avatar

Stargazers

kangmingyu avatar  avatar LooKieJing avatar xuuuyp avatar Eva Ren avatar showerhhh avatar  avatar

Watchers

 avatar

gymautoorderseu's Issues

Wrong cmd example

The example of orderByTime.js is out of date:

"orderByTime.js -i 213200001 -p 123456 -d 2020-11-01 -t 6 -w 羽毛球",

Now it should be "orderByTime.js -u 213200001 -p 123456 -d 2020-11-01 -t 6 -i 羽毛球"

Can the project be used?

I found something wrong with the validate picture.
Error: ENOENT: no such file or directory, open 'F:\GymAutoOrderSEU-main\validate.jpg'
And then I change the saved address and name of validate.jpg (it initially in the Validate folder and be saved as the name of validate${formData.username}.jpg), and it still can't work for the same reason as above.
Fine, then I download a picture as an initial picture to deal with the problem, but the parsed picture always being the same as the initial picture(the picture is changed), and finally this picture format inexplicably has a problem, and can not be parsed, so the program is over. (I can't open the picture using the photo software as well.)

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.