The Space-state concerns the big switch next to the entrance. Normally this switches on the big TDvenlo sign and some lights. This main switch should also inform the rest of the internet that people are present at our space. This pace describes how we do this.

- Serve spaceapi.json file to the internet

- Depending on the state a logo with either “OPEN” or “CLOSED” should be served as well

The space-state uses the main switch next to our entrance. This connects to an ESP8266 via a resistor divider.

The ESP8266 runs on micropython. The ESp connects to our 2.4 GHz. network via DHCP. The space-state serves the spaceapi.json to outside users via our main server: You can find a description of the spaceapi API at

You can find Micropython for the ESP8266 here: Install micropython via the tutorial

The spaceapi.json looks like the following:

  "api": "0.13",
  "space": "TDvenlo",
  "logo": "",
  "url": "",
  "location": {
    "address": "Begijnengang 2, 5911 JL, Venlo, The Netherlands",
    "lat": 51.36940,
    "lon": 6.16998
  "contact": {
    "twitter": "@TDvenlo",
    "email": "",
    "facebook": ""
  "issue_report_channels": [
  "state": {
    "open": false,
    "icon": {
    "open": "",
    "closed": ""
   "projects": [ "" ]

It should change the key for state to true if the main switch is closed. The “state” key remains false when the switch doesn't conduct.

These two files should be served:

*Logo “OPEN”:

*Logo “CLOSED”:

  • projects/space-state.txt
  • Last modified: 30/05/2021 18:03
  • by ron