Git Product home page Git Product logo

lesson_plan_optivum_vulcan's Introduction

LINUX

VULCAN's Optivum lesson plan

Checks and notify if change lesson plans.

This is paid plan which buy polish schools at Vulcan site to generate lesson plans.

Config first

Rename config file plancheckcfg to prepend with dot and fill with.

Mail

mailssl=
mailsmtp='mailserver:port'
mailuser=
mailpass='password4mailfrom'
mailfrom='mailfrom@adress'
mailto='mailto@adress'

mailssl : if no SSL just leave blank mailuser : leave blank if same as mailfrom

Styling

htmlstyle : it is preconfigured but if you want change for exp. colors then just edit

List active

planactv=("20220901" "20230624")

Between this date lesson plans will be checked. First is begin date (format YYYYMMDD) and second is end.

List

planlist=(
"ZS16;https://zs16.edu.bydgoszcz.pl/plan-lekcji;5d"
"ZS16;;7a"
"ZSM2;https://www.zsmnr2.pl/zsm/plan-lekcji;3TDp"
";;1TCp"
"ZS10;https://sp31.bydgoszcz.pl/plan/plany/o14.html;4c"
)

Each entry in list consists of 3 items separated by a semicolon. The first example above is for new api and last is for old api. Leaving empty field, like in 2 and 3 line, means use of last value from previews line. Last item is class ID in case when data under url not belong to it.

To get links for first just copy from adress bar, for last copy link from left panel.

Web Page

Directory www contains HTML files for public access. This direcory can be symlinked or synced to actual domain directory. HTML body/styles/script are put inside script with no external config. File template.html contains page skeleton. If you wish not generate HTMLs just remove www dir or leave this blank:

htmlwww=

Get links

2.0 Just copy from adress bar.

2.0

1.0 Copy link from left panel (left click and Copy Link).

1.0

Install and run

Just put on any linux server or host with shell. Set execute flag on script with chmod +x. Set it to run as cron job.

Args

  • -m -> force send mail
  • -u -> just update and no sending mail.

lesson_plan_optivum_vulcan's People

Contributors

exa18 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.