Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

Automate upload from local directory
#1
Automate upload from local directory
I love OSCAR and am so fortunate to have found such an amazing program.

I'm hoping you might be able to help with some small pieces of guidance.

I'll say upfront - im very green with coding and the like, and am doing this as a learning project for myself!

I'm trying to automate my experience a little bit, given how useless I am at remembering to plug back in my SD card.

I've been lucky enough to find a GitHub so I can use a wifi SD card and rPI to automate pulling my data from the machine daily, into to a folder on my home PC.

The next phase is I want to automate OSCAR at certain intervals to automatically run the script to import this data, but I'm struggling. I've found the GitHub for OSCAR and struggling to find what points to where the data is pulled from when imported..

 I feel like it'd be as simple as copying the script that runs when you pretty the button to import sessions.. and changing that path to the folder my data is being imported from (ie change SD card to the filepath my data is stored on my PC) , and then automate this to run every few hours to pull if the data has been updated.. rather than press the button manually!

Can you assist with some guidance sleep Jedi's?
Post Reply Post Reply
#2
RE: Automate upload from local directory
First, each OS will have slight variations as to how you automate this. You do not want to import to OSCAR more than once a day. You only want to import the data when you're not going to use the CPAP for the remainder of that day. Otherwise, you will need to purge that day's data and then reimport it to acquire any newer data. That is an option that can not be automated. Automating the SD download can be on a timed schedule if you are syncing the card to a dedicated directory on your computer. You would then point OSCAR to read this directory for its data import. Also, in the Preferences menu, you can select the option to auto launch the CPAP Importer after opening your profile.

OK, now it's time to impress me! Big Grin
- Red
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Where to upload zip file for a new model Resmed? stevenospam 9 245 09-18-2024, 01:10 PM
Last Post: LoudSnorer
  Cannot find ViHeath directory on my phone Pixel Ninja 10 732 08-23-2024, 09:42 AM
Last Post: BenB
  Upload zipfile for Airsense 11 (22241249854) NotaNumber 0 161 08-18-2024, 09:14 AM
Last Post: NotaNumber
  Moving the OSCAR_Data directory - how? d1hartman 2 923 08-08-2024, 08:10 PM
Last Post: LongJumpingEnergy
  Moving the OSCAR_CPAP_Data Directory archangle 3 1,425 08-08-2024, 08:08 PM
Last Post: LongJumpingEnergy
  Where to upload Card Zip for PRS1 950P ASV? dlbzone 6 434 05-19-2024, 09:31 PM
Last Post: dlbzone
  VAuto 11 Resmed SD card zip for developers. Where to upload? OviBerger 1 442 04-08-2024, 08:24 AM
Last Post: Crimson Nape


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.