This is supposed to be some kind of software system that tracks various sources to find out what I personally am currently doing, and then publishes that to several places.
Am I currently driving Jessie, my van?
To be fair, what it really checks is whether the van is moving continuously faster than a certain speed, respectively whether it has stopped moving again long enough. But there’s really rarely someone else driving.
Take all the available signals (currently, that’s just, uhm, one) and condense them to a status message to be used in any messenger.
Update my Slack status every time that messenger status changes.
I’m in just one Slack workspace, so the code doesn’t support multiple workspaces yet.
Some of these should totally end up in my Slack status. But I can see it in other places, too:
This code is heavily tailored to me personally. Nevertheless, if you’d like to try it out or customize it:
pip install pipenvpipenv syncSLACK_TOKEN: Slack user token with users.profile:write permissions.MQTT_HOST: For connecting to the MQTT server providing location updates like Jessie does.MQTT_PORT, MQTT_USER, MQTT_PASS: Self-explanatory, all optional.pipenv run python3 main.pyThis tool is also available as a Docker image: scy83/scystate.
It is currently built semi-automatically (because Codeberg doesn't have CI/CD features yet), which means that the Docker version may lag behind this repo's main branch.
However, since the Docker version is what I'm using myself to deploy scystate, it shouldn't lag by a lot.
You'll need to provide the environment variables mentioned above nevertheless.
I will probably not accept any code, since all of this is so heavily customized and I don’t need code that solves problems I don’t have. If you think you have something that I could really benefit from, let me know.
Also, please do let me know if you have ideas on how to access some of the data listed in “Planned” above, e.g. how to get OsmAnd’s ETA and destination.
You can contact me on Mastodon or Twitter, or simply create an issue in this repo.
Content type
Image
Digest
Size
109.8 MB
Last updated
about 5 years ago
docker pull scy83/scystate