Skip to main content

Test Feed

This is what I get when I choose the next 7 days and health/wellness for my feed, while not hiding recurring events. Feed URL is:

https://events.stanford.edu/calendar.xml?event_types%5B%5D=37093217343447&experience=

Same settings below, with recurring events hidden. Feed URL is:

https://events.stanford.edu/calendar.xml?card_size=small&event_types%5B%5D=37093217343447&experience=&hide_recurring=1

Here I’ve chosen just today, health/wellness, recurring events not hidden. URL is:

https://events.stanford.edu/calendar/day?card_size=small&order=date&days=1&experience=&event_types%5B%5D=37093217343447

And this is today, health/wellness, recurring events hidden.

https://events.stanford.edu/calendar.xml?card_size=small&days=1&event_types%5B%5D=37093217343447&experience=&hide_recurring=1

I used the search tool to find health/wellness, filtered those results to the next seven days, and built this feed. Note that the URL includes start-date=2021-12-09 which is certainly not what I want. This example is with recurring events turned on:

https://events.stanford.edu/search/events.xml?days=7&event_types%5B%5D=37093217343447&experience=&start_date=2021-12-09
RSS Error: WP HTTP Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Here I’m hiding recurring events. I chose the next seven days, which the URL shows, but it still includes today’s date. Why am I seeing events four to six months from now?

https://events.stanford.edu/search/events.xml?days=7&event_types%5B%5D=37093217343447&experience=&hide_recurring=1&start_date=2021-12-09
RSS Error: WP HTTP Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

After hearing back from Localist

So apparently, we use the Widget Builder for this, Preview the widget, copy the resulting URL, and change format=html to format=rss:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&all_instances=1&format=rss&template=modern

Here I’ve built the same feed, but turned off Include All Matching Instances but they’re in the wrong order:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&template=modern
  • Gentle Yoga Class with Diane Saenz. Suitable for beginners and taught in a precise yet simple manner, gentle yoga is perfect to start or renew a yoga practice. Come and…
  • Join Stanford Living Education on Tuesday, June 6, from 5-7pm for live music, food, and drinks at Rogers House (581 Capistrano Way). We will come together as a community to…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • Join students from the PWR 91JSA: Communicating Science in Public Spaces class for an exhibition about the Arizona Cactus Garden. You'll learn about why this historic garden…
  • Share with other undergrads and grads who identify with ADHD (diagnosis not required). This is a facilitated group that provides a confidential space for discussing strategies…
  • Evening Guided Meditation is designed to offer basic meditation skills, to encourage regular meditation practice, to help deepen self-reflection, and to offer instructions on…
  • The Molecular Imaging Program at Stanford (MIPS) was established as an inter-disciplinary program in 2003 by the Dean of the School of Medicine (Dr. Philip Pizzo) and brings…
  • This group is for people who are Queer-identifying and/or Questioning. We ask that loved ones/family members of LGBTQ+ access resources specifically available to allies…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • The Bechtel International Center and SURPAS (Stanford University Postdoctoral Association) are proud to announce the 2023 International Badminton Tournament! All international…

So here’s an attempt to figure out the write parameter to add to the query string so it sorts chronologically:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&direction=asc
  • Gentle Yoga Class with Diane Saenz. Suitable for beginners and taught in a precise yet simple manner, gentle yoga is perfect to start or renew a yoga practice. Come and…
  • Join Stanford Living Education on Tuesday, June 6, from 5-7pm for live music, food, and drinks at Rogers House (581 Capistrano Way). We will come together as a community to…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • Join students from the PWR 91JSA: Communicating Science in Public Spaces class for an exhibition about the Arizona Cactus Garden. You'll learn about why this historic garden…
  • Share with other undergrads and grads who identify with ADHD (diagnosis not required). This is a facilitated group that provides a confidential space for discussing strategies…
  • Evening Guided Meditation is designed to offer basic meditation skills, to encourage regular meditation practice, to help deepen self-reflection, and to offer instructions on…
  • The Molecular Imaging Program at Stanford (MIPS) was established as an inter-disciplinary program in 2003 by the Dean of the School of Medicine (Dr. Philip Pizzo) and brings…
  • This group is for people who are Queer-identifying and/or Questioning. We ask that loved ones/family members of LGBTQ+ access resources specifically available to allies…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • The Bechtel International Center and SURPAS (Stanford University Postdoctoral Association) are proud to announce the 2023 International Badminton Tournament! All international…

And trying again, sorting desc:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&direction=desc
  • Gentle Yoga Class with Diane Saenz. Suitable for beginners and taught in a precise yet simple manner, gentle yoga is perfect to start or renew a yoga practice. Come and…
  • Join Stanford Living Education on Tuesday, June 6, from 5-7pm for live music, food, and drinks at Rogers House (581 Capistrano Way). We will come together as a community to…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • Join students from the PWR 91JSA: Communicating Science in Public Spaces class for an exhibition about the Arizona Cactus Garden. You'll learn about why this historic garden…
  • Share with other undergrads and grads who identify with ADHD (diagnosis not required). This is a facilitated group that provides a confidential space for discussing strategies…
  • Evening Guided Meditation is designed to offer basic meditation skills, to encourage regular meditation practice, to help deepen self-reflection, and to offer instructions on…
  • The Molecular Imaging Program at Stanford (MIPS) was established as an inter-disciplinary program in 2003 by the Dean of the School of Medicine (Dr. Philip Pizzo) and brings…
  • This group is for people who are Queer-identifying and/or Questioning. We ask that loved ones/family members of LGBTQ+ access resources specifically available to allies…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • The Bechtel International Center and SURPAS (Stanford University Postdoctoral Association) are proud to announce the 2023 International Badminton Tournament! All international…