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/24 20:53] – 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 ==== | ||
server_status_oled_display.1742849614.txt.gz · Last modified: 2025/03/24 20:53 by kenson
