Module that grabs the notices and returns an array from a KAMAR school portal
npm install kamar-notices
or use yarn
yarn add kamar-notices
const KamarNotices = require("kamar-notices");
const notices = new KamarNotices("PORTAL_URL");
notices.getNotices().then((noticeList) => {
/*
[
{
for: 'All',
title: 'Test Notice',
staff: 'ABC',
content: "This is a test notice"
}
...
]
*/
});
Checkout my notices-screen repo for a way to display it on a TV.