Heh, so I managed to get this Pico W running MicroPython and printing things to the screen. Then, I got it connected to wifi and made an authenticated Mastodon API call to fetch notifications.

Kind of tricky from there, since there's not a ton of memory on this thing and JSON can be a bit much for it. But, I did get it to start printing incoming toots!

Even with the memory problems in parsing the API response, it twists my melon that this lil thing has enough oomph to run a Python dialect, connect to wifi, make HTTPS requests, parse JSON, and make lights blink (and I didn't even do much besides glue existing libraries together)

I'm thinking a next-ish step is to get a websockets client on this thing and latch onto the Mastodon streaming API. Then again, occasional notification API polling is probably good enough for this thing while I think about what goofy things to make it do in reaction to toots

@davsebamse It doesn't, yet, but that's a good idea!

@randomgeek Haven't tried (or heard of) TinyGo yet, but this looks promising? tinygo.org/docs/reference/micr

@randomgeek Looks like wireless support is still a to-do for the Pico W, but will need to keep an eye on that

github.com/tinygo-org/tinygo/i

@maddiefuzz This seems like something that would fit perfectly into Caves of Qud

@kattni heh, i may have seen your tutorial on posting with circuitpython just after i took that picture

@fraying @timbray FWIW, there have been a few attempts at scrapers over the years. The attempts tend to be rather rude and get blocked by a big chunk of servers. That tends to stymie the usefulness of the index. Not impossible but I think the old ask-forgiveness-later approach doesn't go as far on the fediverse as on the wider web

@gsora @doot Yeah, that Model M isn't so much a "clicky" keyboard as a "TANG-TANG-PTING" keyboard

@doot @galadhremmen @gsora Were the stairs okay?

2022/12/29