#dev 2020-01-09

2020-01-09 UTC
gxt and tbbrown joined the channel
#
@jeremyfelt
Webmentions are so freaking cool and I've only dipped a toe in
(twitter.com/_/status/1215070864229617664)
mblaney joined the channel
#
mblaney
hi jgmac1106
#
Loqi
mblaney: jgmac1106 left you a message 10 hours, 3 minutes ago: love to schedule a call to see how we could use and test ihazawebsite this coming semester
#
mblaney
sounds good, you've got my contact details yeah?
stevestreza and [tantek] joined the channel
#
[tantek]
snarfed++ thanks for the prompt fix, filed issue for tracking other possible terms/phrases: https://github.com/snarfed/bridgy/issues/908
#
Loqi
snarfed has 50 karma in this channel over the last year (90 in all channels)
#
Loqi
[tantek] #908 Bridgy source should rename blacklist and similar offensive terms
gRegorLove joined the channel
#
aaronpk
Mostly wiki and chat results tho
treora, cweiske, simons, swentel, rivercat, [KevinMarks], Luisa35, [grantcodes] and [Rose] joined the channel; eleitlDiscord[m] left the channel
#
[Rose]
Can anyone recommend a tool for converting an airport code into a timezone? I think I'll need to connect multiple things together to achieve this.
#
[Rose]
What is Atlas?
#
Loqi
Atlas is a set of APIs for looking up information about locations, including a timezone lookup, finding the name of a city given a latitude/longitude, finding the current weather at a location, and generating static maps https://indieweb.org/Atlas
#
[Rose]
I knew one part existed!
[jeremycherfas] joined the channel
#
[jeremycherfas]
I wonder whether FlightAware might be able to do this? I started playing with it yesterday and it seems to know the time zone of each airport, so maybe it exposes that somewhere.
#
aaronpk
[Rose]: i'm pretty sure i have a file i found somewhere which lists all airport codes and their timezones
#
aaronpk
ah that file it's using just has coordinates of the airports, then atlas looks up the timezone of the coordinates
#
[Rose]
Wonderful, thanks!
#
aaronpk
swentel: do you have a suggestion for how dries could get e-content on his site? it looks like cssgrid is conflicting with it
#
[Rose]
I've been asked to add TripIt integration to my bookings app, this requires a lot of work with timezones, but I think it will be pretty handy for my ownyourtripit project too
#
aaronpk
timezones are fun :)
#
[Rose]
I'm a little daunted by the scope of this. But fortunately(?), the way the current data is structured requires a new DB anyway to add pretty much all the other features I need (such as OAuth!), so I get to basically "do over"
#
[Rose]
Maybe it doesn't quite _require_ it, but it will certainly be easier in a relational DB
swentel joined the channel
#
swentel
ugh, got disconnected
#
@aaronpk
↩️ This is actually a very good description of the benefit of IndieAuth's use of URLs as client IDs. https://www.w3.org/TR/indieauth/#client-identifier Every app is identified by its URL, so you can build trust that way across providers.
(twitter.com/_/status/1215272819992350721)
#
@tauphipi
↩️ webmentions...that might certainly help transition folk away from these large platforms. I don't know enough about IPFS or DAT to know if it's feasible.
(twitter.com/_/status/1215275800146206721)
gxt, simons and [tantek] joined the channel
#
GWG
[Rose], aaronpk: I use the same data file for my location stuff and support lookup by airport
simons, [jgmac1106] and leg joined the channel
#
@soMelanieSaid
↩️ Huh, that’s annoying. Interestingly, camelCasing broke Webmentions via Bridgy, so might be worth also checking if connected services are healthy
(twitter.com/_/status/1215315001843433473)
gRegorLove and [tantek] joined the channel
#
[tantek]
Does anyone do indie monitoring of their indoor pollution / particular levels (ala Air Purple but with indoor sensors) ? Here's why: https://www.vox.com/2020/1/8/21051869/indoor-air-pollution-student-achievement
#
aaronpk
I hooked up a prototype recently! Need to figure out a permanent solution for it
#
jamietanna[m]
snarfed: Hacking the `features` manually seemed to work, so now I'm onto the next problem. There's no ability to link to my website from Meetup.com! So there's no `rel=me` link possible (although you can use i.e. Twitter)
#
@jeremyfelt
↩️ The rabbit hole is deep and beautiful! https://indieweb.org/Webmention See the back-and-forth between Steve and me as an example: https://jeremyfelt.com/2020/01/06/now-supporting-webmention/
(twitter.com/_/status/1215341288112844800)
jjuran joined the channel
#
jamietanna[m]
`sources = source_cls.query().filter(source_cls.domains == domain).fetch(100) not sure how this works, given there's nothing in the database entry for `kind=Meetup` that contains my domain?
#
jamietanna[m]
(from `publish.py`) ☝️
#
jamietanna[m]
I managed to get a link back to my domain via the tumblr social link, but as above it ain't working
swentel, jjuran_, gxt and jjuran joined the channel
#
swentel
so, I wonder, when you receive a webmention, I now go and parse the the source and then find out for instance that it's a reply. I think it all cases it's always because of microformats, but are there other examples of markup that could work too?
[KevinMarks] and [snarfed] joined the channel
#
[snarfed]
jamietanna hmm! good point. that's a new one.
#
[snarfed]
domain in solo profile isn't really necessary for interactive publish, but it is right now for automated publish, since the webmention trigger doesn't include the specific silo account
jjuran joined the channel
#
[snarfed]
target is just brid.gy/publish/[silo]
#
[snarfed]
do Meetup profiles have a description or bio or other plain text field that would be appropriate? we also pull web sites out of those for Twitter and other silos
#
jamietanna[m]
So you think I should try just sending a webmention manually and it may work, instead of doing the preview?
#
jamietanna[m]
Yeah they have a text field, and you can use the tumblr field to put a url to your site, although it's not ideal
gxt, jjuran and [Rose] joined the channel
#
[snarfed]
right. telling people to use the tumblr field is kinda confusing and poor UX, so I'm reluctant to use that, but the text field could work
#
[tantek]
depends, is the Tumblr field auto-linked and clickable?
#
[tantek]
we should consider the UX of the result of what we tell people
#
[snarfed]
jamietanna oh and no, webmention trigger will require domain (web site) even more than interactive
#
Loqi
I agree
#
jamietanna[m]
Sounds good. I've managed to remove the `.filter(...)` and that (and maybe some other tweaks) made it work up until it verifies the link to Brid.gy
#
[snarfed]
:trollface:
#
jamietanna[m]
I'll push a change to the site to get it the link to `localhost` temporarily
#
jamietanna[m]
tantek: let me just get you a photo 1 sec
#
[snarfed]
ah yeah and we need to keep that filter anyway, it's how we figure out which silo account to publish to 😎
#
jamietanna[m]
That's fair, it just helped me validate the rest of the stuff! So now I'm failing with `missing an in-reply-to` although there is one? https://php.microformats.io/?url=https://www.jvt.me/mf2/2020/01/kkdvk/
#
[snarfed]
hmm true. maybe it's looking for meetup.com, without www?
#
jamietanna[m]
https://media.jvt.me/aifmn.png is what it looks like when a Tumblr link
#
[snarfed]
oh also just fyi i never got the API key email. which addr did you send to?
#
jamietanna[m]
Oh weird - the one you said to, `"public" <public@ryanb.org>`
#
[snarfed]
huh ok, odd indeed
#
jamietanna[m]
I can try resending, or send i.e. on Twitter DM?
#
jamietanna[m]
Ah so there's not an `inReplyTo` in the ActivityStreams object, so may be something I need to tweak in Granary
#
jamietanna[m]
Could it not be picking it up because I've got a child `h-event` in there?
#
[snarfed]
hmm, maybe?
Nuve joined the channel
#
[snarfed]
might be easiest to debug granary's microformats2. object_to_activity() in the python shell interactively, it similar
#
[snarfed]
(something like that. sorry, on phone right now)
#
jamietanna[m]
Yeah doing that has definitely proved that `json_to_object` doesn't parse it correctly
#
Loqi
[Calum Ryan] Attending IndieWebCamp London 2020 yes to https://2020.indieweb.org/london
#
jamietanna[m]
Hmm, it does parse it, but it parses it into the `$.object.url` does that sound correct, Snarfed? My understanding of ActivityStreams is poor!
#
jamietanna[m]
That's how the existing parser works though, so likely an error in how I implemented the Granary code
#
[snarfed]
hrm, this is all mf2 -> AS1, ie unrelated to Meetup code at all
#
[snarfed]
i may need to be at a computer later to be able to help more
#
jamietanna[m]
Correct - but it looks like when I implemented the Meetup glue code in Granary, I got it wrong
#
jamietanna[m]
I was looking for `$.inReplyTo`, not `$.object.url` for the RSVP `in-reply-to`
#
[snarfed]
ohh got it! yes, that sounds likely. feel free to compare to other silos' create methods
#
jamietanna[m]
Think I've got that bit now, it's now trying to create the request, and I've got something else wrong - just digging into it now
[calumryan] joined the channel
#
jamietanna[m]
snarfed OK, so within Granary I've assumed that the `actor` is going to be the actual user on Meetup.com, but in Bridgy's case, it's my profile URL - I'm guessing I should refactor to use the URL as the actor?
#
jamietanna[m]
That's apparently worked 😱
#
jamietanna[m]
Yep that's worked 🙌
#
jamietanna[m]
I'll raise a PR shortly for the Granary changes
[schmarty] joined the channel
#
@thetrevorharmon
↩️ Haha yeah, I got mine from @kentcdodds, but I feel the same way. I would love to add webmention support like @mxbck, but just haven't gotten that far yet. https://mxb.dev/blog/using-webmentions-on-static-sites/
(twitter.com/_/status/1215392752566845441)
#
jamietanna[m]
snarfed: Granary fixes here https://github.com/snarfed/granary/pull/181 which then mean my existing Brid.gy PR works with no tweaks!
#
Loqi
[jamietanna] #181 Fix: Meetup library defects
#
jamietanna[m]
(this still does it via Tumblr - unless that's something fairly straightforward we can resolve?)
#
@thetrevorharmon
@kmelve Just came across your post about Gatsby + Webmentions and am pumped to get it working on my site! Thank you for writing this! https://www.knutmelvaer.no/blog/2019/06/getting-started-with-webmentions-in-gatsby/
(twitter.com/_/status/1215395831840301056)
#
[snarfed]
nice work, jamietanna! will look tonight
#
jamietanna[m]
Awesome, thanks!
#
jamietanna[m]
Did you want me to try resending the API key for Meetup?
#
[snarfed]
please do!
#
[snarfed]
if it still doesn't work, we can try Twitter DM or whatever
#
jamietanna[m]
Also what is the likelihood that you think we'll be able to put it live this weekend?
#
jamietanna[m]
Cool, will do
#
[snarfed]
and yeah, you'll probably also want to extract web sites from the text field. see examples in other sold, eg Twitter. there's a helper utility fn in util
#
jamietanna[m]
Would that be withing Granary or Bridgy?
#
jamietanna[m]
I'm guessing Granary?
#
[snarfed]
granary, user_to_actor()
#
[snarfed]
i think
#
jamietanna[m]
Yeah I see it now, thanks!
#
[snarfed]
weekend may be possible. I'm on a ski trip today through Sun so I'll only have bits of time at a computer in the evenings, if any, so may be sometime next week
#
jamietanna[m]
Okey dokey!
jjuran joined the channel
#
@JamieTanna
With the help of http://snarfed.org I've now got http://brid.gy running locally and syndicating RSVPs from my website to http://Meetup.com - hopefully it'll be live next week for the rest of the #IndieWeb to enjoy… https://www.jvt.me/mf2/2020/01/mdlpt/
(twitter.com/_/status/1215407887826259968)
gxt and KartikPrabhu joined the channel