Use an LED matrix display to show Salesforce Pod status.
A HackDay project by C.J. Mihelich & Paulson McIntyre
These instructions do NOT cover basic RPi hardening
- Enable internet access
- (as root) apt-get update
- (as root) apt-get upgrade (recommended but not required)
- (as root) apt-get install -y git vim python-numpy python-pygame python-requests python-dateutil fonts-roboto
- (as pi) Unzip https://github.com/Salesforce/defcon/archive/master.zip to /home/pi
- (as pi) Rename /home/pi/defcon-master to /home/pi/defcon
- (as pi) Copy the unicorn_hat_sim folder to /home/pi/defcon/src/
- (as root) pip install -r /home/pi/defcon/requirements.txt
- (as root) cp /home/pi/defcon/defcon.service /lib/systemd/system/defcon.service
- (as root) chmod 644 /lib/systemd/system/defcon.service
- (as root) chown root:root /lib/systemd/system/defcon.service
- (as root) systemctl daemon-reload
- (as root) systemctl enable defcon
- (as root) systemctl start defcon
Note: The app auto starts on boot using systemd
- (as root) systemctl start defcon
- fonts-roboto
- Unicorn Hat Sim
- See requirements.txt
- Pimoroni Unicorn HAT HD
- Raspberry Pi 3 Model B
- Micro SD Card >= 4GB
- M2.5 10mm Standoffs (recommended)
- Access to https://api.status.salesforce.com/v1
- DHCP
- Can be wired or wireless
Score = ( <Impact Type> * <Instance Count Mult> ) + ( <Maintenance Type> * <Availability Multi> )
| Level | Color | Score |
|---|---|---|
| 5 | Blue | 0 |
| 4 | Green | 1-127 |
| 3 | Yellow | 128-1023 |
| 2 | Orange | 1024-2047 |
| 1 | Red | 2048-4095 |
| 0 | Black | >=4096 |
| Type | Score |
|---|---|
| serviceDisruption | 2048 |
| intermittentPageLoadErrors | 1024 |
| intermittentLoginErrors | 1024 |
| performanceDegradation | 1024 |
| pageLoadDelays | 1024 |
| slowDataProcessing | 1024 |
| performanceDegradationAsynchronousProcessingSubset | 1024 |
| performanceDegradationAsynchronousProcessing | 1024 |
| disruptionReadOnlySsOverRun | 512 |
| disruptionReadOnlyInstanceRefreshOverrun | 512 |
| Count | Impact Type Score Multiplier |
|---|---|
| 1 | 1 |
| 2+ | 2 |
| Type | Score |
|---|---|
| scheduledMaintenance | 8 |
| emergencyMaintenance | 16 |
| switch | 16 |
| release | 32 |
| Type | Maintenance Type Score Multiplier |
|---|---|
| unavailable | 2 |
| readOnly | 1 |
| available | 0 |
| availabilityGenerallyAvailableInRead | 1 |
| availabilityLiveAgentNotAvailable | 0.5 |
| availabilityChatternowNotAvailable | 0.5 |
| availabilityIntermittentReadOnly | 0.5 |
| bulkOrgMigration | 0 |
| availabilityBULKORGMIG-ROFORAFFECTEDORGONLY | 0 |
| readOnlySiteSwitch | 1 |
| readOnlyContinuousSiteSwitch | 1 |
| eMaint | 1 |
| fullyAvailable | 0 |