Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@n3xus I focus on swift because maybe you could direct access to the data at the school and wouldn’t need to write a scraper
-
Honestly it would work better if there was a real time database (like firebase) but that would require every school using the app to upload. I mean I guess it works if it’s just for one school, but it doesn’t exactly scale well
-
I actually wanted to do exactly the same for my school, but after some thinking, I figured out it would be easier and better to make a Telegram bot instead of the app. Advantages are:
Cross platform for iOS and Android (and even desktop)
Ridiculously easy to write
With an inline call you can easily send substitutions to someone to tell them
Add the bot to a class group and everyone gets the notification
I got the data by scraping a html table that my school did provide on their homepage. Is yours Untis? -
@MatiasConTilde yeah, do you have a repo of the bot? If so which Lang is it written in?
-
@MatiasConTilde Are you German?
And could you give me some kinda explanation how the database should be structured for the bot to work? -
@bcye Sorry for taking so long to reply
The code is a real very big mess, so I'd rather not publish it, but I'm rewriting everything from zero. It's written in node.js with the node-telegram-bot-api library. To get the information, I scrape the HTML table with tabletojson on npm. I used Firebase for the database, but it's actually not a very good idea, and something simple like lowdb is quite enough. There I sotred the "accounts" of the people using it, just their Telegram ID, their class and time they want to get notified. Then I check every minute if now it's the time of someone, and send them the substitutions that person has right now from the scraped table. -
@MatiasConTilde I tried it out to apply on my school, but didn’t work, can I help rewriting?
teacher substitution schedule ios app.
teacher substitution schedule ios app.