explaingit

gonzonia/alu_power_mod

Analysis updated 2026-05-18

0PythonAudience · generalComplexity · 2/5Setup · moderate

TLDR

A small set of scripts that wire a Shelly smart relay to an arcade cabinet's power switch for remote shutdown control.

Mindmap

mindmap
  root((ALU Power Mod))
    What it does
      Wires Shelly relay to cabinet
      Remote power control
      Shutdown countdown
    Tech stack
      Python scripts
      JavaScript on relay
      Shelly hardware
    Setup
      Set shared token
      Set IP addresses
      Copy scripts to folders
    Use cases
      Arcade cabinet automation
    Audience
      Arcade hobbyists

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add remote or automated power control to an ALU arcade cabinet using a Shelly relay.

USE CASE 2

Trigger a safe shutdown countdown on the cabinet before cutting power.

USE CASE 3

Generate custom text or fonts for the shutdown countdown display.

USE CASE 4

Protect the webhook calls between the cabinet and relay with a shared passcode.

What is it built with?

PythonJavaScriptShellShelly relay

How does it compare?

gonzonia/alu_power_mod0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity2/52/54/5
Audiencegeneralgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires a physical Shelly relay and an ALU cabinet, plus manually matching tokens and IP addresses across multiple files.

The README does not state a license for this project itself, and notes that the underlying R-Cade platform it modifies is separately licensed by Retro-Center.

In plain English

ALU_Power_Mod is a small collection of scripts for a very specific physical hardware project rather than a general software tool. It is meant for people who own an ALU arcade cabinet running Legends Unchained, also known as R-CADE, and want to modify it to use a momentary power switch together with a Shelly smart relay, which is a small internet connected switch commonly used for home automation. The README states plainly that AI was used to help write this project, which is worth knowing if you are evaluating the code closely. The files are split between two places. Two JavaScript files, Shelly_In and Shelly_Out, get copied directly onto the Shelly relay's own script editor. A set of Python and shell scripts, including webhooks, shelly-shutdown, and countdown_shutdown, get placed into specific folders on the arcade cabinet's own file system so they run at startup and shutdown. Setup involves editing several files to fill in matching values, such as a shared passcode called EXPECTED_TOKEN used to add basic protection to the webhook calls between the relay and the cabinet, along with IP addresses for both devices and an identifier for the script running on the relay. There is also an optional script for generating custom countdown timer frames, for example if someone wants a different font or wording during shutdown. This is a narrow, hardware specific hobby project for arcade cabinet owners with a Shelly relay, not a general purpose application. The README notes that R-Cade itself is the legal property of Retro-Center, with its own separate license posted on Retro-Center's GitHub releases page, so that license governs the underlying platform this mod works with.

Copy-paste prompts

Prompt 1
Walk me through setting the EXPECTED_TOKEN and IP address values across these scripts so the Shelly relay and cabinet match.
Prompt 2
Explain what shelly-shutdown.py does and how it talks to the Shelly relay.
Prompt 3
Help me customize generate_frames.py to change the font used in the shutdown countdown.
Prompt 4
What do I need to place in the rcade share userscripts folders for this mod to work at startup and shutdown?

Frequently asked questions

What is alu_power_mod?

A small set of scripts that wire a Shelly smart relay to an arcade cabinet's power switch for remote shutdown control.

What language is alu_power_mod written in?

Mainly Python. The stack also includes Python, JavaScript, Shell.

What license does alu_power_mod use?

The README does not state a license for this project itself, and notes that the underlying R-Cade platform it modifies is separately licensed by Retro-Center.

How hard is alu_power_mod to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is alu_power_mod for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.