catmanjan / anutimetable

Intuitive timetable builder for the Australian National University.
http://www.anutimetable.com/
58 stars 33 forks source link

On-demand (or scheduled) re-sync #283

Closed cjchristopher closed 3 years ago

cjchristopher commented 5 years ago

Rather than explicit requests or monitoring for resynchronisation, it might be worth automating it (once a day? week?), at least (especially) until semesters start in earnest.

Side note - current state as of 01/02/19 is out of date.

mdchia commented 5 years ago

I am sadly lacking a server to do so atm. I just resynced it though, hope that helps!

tagpro commented 5 years ago

@mdchia How about a firebase function to do so? I am not sure about the pricing but the basic plan should help you get a function up. You can host on firebase as well.

BishopOfTurkey commented 5 years ago

@tagpro Scraping outside of the ANU network is slow is slow so. Maybe a raspberry pi setup on campus somewhere might work.

catmanjan commented 5 years ago

i dont know if they do it anymore, but you use to be able to run things in partch under your account

mdchia commented 5 years ago

Firebase basic plan only allows connections to Google services as far as I can tell, unfortunately. Slow is fine as long as it doesn't time out or something in the process, I think? And I don't have a partch account atm but the last time I tried the partch scripts didn't work anymore.

brendanmeyer commented 5 years ago

The current timetable is out of date. For example, I can't see COMP1100 5pm tutorial on Tuesdays for Semester 2.

Maybe it could be an idea that allows a user to re-sync a particular class. And maybe limit it to 1 or a few times a day.

BishopOfTurkey commented 5 years ago

Something to look into. The way classes are stored might need to changed. Introduces a server to the project though. Not sure if xss would be a problem if done client side.

brendanmeyer commented 5 years ago

sorry, I was more referring to the hosted version, rather than the offline compatible version

KitKat27 commented 5 years ago

BUSN7008 opens a new tutorial, could yall update? Big thanks!

mdchia commented 5 years ago

done!

KitKat27 commented 5 years ago

done!

Checked just now, still not available sor. Umm it's on Wed 3-4pm, newly opened. Appreciate if u could check again.=)

BishopOfTurkey commented 5 years ago

@KitKat27 Sorry something went wrong with the merging. Should be working now

brendanmeyer commented 4 years ago

Could you please do another Pull, it is out of sync again. Thank you in advance I'm looking at COMP1110 and COMP1600

BishopOfTurkey commented 4 years ago

Another solution to this would be using github actions

brendanmeyer commented 4 years ago

added a PR for now #354

BishopOfTurkey commented 3 years ago

Implemented using github actions. Should scrape daily

brendanmeyer commented 3 years ago

Hey @BishopOfTurkey

(Edited) That is great, though, unfortunately, it doesn't look to be updating the mail website.

The webpage still says "Course list updated on 13th of February, 2021." And the course I am seeing incorrect this semester is COMP2300, specifically, Lec0B which should show as 13.30->15.00 on Mondays (correct on timetabling.anu.edu.au) and currently shows as Thursday.

Thank you again for your work. Brendan

BishopOfTurkey commented 3 years ago

Thanks @brendanmeyer. Should be working now.

brendanmeyer commented 3 years ago

Great, looks to be updated now :) thanks And I feel this is a great feature.