Cup hooks is a good idea!
I also made a simple shelf for my CPAP unit, and as a place for my glasses and wallet while sleeping. Think I could add cup hooks like yours to make it better.
One picture shows the CPAP machine, and the other without. I used longer screws on the stove side, and carriage bolts running through PVC pipe on the right side to support it to the cabinet. Also added a 12 volt switchable outlet above the CPAP for when
boondocking.
John