Difference between revisions of "FlashAir"
m |
m (→macOS solution for FlasPAP not working in macOS Big Sur) |
||
Line 18: | Line 18: | ||
Here is the AppleScript for review: | Here is the AppleScript for review: | ||
Code: | Code: | ||
− | <nowiki>#Enter you FlashAir card name or IP address below (between the quotes " ") | + | <nowiki>#Enter you FlashAir card name or IP address below (between the quotes " ")<br /> |
− | set diskName to "192.168.1.240" | + | set diskName to "192.168.1.240"<br /> |
− | # | + | #<br /> |
− | #Enter the location you want your xPAP data transferred to (between the quotes " "). The folder (directory) must already exist! | + | |
− | set copyLocation to "/users/yourusername/Documents/OSCAR_DATA/" | + | #Enter the location you want your xPAP data transferred to (between the quotes " "). The folder (directory) must already exist!<br /> |
− | # | + | |
− | #Enter the location of OSCAR.app, by default it's /Applications | + | set copyLocation to "/users/yourusername/Documents/OSCAR_DATA/"<br /> |
− | set oscarLocation to "/Applications" | + | |
− | # | + | #<br /> |
+ | |||
+ | #Enter the location of OSCAR.app, by default it's /Applications<br /> | ||
+ | |||
+ | set oscarLocation to "/Applications"<br /> | ||
+ | |||
+ | #<br /> | ||
+ | |||
#Mount the FlashAir card and make sure it shows up in /Volumes | #Mount the FlashAir card and make sure it shows up in /Volumes | ||
try | try |
Revision as of 09:16, 8 December 2020
This page will be filled with information on Monitoring the CPAP data wirelessly.
Most urgent is the problem that Mac users face: the new macOS Big Sur has broken Java, which was used by the program FlashPAP. So we start with a solution to this acute problem.
macOS solution for FlasPAP not working in macOS Big Sur
The following text needs to be edited:
Looks like you recently upgraded to Big Sur on your Mac. Big Sur seems to have broken Java on many machines so it may be a while before an Apple update comes out.
You can also try to install Oracle Java yourself. FlashPAP was written in Java 7 I believe, so you would need to install Java 8 (LTS???). I think Java is up to 14 or 15 but I don't know if they are all backwards compatible with the older stuff. Another option to search for would be OpenJDK or AdoptOpenJDK. They are opensource projects for Java.
if your not stuck on using FlashPAP, you can use Macs built in "rsync" and ApplScript instead. It gets the job done and is my prefererd way of doing it all. I just turned it into an AppleScript on my desktop, and it is not affected by Java. Doubleclick it and it mounts FlashAir, copies the filr that have changed to your computer where you can import the data into OSCAR. If it sounds like something you would like to try I will post the applescript code here and give you guidance getting it working, it's fairly easy.
I am still on Catalina and have no intension of upgrading to Big Sur until they get another upgrade or 2 fixed first!
Here is the AppleScript for review: Code: #Enter you FlashAir card name or IP address below (between the quotes " ")<br /> set diskName to "192.168.1.240"<br /> #<br /> #Enter the location you want your xPAP data transferred to (between the quotes " "). The folder (directory) must already exist!<br /> set copyLocation to "/users/yourusername/Documents/OSCAR_DATA/"<br /> #<br /> #Enter the location of OSCAR.app, by default it's /Applications<br /> set oscarLocation to "/Applications"<br /> #<br /> #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" after a few minor changes for your computer, just copy it into Script Editor and save it as an app.
Donate to Apnea Board