Open ArgonAug 23, 2020 · 2 minute read · by kdevo
DIY Pi Case Hardware
Recently, I purchased an Argon One case for my Raspberry Pi 4.
This is not a review of the case itself, but if I would need to describe it with a few words:
It’s an excellent piece of hardware that encloses your Pi in a modern aluminium case, combining passive and active cooling (via heatsink and fan), featuring an always-wanted safe power button.
Sounds great, right?
The problem I encountered is of a software kind: When looking for the driver/script to control the fan and the shutdown button, I only found the official argon1.sh from the vendor Argon40 (among some GitHub repositories which essentially replicate the code in a more structured way).
While it does the job of controlling the fan and reading the button flawlessly, I dislike it for 3 simple reasons:
- The script is not licensed at all. This implies “All rights reserved”; even though you can read the source code, consider it as proprietary!
- It’s not easy to maintain when you do not have a clearly structured code base besides an all-in-one shell script installation routine.
- There are no options to easily reconfigure the button.
Because I recently wanted to master the awesome command line interface library
click anyways, I decided to fully understand the argon1.sh script and then implement an alternative completely from scratch.
Introducing Open Argon
The result is an Open Source solution that aims to make handling your Argon One case easier and fun!
The first Beta version includes the following features:
- Fancy CLI made with
- Dead simple configuration via INI-file:
- Fan profiles to configure the temperature curve
- Button profiles to configure button events and their actions
- Let the
doctorcommand check for working hard- and software
- Configurable power mode
- No root privileges needed for simple commands via
- Simple installation routine from source
- Maintainable code base with community potential