evanhsu / mmm-titanschoolmealmenu Goto Github PK
View Code? Open in Web Editor NEWA module for the MagicMirror framework that retrieves a school meal menu from the LinqConnect API (formerly known as the Titan Schools API)
A module for the MagicMirror framework that retrieves a school meal menu from the LinqConnect API (formerly known as the Titan Schools API)
The API for my kids school changed ServingSession
to "Seamless Summer Breakfast" and "Seamless Summer Lunch" for some reason. This causes the menu to show as "none".
I changed TitanSchoolsClient.js
line 123 to:
const breakfastOrLunch = menuSession.ServingSession.match(/breakfast/i) ? 'breakfast' : 'lunch';
And now the menu shows up again.
I didn't submit a PR because this feels more like a hack than a fix.
This is what the API returns now.
Titan changed both the name of the site (now Linq Connect) and the API URL
The new API URL is
https://api.titank12.com/api/
Everything else seems to have stayed the same, including district and building IDs.
The menu for "today" is shown all day (until midnight). When the numberOfDaysToDisplay
config option is set to 1
, this typically isn't the info that you're interested in (meals that already happened).
When the numberOfDaysToDisplay
config option is set to 1
, the menu for "today" should be shown until lunchtime has ended, then the menu for tomorrow should be shown instead. We could probably switch to "tomorrow's" menu at 2pm local time.
When the numberOfDaysToDisplay
config option is set to something greater than 1, we should preserve existing behavior (today's menu is shown until midnight)
I'd like the ability to hide breakfast, which is not currently possibly because both breakfast and lunch use the same class. Separating the classes will allow users to customize based on meal type (e.g., coloring one type). I'll create a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.