Skip to content

Turns your Raspberry Pi into a status screen to show your colleagues, family, friends, or whoever might disturb you if you're busy or not.

License

Notifications You must be signed in to change notification settings

bkahlert/busy-screen

Repository files navigation

Two Kaomoji shouting "Busy?!"

Busy Screen Build Status License Buy Me A Unicorn

Turns your Raspberry Pi into a status screen to show your colleagues, family, friends, or whoever might disturb you if you're busy or not.

PUT http://192.168.168.168:1880/status
Content-Type: application/json; charset=utf-8

{
  "name": "making frontend responsive",
  "task": "TICKET-123",
  "duration": "PT50M",
}

Set status to "making frontend responsive" with an estimation of 50 minutes

being busy with state "making frontend responsive" for 23 minutes
Being busy with state "making frontend responsive" for 23 minutes

no more being busy
No more being busy

Installation

This application consists of a backend implemented as a Node RED flow and a frontend implemented with Kotlin JS.

Consequently, you'll need a Node RED installation and a webserver to provide access to the frontend.

Install on a Raspberry Pi

When successfully installed, the loading screen shows up. Loading screen on Raspberry Pi

A few moments later the backend can receive status updates, like this one:

curl -X PUT --location "http://192.168.168.168:1880/status" \
     -H "Content-Type: application/json; charset=utf-8" \
     -d "{
           \"name\": \"finishing soon\",
           \"duration\": \"PT2M\"
         }"

Busy screen on Raspberry Pi

The following properties are supported:

{
    "name": "status name that is displayed in the speech bubble",
    "task": "task title used as the headline on the top border",
    "duration": "60000",
    "email": "john.joe@example.com",
    "on": {
        "finish": {
            "method": "post",
            "url": "http://my-talking-robot/say",
            "payload": "finished working"
        }
    }
}

The only required field is name. All other fields are optional.

The duration can be specified in

  • number of milliseconds (60000ms = 1min) or
  • in ISO8601 format (PT1M / PT60S = 1min)

You can find further examples in http-client.http.

Connectivity

The connectivity options depend on your Pi Hero configuration.

Discovery

If you start your device with a connected screen, you see the following information that help you finding your device:

  • Your device name is written on the left border.
  • Your device IP is written on the right border.
  • Your username is written below the avatar.
  • Nearby devices are listed in a dropdown that opens when you click your username.
    • The device currently connected to is always on top.
    • Using the "Switch" button you can connect to the selected device.

Discovery Options

Avahi is installed on your Raspberry Pi with all relevant services advertised in your network. You can use any zeroconf / mDNS / Bonjour client to discover your device.

iNet Network Scanner

Alternatively you can log in to your router and find out what new devices received a dynamic IP address from it.

Install Manually / Locally

The manual installation consists of the following steps:

  1. Install Node RED
  2. Import busy-screen.flow to Node RED
  3. Build the frontend with ./gradlew build -x test
  4. Set up an HTTP server to publish the just built frontend, e.g. using npx http-server -c -p 80
  5. open the published frontend
    (automatically opened if you use the npx command above)
  6. change the address query parameter in the URL to the one of your Node RED installation

Customization

Busy Screen can be customized / extended in three ways:

  1. The frontend is located at src/main/kotlin. You can make any changes you like to it and run the installation afterwards.
  2. The Node RED flow can be freely changed as you like. In order to customize it, just edit it inside of Node RED. If you followed the installation steps above, you already have a running installation.
  3. You can customize the way your Raspberry Pi image is created. The image creation is done with the image customization tool Kustomize. The actual configuration is stored in busy-screen.conf.

Responsive Design

loading screen on small device
Loading screen on small device

loading screen on large device
Loading screen on large device

responsive previews with busy state
Responsive previews with busy state

responsive previews with done state
Responsive previews with done state

Debugging

loading screen with error
Loading screen with error message

Known Issues / TODO

  • on Raspberry Pi B+ the Plymouth based loading screen only works
    after raspi-config β†’ Advanced Options β†’ G1 Fake KMS was selected.

  • get network connection to Raspberry Pi booted with dockerpi

    • check for SSH
    • check for HTTP
    • change status and check if page changed

Copyright

Nintendo owns the copyright to Mario, Samus, the heart container, the coin and the controller. Please comply with the Nintendo guidelines and laws of the applicable jurisdiction.

South Park characters have been designed with the amazing SP-Studio.

References

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! πŸ™

License

MIT. See LICENSE for more details.

About

Turns your Raspberry Pi into a status screen to show your colleagues, family, friends, or whoever might disturb you if you're busy or not.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published