Code Monkey home page Code Monkey logo

ssu-scheduler's Introduction

SSU-Scheduler

Middleware app for pushing schedule from SSU to Google Calendar.

Available params

There are a few params that can be customised.

Env var Default value, units Notes
UPDATE_TIMEOUT 30, mins Events update frequency
CLIENT_SECRET None Client Secret from https://console.cloud.google.com/apis/credentials
CLIENT_ID None Client ID from https://console.cloud.google.com/apis/credentials
WEB_URL None Redirect URL base. External app address which will be used by Google to redirect authorization
DEBUG_LEVEL 'INFO' Set debug level

Basic usage

Deploy the application:

export CLIENT_SECRET='' && export CLIENT_ID='' && export WEB_URL='http://127.0.0.1:5000' && export UPDATE_TIMEOUT=1 && export DEBUG_LEVEL='DEBUG'
docker compose up -d

Or create the .env file and put your vars in it.

Also, you can run the dev variant (the only difference is exposed Postres ports):

docker compose up -d -f docker-compose-dev.yaml

Go to web page, complete configuration, and wait till update task will be executed (no longer than UPDATE_TIMEOUT)

Web FAQ

Q: How to disable scheduler?

A: Go to /logout page. This will remove user from app DB and schedule will no longer be updated


Q: How can I see my current configuration?

A: There is no such possibility. All actions are performed with re-authorization with Google. I don't want to write my own authorization system So that just re-login and set desired settings.


Q: Schedule stopped updating. What happened?

A: Try to re-login. Probably refresh token has expired, so you needed to re-login manually(remember about update timeout). If this doesn't help please contact the app owner.

ssu-scheduler's People

Contributors

dimonbor avatar

Watchers

 avatar

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.