DSB iServ Library
This Library tries to help you receiving dsb plans from iServ.
What do I need ?
- A school with iServ (v3 required)
- The "Plan" module need's to be installed in iServ
- The school needs to use the DSB Software with Untis
How does it work ?
The module tries to login with your iServ credentials and extracts the iframes out of iserv.
The difficulty behind this is, the DSB consist of many many iframes and js hrefs.
After the module got the last html page with the final plan, it will parse it into json.
How can I use it ?
const DSBLib = require('dsbiserv');
const dsb = new DSBLib('myschool.de', 'max.mustermann', 'mypassword', 'A path to a cookie session cache (OPTIONAL)', true , 'iserv/plan/show/raw/DSB%20Schueler');
dsb.getDSBPlans((error, Plans) => {
console.log(Plans);
});
dsb.getParsed((error, Plans) => {
});
dsb.parsePlan(HTML, (error, Parse) => {
});