Building out a #python test environment on Audra to tinker with that AHT-20 sensor.
In reworking some of my bots to use #matrix instead of #xmpp, I'm looking at using a single unlisted room instead of chats to individual accounts (1:1 chat, not MUC).
This changes the command parser substantially. Probably more than I think.
What I'm considering is whether to keep the commands looking like "Bot, do this thing..." or switching to "Do this thing..." and the bots present look at the message, see if it's from their owner (me, in this case), and if so proceed to parse the command. The latter means that failed parses would fall into the same case as mis-parses, and result in a storm of error responses from every bot that doesn't have commands like that.
Of course, bots could easily just not send error responses, but that messes up the "there really is an error" handling case.
I'm also toying with the idea of having both use cases implemented for usability's sake (plus, it adds the "send commands directly to the bot" case).
What do you think, #fediverse?
I make stuff that crunches numbers. Got tired of red team, now sysadmin/defense.
My imaginary friends are better conversationalists than I am, and are written in #python and #ruby.
Lots of augmentations of the hardware and software kind. Chances are you might have a conversation with one of them and not realize it. About a third of me is prosthetic these days.
I suck as an electrical engineer but sometimes I can patch stuff together.
I like picking locks. Still trying to get good with padlocks.
I assume you've been told about Homestuck.
I like to be well informed. The downside of this is that I don't sleep well anymore.
I love music.
Yes, I use Arch. I don't care what you use as long as it does what you need.
Universal JSON Server is now v2.0:
https://github.com/virtadpt/exocortex-halo/tree/master/universal_json_server
Okay, this is weird...
I have a server written in #python that can accept HTTP PUT requests on a particular URI:
https://github.com/virtadpt/exocortex-halo/blob/master/exocortex_xmpp_bridge/rest.py#L146
I also have a client written in Python which sends messages to the server on that URI with PUT requests:
https://github.com/virtadpt/exocortex-halo/blob/master/system_bot/system_bot.py#L164
Here's what's messing with me:
On my x86-64 boxen, this works just fine. It does what you'd expect, reliably, on demand. On my Raspbian machines, though, the exact same request doesn't work. The JSON doesn't deserialize.
Has anyone ever seen this before?
If I wanted to double-check my work porting #python 2 code to Python 3, would the `2to3` utility be useful for this?
So, I use run.sh scripts to instantiate #python virtualenvs, and supervisord to execute the run.sh scripts to start up system_bot.py.
If I tell supervisorctl to stop systembot (the service name), the bot keeps running, but run.sh may or may not be terminated. So there's an orphaned bot running in the background.
I suspect that I'll have to add something to the supervisord manifests.
Hmm.
Living 20 minutes into the future. Eccentric weirdo. Virtual Adept. Time traveler. Burnout. Thelemite. Technomage. Hacker on main. APT 3319. BOFH. Not human. 30% software and implants. H+ - 0.4 on the Berram-7 scale. Furry adjacent. Pan/poly. Cyberpunk but I don't have enough hair left for a pink mohawk; still have the leather jacket. Sburb speedrunner. XKCD 705. The Diet Coke(tm) of evil. Antifa cyborg supersoldier. Captain Corner Case.
Magneto was right.
(Avatar by Avery Liell-Kok.)