Skip to content

glasgowhackerspace/SpaceStatusBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Hackspace Status Bot

Indicates hackspace open/closed state to Discord channel.

Connect switch between GPIO4 and GND. Switch closed indicates space is open.

Connect SSD1306 OLED to I2C port 1 SCL/SCA, 3V3 and GND to show status and IP address.

Set up the config.json file in the same directory as spacebot.py as follows, where 1234 is the channel number and TOKEN is the token obtained from the Discord developer portal when configuring the bot:

{ "glashack channel": 1234, "glashack token": "TOKEN" }

Copy the python-script.service file to /etc/systemd/system/ and configure as described in:

https://linuxconfig.org/how-to-autostart-python-script-on-raspberry-pi

to run the script on startup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages