#dev 2020-09-14

2020-09-14 UTC
gRegorLove, [chrisaldrich], ndegruchy, sp1ff, jonnybarnes and cam joined the channel
#
[tantek]
GWG, check out this python PurpleAir AQI polling and notification code that a friend of mine wrote: https://github.com/dtran320/runair/ (maybe aaronpk would be interested too)
#
aaronpk
lol my SMS inbox would be overflowing
#
GWG
I'm still disappointed that I can't found a site to share my AQI with.
#
aaronpk
it hasn't got below 300 outside in days
#
GWG
I also have issues with how you calculate AQI
#
aaronpk
i went with the purpleair PM2.5 to AQI mapping
#
Loqi
[Aaron Parecki] Air Quality
#
GWG
Which is the other site mentioned in the article you sent
#
GWG
If you want to calculate purely on PM2.5 and PM10, which is what I have, and I believe PurpleAir has only, there is a formula.
#
GWG
Wait...the PurpleAir sensor also has PM1
#
GWG
PM1 is ulta-fine dust, bacteria, and viruses. Fun.
jonnybarnes, beko, jeremycherfas, geoffo and nickodd joined the channel
#
GWG
Why does PHP's DateInterval not have an output for ISO8601 despite accepting it as an input
jonnybarnes and [jeremycherfas] joined the channel
#
jamietanna[m]
<JK_na "swentel: hello, can I ask how in"> Do you mean when you're uploading an image (on the upload screen) or when you're trying to post the image in a more
[James_Gallaghe] joined the channel
#
JK_na
jamietanna: generally in a note, I've not tested captions via image upload if they are formatted differently. In note, I upload the image the edit it to add a caption.
#
jamietanna[m]
Sure, so the caption follows https://indieweb.org/Micropub-brainstorming#Alternative_text_for_photos_in_form-encoded for how it's uploaded - I think Indigenous will send `mp-photo-alt` when one is sent, and `mp-photo-alt[]` when multiple, as per the spec
#
JK_na
jamietanna: Many thanks, I'll delve into my micropub server later and see about adding those.
swentel, brian1, [chrisaldrich], inkjama, [frank] and moppy joined the channel
#
JK_na
is the `mp-photo-alt` property sent to the media server, rather than in the post to the micropub server? I'm using https://github.com/skpy/micropub with minor tweaks, and it seems to me that it should dump all properties into the files that it creates and it does for everything except the `mp-photo-alt` - I'm thinking that perhaps I ought to be looking at the media server instead..
#
Loqi
[skpy] micropub: a minimal PHP micropub endpoint, with media support
jeremycherfas, [tonz] and jonnybarnes joined the channel
#
Zegnat
GWG: if you are looking at date and time stuff in PHP, if something is missing from PHP’s built-in, sometimes you may find what you need in https://github.com/wmde/Time
#
Loqi
[wmde] Time: Time value objects, parsers and formatters
#
Zegnat
That is what Wikidata uses for sort of things that standard libs could not handle
[Ana_Rodrigues], djmoch, lahacker, peterrother, [Murray], [pfefferle], jeremycherfas, inkjama and jonnybarnes joined the channel
#
GWG
Zegnat: Thank you, may be inspired by it. I have a collection of simple time functions I use, such as one that constructs a DateTime object from a date, a time, and a timezone as there isn't a simple form input for all three...so I collect them separately
jeremycherfas, jeremych_ and ndegruchy joined the channel
#
@EatPodcast
↩️ Test reply because @chrisaldrich was getting an error. Might be OK with reply but not webmention, so will test that next.
(twitter.com/_/status/1305492532428787713)
[Murray], eneri, dckc, geoffo and [frank] joined the channel
#
jeremycherfas
Testing a website element in FF responsive design mode, is there any way to interact with a menu that is actually a checkbox? Trying to get a working, non-js hamburger.
[schmarty] joined the channel
[tb] joined the channel
#
[tb]
Mmm looks like I need to port indieauth_discovery to Node now for my Micropub client I'm building
#
[schmarty]
showing/hiding a menu is definitely possible with a checkbox
vilhalmer joined the channel
#
[schmarty]
the main trick tends to be making sure that the checkbox element and the element it's "controlling" are siblings in the document.
#
[schmarty]
(in the HTML, that is)
#
jeremycherfas
Yes yes, but for testing purposes, in responsive mode, how do I interact with it? Touch obvs doesn't work, and the mouse isn't seeing it as clickable.
#
[schmarty]
presuming that you are hiding the checkbox itself, the label for the checkbox will be interactable
#
jeremycherfas
OK. Let me poke around some more. Thanks.
#
[schmarty]
double-check that your checkbox has an ID <input type="checkbox" id="some-unique-id" /> and that there's a label for it: <label for="some-unique-id">click to toggle</label>
#
petermolnar
I use that checkbox hack for my theme switcher
[grantcodes] joined the channel
#
[grantcodes]
I'd recommend using an `<a>` + `nav:target` for a menu - more accessible and less of a hack
#
[Murray]
not sure this is relevant, but in Firefox responsive view there should be a little icon to enable/disable touch simulation. I tend to have that disabled and then mouse clicks (normally) work
KartikPrabhu, [jgmac1106], jeremycherfas, [manton], nickodd, [tonz], jonnybarnes and [chrisaldrich] joined the channel
#
@jkphl
↩️ Hab dir auch einen #Webmention geschickt, aber ich bin nicht sicher, ob sich unsere Website schon zum vollautomatischen Auslesen eignet. Ist auf der Prio-2-Liste ... ;)
(twitter.com/_/status/1305540835275137028)
[Ana_Rodrigues], [James_Gallaghe] and leg joined the channel
#
jeremycherfas
Never noticed that [murray]. I will look more closely when I resume my current futile quest.
#
@Cambridgeport90
↩️ I'm thinking that can plug somehow into the IndieAuth scheme, as well?
(twitter.com/_/status/1305550477212479488)
#
@m_ott
↩️ @jkphl Und ich muss bei mir dringend mal wieder am Webmention-Plugin schrauben, damit es Craft 3 kompatibel wird un… https://twitter.com/i/web/status/1305541399870398464
(twitter.com/_/status/1305541399870398464)
[tantek], swentel, jonnybarnes, [grantcodes], [jgmac1106], [manton], KartikPrabhu, [schmarty], maxwelljoslyn and [snarfed] joined the channel; nickodd left the channel
#
jamietanna[m]
<JK_na "is the `mp-photo-alt` property s"> Not sure if anyone's replied to you yet - the property is sent to the Micropub endpoint, not the media endpoint, as it's a property of the post not the media
#
JK_na
<jamietanna[m] "Not sure if anyone's replied to "> OK thank you, not sure why the micropub endpoint is either not receiving it or is selectively not dumping this property into the frontmatter. Might be quicker or easier for me to use a different endpoint than try and work it out. Appreciate the help!
#
jamietanna[m]
<JK_na "is the `mp-photo-alt` property s"> Re dumping all to file, if you are doing that, avoid `mp-` because they're commands for the server so the name won't map directly to a property
#
JK_na
<jamietanna[m] "Re dumping all to file, if you a"> OK thanks, my understanding is that it dumps everything into the frontmatter of the yaml file it creates but given it isn't I may be mistaken. I can probably do without the captions for the time being but when time allows, I'll figure it out (or switch endpoints!) 😅
[Ana_Rodrigues], justache, [Chaitanya] and jeremycherfas joined the channel
#
[tantek]
for all the location nerds here (GWG, aaronpk), and anyone that has shared a LatLong with more than 6 decimal places: http://nautil.us/issue/81/maps/what-happens-to-google-maps-when-tectonic-plates-move
#
[chrisaldrich]
No wonder my "house" seems to be across the street now...
#
[tantek]
has implications for EXIF too (petermonar, jeremycherfas), if your EXIF contains latLong info (which any smartphone photo does)
#
petermolnar
I was nearly summoned, but a typo prevented it :P
#
petermolnar
oh, that article is interesting
#
[tantek]
sorry petermolnar typo, and yes that xkcd is what I was referring to 🙂
gRegorLove joined the channel
#
GWG
Am I a location nerd? What makes on that?
#
[tantek]
fortunately latlong in web formats all use WGS84 datum by default so we don't have to explicitly include it
#
[tantek]
GWG, I believe you have taken part in quite a few location-related formats discussions and debates, and have pretty good well-informed opinions on the matter
#
GWG
[tantek]: I just wanted trip reports
#
[tantek]
GWG, immediate practical impact to consider is to record latlong for specific checkins in addition to the venue, since venues can move, and do move when there are earthquakes.
#
GWG
I do... although I don't currently have venue pages
#
GWG
Still pending
#
GWG
I wanted to do them as archive pages
#
GWG
But I never finished the design
#
[tantek]
hmm, I'm not sure about that as venues can have their own history (as we know from Foursquare venue edit histories)
#
GWG
[tantek]: I don't keep revision history... although your point makes me think I'd need to
#
GWG
WordPress does not keep metadata revisions, although there is a proposal
#
GWG
Although, being realistic, I remember some of the challenges other people mentioned about having their own venue database.
#
GWG
And no one, I think, is currently doing it. Those who did drifted away
#
GWG
So, we'll see
jonnybarnes joined the channel
#
GWG
[tantek]: Session for IWC East?
#
[tantek]
Venues? yes please
#
[tantek]
what is a business model
#
Loqi
business models are ways to offer indieweb products and or services that users pay for both for their own benefit, and in support an open indie web https://indieweb.org/business-model
#
[tantek]
business-model << Ideas and methods for creating a “bland” could be useful for a IndieWeb business that is attempting to provide a simpler and more interoperable alternative to larger companies: 2020-09-07 Bloomberg: [https://www.bloomberg.com/opinion/articles/2020-09-07/welcome-to-your-bland-new-world-of-consumer-capitalism Welcome to Your Bland New World] (scroll down to Template)
#
Loqi
ok, I added "Ideas and methods for creating a “bland” could be useful for a IndieWeb business that is attempting to provide a simpler and more interoperable alternative to larger companies: 2020-09-07 Bloomberg: [https://www.bloomberg.com/opinion/articles/2020-09-07/welcome-to-your-bland-new-world-of-consumer-capitalism Welcome to Your Bland New World] (scroll down to Template)" to the "See Also" section of /business-models https://indieweb.org/wiki/index.php?diff=72649&oldid=68028
flex14, [LewisCowles], shoesNsocks, jgmac1106, jonnybarnes, KartikPrabhu and gRegorLove_ joined the channel