projects:commerce_st

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:commerce_st [2026/06/26 16:02] John Harrisonprojects:commerce_st [2026/06/29 22:04] (current) John Harrison
Line 47: Line 47:
     i += 1     i += 1
 </code> </code>
 +==== BBB config ====
 +  * change # of LEDs in strip by editing ''/etc/ledscape-config.json''
 +  * flash sdcard to emmc
 +    * optional: make sure the sdcard is healthy. When **not** mounted (example): ''sudo fsck.ext4 -f /dev/sda1''
 +    * boot BB from sdcard then: ''sudo /opt/scripts/tools/eMMC/bbb-eMMC-flasher-eewiki-ext4.sh''
 +
 === BBB issues === === BBB issues ===
   * jack is failing overnight. There was a solution built into the whisphering woodlands project I think?   * jack is failing overnight. There was a solution built into the whisphering woodlands project I think?
 +    * the solution is to set up a cronjob that runs every 5 minutes and reboots the BB if jack fails: ''restartIfJackIsJacked.sh''
 +<code bash>
 +#!/bin/bash
 +process="jackd"
  
 +cpuUsage=$(top -bn2 -p $(pgrep $process) | grep $process | tail -n 1 | awk {'print $9;'} | cut -f1 -d'.'
 +# echo $cpuUsage 
 +if [ "$cpuUsage" -gt "80" ]; then 
 +        echo "PUTPASSWORDHEREYESIKNOWTHISISNOTSECURE" | sudo -S reboot 
 +fi 
 +</code>
  • projects/commerce_st.1782489773.txt.gz
  • Last modified: 2026/06/26 16:02
  • by John Harrison