Automating process of getting CPAP data - Printable Version +- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums) +-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area) +--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum) +--- Thread: Automating process of getting CPAP data (/Thread-Automating-process-of-getting-CPAP-data) |
Automating process of getting CPAP data - mgdapnea - 12-25-2023 I have a solution available that replaces the sneakernet process of grabbing CPAP data from an ResMed AirSense 11 SD card. The solution is a Linux-based solution and requires: 1. A RaspberryPi mini-PC. 2. A WiFi SD card (hotspot). 3. A home PC whose operating system is Linux. 4. Basic understanding of bash shell scripting. You can see the documentation for the project on my SleepApnea_WifiUploads_SleepHQ GitHub site. I addressed this documentation to the SleepHQ Community. SleepHQ is a organization based in Australia that is dedicated to the support of Sleep Apneacs like myself. I am a paid member on this website. There is both free and firewalled access at SleepHQ. The SleepHQ community is fairly small, much smaller I suspect than the Oscar apneaboard community (OAC). I hope that my automated solution will be to some in the OAC. If, like me, you are not keen on the morning ritual of taking your SD card out of your CPAP machine, walking to your PC, inserting the SD card into your PC or its hub, uploading the data from the SD card to the Oscar app, and finally returning the SD card to your CPAP machine, then my solution is for you. The basic operating is: 1. A RaspberryPi PC switches to the WiFi SD hotspot network and then grabs the data on the SD card. 2. The RaspberryPi PC switches back to your home WiFi nework and copies the data to your home PC. 3. You then upload the data to the Oscar app. My solution: 1. Uses just one script that has two commands, both ssh-based. 2. That script is automatically run each morning at 8:00 a.m using a cronjob. 3. Done. Your data is now on your home PC. No more snearkernet! I would be quite happy to help those who wish to try out my solution. I live on the West Coast of Canada, Vancouver Island. My Time Zone is Pacific, GMT -8. RE: Automating process of getting CPAP data - srlevine1 - 12-25-2023 I am just asking: Why did you choose 8:00 a.m. when ResMed devices start their day at 12:00 p.m.? Wouldn't 2:00 p.m. have been a better choice? RE: Automating process of getting CPAP data - mgdapnea - 12-26-2023 The latest that I would ever get out of bed is 7:00 a.m. in the morning. 8:00 a.m. provides a 1 hour cushion. The AS11 writes its data for the previous night usually within a 1/2 hour after one takes off the CPAP mask. RE: Automating process of getting CPAP data - pholynyk - 12-26-2023 I'd just like to point out that a RaspberryPi is quite capable of running OSCAR. An SSD is useful but not necessary. RE: Automating process of getting CPAP data - mgdapnea - 12-26-2023 I am a little confused by your post. I assume that you meant SD, not SSD. Yes, you can install the Oscar App on a RaspberryPi box. I understand that. But, how do you get the data from the CPAP device. You need a WiFi solution...which is what my project provides. I am open to alternatives. I am not wedded to my solution. The project was more of a 'can do' project than anything else. RE: Automating process of getting CPAP data - Crimson Nape - 12-26-2023 If you haven't seen this thread, it was posted in March 2021. https://www.apneaboard.com/forums/Thread-EzShare-SDcard-wifi-Script-to-autodownload - Red RE: Automating process of getting CPAP data - mgdapnea - 12-26-2023 That is the source script that I used on the RaspberryPi box and I give credit to Bjorn in my documentation. What is missing from Bjorn's post is that you need to switch from your home WiFi network to the WiFi SD hotspot network. You run the script after you switch to the hotspot which downloads the data. You then need to switch back to your home WiFi network. If you read my documentation, you will note that I discuss the limitations of the WiFi SD hotspot network, no routing, no Internet access, etc. My documentation also addresses the issue that the SD WiFi signal is quite weak. My strategy automates everything using a dedicated, inexpensive RaspberryPi box. There is no need to keep switching your laptop/PC to another network just to grab your data. RE: Automating process of getting CPAP data - ChickenLittle - 06-26-2024 My "home office" is my bedroom and I've got an Intel NUC running Windows 11 as my workstation - connected via network cable. When my ez card arrives I plan on having the NUC connect to that wifi and let it straddle both networks. Schedule a powershell script to copy the files from one to the other - do you foresee any challenges with this idea? |