Skip to content

fNordeingang/fnordeingang-status-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fNordeingang status server

The status server for the fNordeingang hackerspace.

operation

To set the space to opened just send a GET-Request to \<IP-ADDRESS\>:13337/api/[open:open_intern:close]. Internally, this state change will be routed to the action modules.

configuration

To configure the server a config toml file can be passed via the --config parameter. The supplied file should have the following format.

# Telegram API
telegram_api_key = "..."
telegram_chat_id_public = ...
telegram_chat_id_private = ...

# State
last_state = 0
last_state_change = 0

# Messages
general_close = ""
general_open = ""
member_close = ""
member_open = ""

# Server
api_key = "..."
api_port = 13337
api_address = "[::]"
rate_limiter_tokens = 3
rate_limiter_timeout = 300

# Spaceapi
space_name = "fNordeingang"
logo = "https://fnordeingang.de/wp-content/uploads/2013/06/logo_final21.png"
url = "https://fnordeingang.de/"
address = "Körnerstr. 72, 41464 Neuss, Germany"
latitude = 51.186234
longitude = 6.692624
email = "verein@fnordeingang.de"
mastodon = "@fnordeingang@telefant.net"
issue_mail = "vorstand@fnordeingang.de"

authorization

Append an Api-Key header to every request, which contains the api key specified while compiling.

About

The status server.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE-2.0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages