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

FlashAir + WebDAV = Minor SleepyHead import bug
#1
FlashAir + WebDAV = Minor SleepyHead import bug
I recently started using a FlashAir SD card to pull my CPAP data out wirelessly... And I have stumbled across a small SleepyHead issue.

My setup is a Respironics machine (DreamStation), using a Linux workstation to mount the FlashAir card via its WebDAV interface. When I do this, the Respironics data directory is named "P-SERIES"... But SleepyHead is looking for "P-Series", so it refuses to import. (Linux in general is not case-sensitive.)

If I copy the WebDAV directory tree locally and then rename P-SERIES to P-Series, SleepyHead imports correctly.

If jedimark is reading this, thank you for a fantastic piece of free software!
Post Reply Post Reply
#2
RE: FlashAir + WebDAV = Minor SleepyHead import bug
Hi patl - Welcome
The problem you encountered is not with SleepyHead but with the operating system that you're using, Linux in this case.

Unlike a Windows computer, both Linux and Mac are very case sensitive when using naming conventions.  You can have 5 files or directories named, MyData,  MYDATA, MyDaTa, mYdAtA, and mydata, and each will be a different entity on the Linux or Mac computer.  On the other hand,  Hypertext Transfer Protocol (web browser commands) are not case sensitive.   Since WebDav uses  Hypertext Transfer Protocol commands for it command structure, it is also not case sensitive.  Evidently WebDav treats all ASCII characters as upper case. That is where the problem exists.  If you where running the same WebDav commands on a Windows platform, you wouldn't experience this problem, since Windows file naming conventions are not case sensitive.  

An easy alternative would be a program, like FlashPAP, that addresses this for you.  At the same time, it will only select sleep data files that exist on the FlashAir card but not your computer.  FlashPAP is written in Java, allowing multi-platform execution.  By using command line parameters ("user=" and "exit="), FlashPAP can be automated to select and download the data and exit with one-click.

Good luck!
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
#3
RE: FlashAir + WebDAV = Minor SleepyHead import bug
Actually I looked at the source code (loader_plugins/prs1_loader.cpp), and it already checks for "last.txt" and "LAST.TXT" under the data directory... So the code already contemplates this sort of problem.

It just needs similar logic for the top-level P-Series/P-SERIES directory. If I can find some time today I will work up a patch and submit a pull request.

I am not really interested in FlashPAP when I can just import directly from the WebDAV-mounted flash card (once this bug in SleepyHead is fixed).

Thanks!
Post Reply Post Reply
#4
RE: FlashAir + WebDAV = Minor SleepyHead import bug
I updated the import code and submitted a merge request. I cannot post a link, being a new member... But you can see it if you search for "sleepyhead" and "gitlab" and then click on "Merge Requests" in the sidebar.
Post Reply Post Reply
#5
RE: FlashAir + WebDAV = Minor SleepyHead import bug
OK now I can post a link, just for the record

https://gitlab.com/sleepyhead/sleepyhead...equests/20
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  OSCAR SpO2 CSV import ST Dog 22 3,108 04-14-2024, 01:49 PM
Last Post: ElectricalPaul
  Fitbit import to OSCAR ExtremeDeepSleep 4 140 04-11-2024, 07:34 AM
Last Post: ExtremeDeepSleep
  OSCAR import of Viatom/Wellue data - DST time base SleeperAwake21 5 924 03-30-2024, 02:21 PM
Last Post: dfunk
Question OK TO IMPORT SLEEP DATA FROM OLD SD CARD INTO OSCAR W/O MESSING UP CURRENT DATA? Plmnb 3 242 03-29-2024, 11:02 AM
Last Post: Plmnb
  Rescan app [doesn't see data import] kerm007 3 264 03-24-2024, 10:59 PM
Last Post: srlevine1
  Cannot import data from ResMed Astral 150 to ResScan or OSCAR BreatheEZ 8 2,503 03-16-2024, 10:18 PM
Last Post: PappaJoe
  import data from Philips Alice NightOne into OSCAR FHTC 6 340 03-09-2024, 08:36 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.