server_status_oled_display
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| server_status_oled_display [2025/03/23 01:16] – kenson | server_status_oled_display [2026/05/06 04:56] (current) – kenson | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| * The OLED's I2C address 0x3C, and I'm using adafruit' | * The OLED's I2C address 0x3C, and I'm using adafruit' | ||
| * The Accelerometer' | * The Accelerometer' | ||
| + | |||
| + | |||
| + | ====== TLDR; ====== | ||
| + | |||
| + | |||
| + | Probe the port. | ||
| + | |||
| + | < | ||
| + | sudo tee ./ | ||
| + | # | ||
| + | set -u | ||
| + | |||
| + | BAUD=115200 | ||
| + | |||
| + | for PORT in / | ||
| + | [ -e " | ||
| + | |||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | if ! stty -F " | ||
| + | echo "Could not configure $PORT" | ||
| + | continue | ||
| + | fi | ||
| + | |||
| + | # Some Arduino/ | ||
| + | sleep 4 | ||
| + | |||
| + | # Wake / clear any stale output | ||
| + | printf ' | ||
| + | sleep 0.2 | ||
| + | timeout 1 cat " | ||
| + | |||
| + | # Ask version | ||
| + | printf ' | ||
| + | |||
| + | echo " | ||
| + | timeout 2 cat " | ||
| + | echo | ||
| + | done | ||
| + | EOF | ||
| + | chmod +x probe_displayinator.py | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | Download the agent: {{ : | ||
| + | < | ||
| + | wget ' | ||
| + | unzip displayinatorhostip.zip | ||
| + | </ | ||
| + | |||
| + | Insert the service to autostart | ||
| + | < | ||
| + | sudo tee / | ||
| + | [Unit] | ||
| + | Description=Displayinator Host IP Sender | ||
| + | Wants=network-online.target | ||
| + | After=network-online.target multi-user.target | ||
| + | |||
| + | [Service] | ||
| + | Type=oneshot | ||
| + | WorkingDirectory=/ | ||
| + | ExecStartPre=/ | ||
| + | ExecStart=/ | ||
| + | StandardOutput=append:/ | ||
| + | StandardError=append:/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | EOF | ||
| + | </ | ||
| + | |||
| + | Edit / | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | Start the service. | ||
| + | |||
| + | < | ||
| + | systemctl daemon-reload | ||
| + | systemctl enable --now displayinator.service | ||
| + | systemctl status displayinator.service | ||
| + | </ | ||
| ==== Loading the Arduino Bootloader ==== | ==== Loading the Arduino Bootloader ==== | ||
| Line 20: | Line 103: | ||
| avrdude will complain about older firmware but my recommendation is to ignore it. | avrdude will complain about older firmware but my recommendation is to ignore it. | ||
| - | The TLDR; is the chinese firmware is modified and does some automagic stuff and in general works more reliably than the publicly available open source code version. | + | The [[USBasp flash|TLDR;]] is the chinese firmware is modified and does some automagic stuff and in general works more reliably than the publicly available open source code version. |
| Use zadig to make it (USBasp) use libusb-win32 | Use zadig to make it (USBasp) use libusb-win32 | ||
| Line 49: | Line 132: | ||
| The command protocol is simple: | The command protocol is simple: | ||
| - | Commands are prepended with an ' | + | * Commands are prepended with an ' |
| - | Key-Value pairs are prepended with a ' | + | |
| - | You can also indicate not to store values in EEPROM by putting a caret ' | + | |
| ==== Commands ==== | ==== Commands ==== | ||
| Line 125: | Line 208: | ||
| * It also likes to reset when you connect via serial so I wait 3 to 5 seconds for it to boot up before poking it. | * It also likes to reset when you connect via serial so I wait 3 to 5 seconds for it to boot up before poking it. | ||
| * Python raises DTR, and for whatever reason it breaks things, so I set ser.dtr = False. | * Python raises DTR, and for whatever reason it breaks things, so I set ser.dtr = False. | ||
| + | * You never know whats in a serial buffer when you connect so send a ' | ||
| ==== TrueNAS ===== | ==== TrueNAS ===== | ||
server_status_oled_display.1742692585.txt.gz · Last modified: 2025/03/23 01:16 by kenson
