Feature request: Recent Kinds Widgets and/or Now page aggregation

Filed an Issue Post Kinds Plugin for WordPress (GitHub)
adds support for responding to and interacting with other sites using the standards developed by the Indieweb Community - dshanske/indieweb-post-kinds

Recent Kinds Widget

It’s a reasonably frequent design/functionality pattern to see widgets from social media services. (Goodreads is an example that provides a widget for recent reads. Twitter does so for notes. There are countless others.) 

In an IndieWeb world, it would be nice to highlight what one has recently read, watched, or listened to (as examples). Towards this functionality, it would be nice if Post Kinds could provide the ability to add widgets for a variety of the post kinds to sidebars or footers.

As a baseline I could envision each widget having:

  • a configurable title (“Recently read”, “Food diary” for eats & drinks, “Microblog” for recent notes, bookmarks, etc.)
  • a chooser for one (or more) of the many various (enabled) kinds
  • a variable N to allow for display of the N most recent of the chosen kinds; 5 or 10 might be a reasonable default; a time-based variable to run across the post within a recent period (days, weeks, months) might be a an interesting alternative as well

For display of a single kind, the widget might default to displaying:

  • a heading made of the post kind icon along with “Recent [Post Kind Name plural]”
  • Response Property Name (wrapped with the original permalink if it exists) by Author name (if it exists)
  • An optional published date for the original content (if it exists) or the date the site owner published the post kind (if it exists) (the original content date would be better for context, I think)
  • A fleuron () or hash (#) which could be wrapped with the permalink of the original Post Kind post.

UI example: 

 

If the chooser in the widget allows for displaying multiple kinds at the same time, then one could have a widget for “Recent Media Consumed” or for displaying a sidebar microblog that could include Notes, bookmarks, reads, etc. (Making it similar to embedding one’s Twitter feed into a sidebar.

For encouraging outside consumption, the widget could also have a small RSS icon with a link to that Kind’s (or Kinds’) feed.

Naturally there could be some configuration for reasonable display defaults for some of the various Post Kinds./

Now archive page

Given some of the potential similarity of the widget work above, it would also be fun to have Post Kinds generate an archive page that shows by kind either the N most recent posts for each kind or all the posts within the last M days, O weeks, or P months.

This could be used to automatically generate the idea of a Now page that gives a quick overview of what a person has been up to over a relatively recent time period. A month of posts would be a good default.

One might also be able to use a solution like How to Add WordPress Widgets in Post and Page Content as a means of embedding the widgets into such a Now-type page, which could give the user the ability to pick and choose which order to place the particular kinds into based on the site owner’s discretion.

Watched Harry Potter and the Prisoner of Azkaban (2004) from Amazon Prime
Directed by Alfonso Cuarón. With Daniel Radcliffe, Emma Watson, Rupert Grint, Richard Griffiths. Harry Potter, Ron and Hermione return to Hogwarts School of Witchcraft and Wizardry for their third year of study, where they delve into the mystery surrounding an escaped prisoner who poses a dangerous threat to the young wizard.

Rating: ★★★★★  

Watching passively as I do other things.

Bug in the Weather Widget display of sunrise/sunset and moonrise/moonset

Filed an Issue Simple Location (GitHub)
Adds Basic Location Support to Wordpress. Contribute to dshanske/simple-location development by creating an account on GitHub.
I’m noticing that the sunrise/sunset and moonrise/moonset details in the Weather Widget are “off”. It currently displays the following:

Sunrise: 10:40 pm
Sunset: 10:47 am
Moonrise: 10:54 am
Moonset: 10:32 pm

Sunrise should be 7:13 AM (roughly for today) though 6:13 AM for tomorrow after Daylight Saving Time changes tonight. Moonrise today should be roughly 5:52 pm and moonset at 6:14 am.

Manually changing the lat/long in the Weather widget doesn’t seem to fix it. I also get the same numbers if there isn’t lat/long in the widget but have them in the user profile in the location section.

I’m using OpenWeatherMap as the provider, and I notice I’m getting two different readings for the sunrise/set & moonrise/set depending on whether I’m using the User Last Seen Widget or the Weather widget, so maybe the issue is hiding in the difference between calculations of one versus the other? The weather widget is the one giving the incorrect readings.
 
Watched Harry Potter and the Goblet of Fire (2005) from Amazon Prime
Directed by Mike Newell. With Daniel Radcliffe, Emma Watson, Rupert Grint, Eric Sykes. Harry Potter finds himself competing in a hazardous tournament between rival schools of magic, but he is distracted by recurring nightmares.

Rating: ★★★½

Passively watching this in the background while doing other things, eating, etc.