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

Monitoring data wirelessly
RE: Monitoring data wirelessly
(02-03-2021, 02:28 PM)Dog Slobber Wrote: I am somewhat reluctant to suggest these things, as they come under the category of, if you have to be told how to do this, you probably shouldn't be the one doing it, but here goes.

To help improve WiFi performance, mainly because of congestion or weak signal attenuation (on your 2.4Ghz):
  • Ensure Transmit power is 100%
  • Turn off any guest networks 
  • Turn off Channel Hopping (Auto),  only use Channels 1, 6 or 11 (Test each for better performance)
  • Turn off Channel Bonding (set bandwidth to 20 Mhz instead of 40)
  • WiFi extenders can actually hurt performance, if you issue is congestion not distance.
Since the FlashAir is a 2.4 GHZ device only the 2.4 network is addressed.

Be aware, some of these suggestions should only be used to address issues caused by congestion and can actually reduce network performance on non-congested networks.

Problem is not congestion or weak signal at this point. The wifi extender is working to enable a good signal. It seems to be on the OSCAR end. It is simply not loading the data in the folder even when specified.
Post Reply Post Reply
RE: Monitoring data wirelessly
(12-02-2020, 02:11 AM)MCS2014 Wrote:
(12-02-2020, 12:42 AM)Jeff8356 Wrote: @mcs2014, 

You deleted the beginning of the script when you should have just edited what was there!!!  There was no mention of deleting anything in the instructions!
Based on what you have, this is what your script should look like.  Just copy and paste everything below:

Code:
##1 Enter you FlashAir card name or IP address below (between the quotes " ")
set diskName to "192.168.0.250"
#
##2 Enter the location you want your xPAP data transferred to (between the quotes " "). The folder (directory) must already exist!
set copyLocation to "/Users/computeruser2/Downloads/FlashAirData/"
#
##3 Enter the location of OSCAR.app, by default it's /Applications
set oscarLocation to "/Applications"
#
#Do not change anything below here
#Mount the FlashAir card and make sure it shows up in /Volumes
try
   mount volume "http://" & diskName
   repeat until diskName is in (do shell script "ls /Volumes")
       delay 0.2
   end repeat
on error e
   display dialog "An error occured: " & e
end try
#
#Open Terminal and use rsync to copy FlashAir to computer or NAS
tell application "Terminal"
   activate
   do script "rsync -avz /Volumes/" & diskName & "/" & " " & copyLocation in window 1
end tell
#Pause the app until rsync is finished
set isBusy to true
repeat until isBusy is false
   tell application "Terminal"
       tell window 1
           set isBusy to busy as boolean --> Test if busy
       end tell
   end tell
   delay 1 --> Check every second
end repeat
delay 1
#Unmount FlashAir so we don't accidently change anything on the card
do shell script "diskutil unmount /Volumes/" & diskName
delay 1
do shell script "open" & " " & oscarLocation & "/OSCAR.app"
quit application "Terminal"

As Crimson Nape mentioned, any line that starts with a # is just a comment in the script and is not processed.  The next line below the # is the one that usually needs to be changed.

Ok, back on track, revised to exactly the above script, clicked CopyCPAP.app, rsync completed, the Terminal window closed, OSCAR opened.  Then I got this:

[Image: Q1T2Gu6.png]
So, I clicked Yes, but all OSCAR shows is the last import which was read when I had the card in the computer from last Fri. So, it isn't picking up the data that's since been recorded as the card was placed back in the machine. What did I do wrong now? Huh

Since I accidentally deleted CopyCPAP, I had to start over with Script Editor since it seems there's no previous file saved that I could find for editing.

Pasted the above instructions, same as before.

WiFi connection intact, 0.00% packet loss when pinging, so no issues with interference.

Now, I think it's a folder problem that I cannot seem to resolve. This is what comes up when I click CopyCPAP:
[Image: mfsd1E6.png]
 
So, OSCAR then opens but no data is being loaded. I tried re-doing Script Editor and changing the folder to where OSCAR , but it won't change. Do I need to have the folder OSCAR is set to the same as the one above? Even when I select to to specify in OSCAR it won't change, it always defaults to that folder.
Post Reply Post Reply
RE: Monitoring data wirelessly
Unlike using Windows OS, Mac and Linux OSs recognize a capital letter from a lowercase letter as being different. You can use "Name" and "name" for a filename (or directory), and they will be 2 different entities. My guess is that either you misspelled or changed the capitalization of your old directory name.
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
RE: Monitoring data wirelessly
(02-14-2021, 09:31 AM)Crimson Nape Wrote: Unlike using Windows OS, Mac and Linux OSs recognize a capital letter from a lowercase letter as being different.  You can use "Name" and "name" for a filename (or directory), and they will be 2 different entities.  My guess is that either you misspelled or changed the capitalization of your old directory name.

I am not sure where to change it; on the Script Editor or the folder itself? I have 2 folders that the data was being loaded to on a flashdrive before and one of those folders is named CPAP READINGS and is what OSCAR is set to even if I specify a different folder. It always defaults back to CPAP READINGS. Should I just delete both folders, make a new one, and then start with a fresh Script Editor?
Post Reply Post Reply
RE: Monitoring data wirelessly
Is the script on FlashAir - Apnea Board Wiki still actual? Or is there a newer version?

UPDATE: I found a later code here in http://www.apneaboard.com/forums/Thread-...#pid384029

Shouldn't the wiki be updated then???
Arie KLERK: Member of the Dutch Apnea Association staff (https://apneuvereniging.nl) and proud to be the OSCAR Translations Team Coordinator. 
***Please help us: We’re always looking for more translators and language editors***

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients, but just dedication to AB. 
Post Reply Post Reply
RE: Monitoring data wirelessly
The Wiki FlashAir code lists WEBDAV=1. A member running Big Sur had a problem until he changed it to WEBDAV=2. I don't know if this was a fluke or Big Sur requires it. A value of 1 is Read only and 2 is Read/Write.
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
RE: Monitoring data wirelessly
I have changed WEBDAV to 2 on the wiki page.

But I am not sure whether the script must be updated. On the wiki page, it starts by mentioning * Updated 11 December 2020 *, here: 
FlashAir - Apnea Board Wiki,
but the reference I showed above, is from 2 December 2020, look here:
http://www.apneaboard.com/forums/Thread-...#pid384029

Still, there is a big difference between the two. Which one holds the truth??? At least, the last one works for me.
Arie KLERK: Member of the Dutch Apnea Association staff (https://apneuvereniging.nl) and proud to be the OSCAR Translations Team Coordinator. 
***Please help us: We’re always looking for more translators and language editors***

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients, but just dedication to AB. 
Post Reply Post Reply
RE: Monitoring data wirelessly
This is what I have on Script Editor now:

##1 Enter you FlashAir card name or IP address below (between the quotes " ")
set diskName to "192.168.0.250"
#
##2 Enter the location you want your xPAP data transferred to (between the quotes " "). The folder (directory) must already exist!
set copyLocation to "/Users/computeruser2/Downloads/FlashAirData/"
#
##3 Enter the location of OSCAR.app, by default it's /Applications
set oscarLocation to "/Applications"
#
#Do not change anything below here
#Mount the FlashAir card and make sure it shows up in /Volumes
try
    mount volume "http://" & diskName
    repeat until diskName is in (do shell script "ls /Volumes")
        delay 0.2
    end repeat
on error e
    display dialog "An error occured: " & e
end try
#
#Open Terminal and use rsync to copy FlashAir to computer or NAS
tell application "Terminal"
    activate
    do script "rsync -avz /Volumes/" & diskName & "/" & " " & copyLocation in window 1
end tell
#Pause the app until rsync is finished
set isBusy to true
repeat until isBusy is false
    tell application "Terminal"
        tell window 1
            set isBusy to busy as boolean --> Test if busy
        end tell
    end tell
    delay 1 --> Check every second
end repeat
delay 1
#Unmount FlashAir so we don't accidently change anything on the card
do shell script "diskutil unmount /Volumes/" & diskName
delay 1
do shell script "open" & " " & oscarLocation & "/OSCAR.app"
quit application "Terminal"

I am now getting this error message for some reason and have no idea what it means:

[Image: tQrjMof.png]

Where do I go from here?
Post Reply Post Reply
RE: Monitoring data wirelessly
Just so I understand, your username on your computer is, "computeruser2" and not "MCS2014"?
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
RE: Monitoring data wirelessly
(02-17-2021, 04:19 AM)MCS2014 Wrote: [Image: tQrjMof.png]

I used to get this error box when Terminal was already loaded. You can see if it is already open in the lower dock apps bar. Terminal cannot already be loaded before launching the desktop script CPAP app.
MacBookPro 13, Big Sur, Windows 10 (Parallels 16), FlashAir 16GB W-04,
Contec CMS50F Pulse Oximeter
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question OK TO IMPORT SLEEP DATA FROM OLD SD CARD INTO OSCAR W/O MESSING UP CURRENT DATA? Plmnb 1 83 Yesterday, 01:07 AM
Last Post: Ibrumley
  Intermittent use of C-PAP machine and OSCAR monitoring Thanassis 6 247 02-27-2024, 10:52 AM
Last Post: Thanassis
  Viatom/WellUE data is different than OSCAR displayed data GordK 3 293 02-23-2024, 04:48 PM
Last Post: GordK
  Data structure / data definition of AirSense 11 CD, CMSd50+ or OSCAR?hing obvious, … Perickson 4 1,634 02-18-2024, 01:49 PM
Last Post: Perickson
  Import OSCAR data wirelessly LikeaGlove90 0 542 11-14-2023, 01:13 AM
Last Post: LikeaGlove90
  Changed data directory from OneDrive, Now can't read data Rich66 9 1,031 08-24-2023, 11:32 PM
Last Post: Rich66
  Can OSCAR download data wirelessly clownbell 5 3,238 04-27-2022, 12:24 PM
Last Post: TennisTom


New Posts   Today's Posts


About Apnea Board

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