{"id":21389429,"url":"https://github.com/tpltnt/hackerspace-api-bot","last_synced_at":"2025-03-16T12:46:42.789Z","repository":{"id":15704992,"uuid":"18442921","full_name":"tpltnt/hackerspace-api-bot","owner":"tpltnt","description":"Know about your hackerspace like a buddy.","archived":false,"fork":false,"pushed_at":"2014-10-19T10:18:39.000Z","size":268,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T00:41:12.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpltnt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-04T15:13:00.000Z","updated_at":"2014-10-19T10:18:39.000Z","dependencies_parsed_at":"2022-09-01T05:11:51.340Z","dependency_job_id":null,"html_url":"https://github.com/tpltnt/hackerspace-api-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpltnt%2Fhackerspace-api-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpltnt%2Fhackerspace-api-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpltnt%2Fhackerspace-api-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpltnt%2Fhackerspace-api-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpltnt","download_url":"https://codeload.github.com/tpltnt/hackerspace-api-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871652,"owners_count":20361378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T12:26:25.847Z","updated_at":"2025-03-16T12:46:42.768Z","avatar_url":"https://github.com/tpltnt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"hackerspace-api-bot\n===================\n\nBridge your hackerspace to [XMPP](https://en.wikipedia.org/wiki/XMPP). \nThe bot will be online when your hackerspace is open, and offline if \nthe space is closed.\n\nbot installation (Debian)\n-------------------------\n* create directory: ```$ mkdir /etc/hsbot \u0026\u0026 chmod 755 /etc/hsbot```\n* install Python: ```# apt-get install virtualenv python3```\n* create bot environment: ```$ virtualenv --python=/usr/bin/python3 bot-env```\n* activate it: ```$ source bot-env/bin/activate```\n* install dependencies: ```$ pip-3.2 install requests \u0026\u0026 pip-3.2 install sleekxmpp```\n* install daemontools: ```# apt-get install daemontools daemontools-run```\n  * create config /etc/init/svscan.conf:\n```\nstart on runlevel [12345]\nstop on runlevel [^12345]\nrespawn\nexec /usr/bin/svscanboot\n```\n  * *or* add this line to /etc/rc.local: ```bash -cf '/usr/bin/svscanboot \u0026'```\n* create file \"/etc/hsbot/run\"\n```\n#!/bin/sh\ncd /etc/hsbot\nexec setuidgid hsbot /bin/bash -c \"source bot-env/bin/activate \u0026\u0026 ./bot.py -c CONFIG\n```\n* add a dedicated user: ```adduser --shell /bin/bash --disabled-password hsbot```\n* adjust file permissions and ownership: ```# chmod 755 /etc/hsbot/run \u0026\u0026 chown -R hsbot:hsbot /etc/hsbot```\n* create hsbot service in daemontools: ```# ln -s /etc/hsbot /etc/service/hsbot```\n\nreferences\n----------\n* [daemontools](http://cr.yp.to/daemontools.html)\n* [hackerspace API](http://spaceapi.net/)\n* [SleekXMPP](http://sleekxmpp.com/)\n* [requests](http://docs.python-requests.org/)\n* [virtualenv](http://www.virtualenv.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpltnt%2Fhackerspace-api-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpltnt%2Fhackerspace-api-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpltnt%2Fhackerspace-api-bot/lists"}