Skip to content

Instantly share code, notes, and snippets.

@utumno86
Last active March 18, 2021 21:52
Show Gist options
  • Save utumno86/e6b6aa882dc313b331b6c88c50496724 to your computer and use it in GitHub Desktop.
Save utumno86/e6b6aa882dc313b331b6c88c50496724 to your computer and use it in GitHub Desktop.
chartwells_tips.md

In the case of Device id: 30236, the issue is not the template but the setup in the CMS. The meal station is set up like so:

MenuSetupProd

The data for Chartwells menus can be viewed at http://campusdining.compass-usa.com/{School}/Pages/SignageXML.aspx?location={Location}

where school and location are the same values from the playlist metadata. E.G., for the Screen mentioned above, the school is UCO and the location is Buddy’s Main Dining, so the data can be found (http://campusdining.compass-usa.com/UCO/Pages/SignageXML.aspx?location=Buddys%20Main%20Dining)

The template works by checking different “MealPeriod” sections of the XML from Chartwells based on time of day, as defined under the “---” on meal station 1. (I.E. from 7:30 AM to 11:00 AM it checks the breakfast section, from 11:00 AM - 2:00 Pm it checks the lunch section). It checks for a match with the meal station value, in this case “My Pantry Served”.

MealPeriodData

If you check the data section however, you will see that My Pantry Served is not in the breakfast lunch or dinner Meal Periods; it is in the “Every Day” meal period.

Every Day Meal Period

As a result the menus is not pulling in any data. The solution to this, which I made on the Callahan Comfort playlist in staging (but it’s pulling UCO data) is to create a meal period called “Every Day” which runs all day.

MenuSetupStaging

With that change, the data populates:

WithData

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment