Skip to main content

Simple Homework Site built using Sites, Forms, a few Scripts and Teacher Dashboard

We have built a simple homework site which is being tested at the moment by some staff. I was tasked with creating some system that could present set homeworks in a searchable form to parents and students while integrating with email and calendars.

I've used the Awesome Table Google Site Plugin to present filterable data from a Google Sheet on a site that parents and students can access. On another page of the site there is a form that teachers can use to submit homework. This feeds data into the public part of the site.

The Formmule script is used in the Sheet to collate the responses and create class email addresses and pulls off calendar id's via a vlookup function. The script then creates a calendar entry on the class calendar and sends the class an email.

To make this work I had to add the user 'homework' as a class teacher to each group. Our groups and calendars are made using Hapara Teacher Dashboard. So I simply added the homework user to the classes spreadsheet and synced classes. To get the calendar codes, I ran a script once the user 'homework' had all the calendars, logged in as calendar. This script will pull off all your calendars if added to a spreadsheet:

function listCals() {
var calendars = CalendarApp.getAllOwnedCalendars();
data = []
for (var i = 0; i < calendars.length; i++) {
data.push([ calendars[i].getId(), calendars[i].getName()])
}
var destinationRange = SpreadsheetApp.getActiveSheet().getRange(1, 1, data.length, data[0].length);
destinationRange.setValues(data);
};

function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var entries = [{
name : "List Owned Calendars",
functionName : "listCals"
},];
sheet.addMenu("Calendar", entries);
};

Hapara gave this script to me - I'm no script guru!

Once you have this, its fairly simple to create a vlookup function to pull off the correct class calendar code to create the event.

The result is a site which makes it very easy for staff to set homework, allows parents and students to look up homeworks and well as sending them an email and putting a reminder in their calendar. Still very much in the testing phase at the moment, but perhaps demonstrates what you can do with a site and a few scripts. Annually I will have to update the calendar codes and the class names as well as archiving old homeworks.

Brief video of the site and back end:



Comments

Popular posts from this blog

Delete a specific email using GAM

If a user send an inappropriate email to a loads of people or get stung by some sort of email exploit you can quickly delete the email from all of the recipients using a GAM command. Step 1 - get the email header Go into Google Vault and search for the offending user or someone known to have got the message. Click show details and grab the email ID. This will be a long string of characters followed by @mail.gmail.com Step 2 - find out who has the email Go into Google Vault and find the original message sent by the offending user. Look at the details to see who got it. Copy the list and dump it into a spreadsheet. Clean up to just a list of emails with a column header 'mail'. Save as a csv file. Step 3 - delete messages with GAM Put your CSV file in your GAM folder - this e.g. assumes its called mail.csv Run: gam csv mail.csv gam user ~mail delete messages query rfc822msgid: MESSAGEIDHERE doit The alternative nuke option is: gam all users delete messages query rf...

Adding subdomains to G Suite

This is how I add subdomains (so basically new schools) to out G suite setup. I've got these steps documented on a scruffy set of notes that I've now got in Keep - so time to document them - for myself as much as anyone else! Steps in order (roughly) Add the new domain Verify the new domain Add MX records to hosting Add SPF record for Google to hosting Turn on email authentication Add DMARC record to hosting Setup custom Directory and restrict students OU to this. Create an admin quarantine for the domain. Configure SPAM setting for the domain. Turn on and off services as appropriate. Map a blank Google Site to the naked domain - if required. Setup some basic groups - allstaff, allusers (for directory) and students with appropriate permissions. Deploy custom wallpapers. So the steps in a bit of detail: Add the new domain & Verify ownership Click on Domains in the admin console: Add/remove domains followed by "add a domain" At this...

My favorite GAM commands - well a few of them at least!

Where would be without GAM? Paying for expensive syncing tools or doing tedious manual tasks in the admin console. GAM can automate most things you might want to do in G Suite. So these are a few of my favourite commands - one I use either as part of a batch file - or just standalone. There are loads more - but these are ones that are used daily. Classroom Create a spreadsheet of all your domains classes -  gam print courses todrive Create a spreadsheet of a teacher's classes:  gam print courses teacher fred@mydomain.com todrive Bulk create classes: gam csv classes.csv gam create course alias ~alias name ~alias section ~subject teacher ~teacher status ACTIVE where classes.csv is a list of classes you want to make. Add teachers: gam csv teachers.csv gam course ~alias add teacher ~teacher Add students: gam csv students.csv gam course ~alias add teacher ~student Sync Students (in this example to a group - but could be an ou/csv file) gam csv grou...