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 Serverless Google Drive Sync
#1
FlashAir Serverless Google Drive Sync
tldr: Let me know if you would be interested in a FlashAir -> GoogleDrive -> Web  application that is totally serverless.  



I worked on a lua script that would sync my FlashAir to a GoogleDrive account.  This requires no software installation on your PC and just a lua script that you would add to your flashair.  Files automatically sync from the WIFI SD card to google drive with no interaction after setup.  

I probably have 50 hours of messing with my FlashAir to have a reliable sync to GoogleDrive.  There is still work to publish the file and a web application so I thought I would check the interest level here first.

It has worked flawlessly for my ResMed AirSense 10.  There is still a little work to make it dead simple to install and use all from a LUA web interface.

My goal was to include a website that could read from google drive and provide some very basic stats & graphs ( nothing compared to OSCAR ).  This means you would be able to preview your results from your phone or if you aren't at your home computer.  I hated it if I didn't have time to login to my pc at home to download and review the data before going to work. I also backlogged an option to read local files in memory using zip.js if you aren't using google drive.

Let me know if this is something that interests you.  I am looking for a little motivation to do the extra work to make it dead simple for anybody to use / install.
I have only tested this on my ResMed AirSense 10 but don't see any reason this wouldn't work for anything else since it is just syncing files.  Web App would only work with the format from AirSense 10 to start.





The GoogleDrive oauth flow is sandboxed to only the CPAP files

Code:
https://developers.google.com/drive/api/v2/about-auth
https://www.googleapis.com/auth/drive.file
Per-file access to files created or opened by the app. File authorization is granted on a per-user basis and is revoked when the user deauthorizes the app.


This means if you would use the zero configuration setup you grant access for the FlashAir to create files and only read / update files it has created.  If there is enough demand I could add configuration pages to utilize your own GDrive api keys.
Post Reply Post Reply



Donate to Apnea Board  
#2
RE: FlashAir Serverless Google Drive Sync
That's pretty cool. I didn't realize these Flashair cards could run lua.
Post Reply Post Reply
#3
RE: FlashAir Serverless Google Drive Sync
They can but a limited version of it. Debug and OS functions of LUA are not available.

Now with Flashair dev site being closed, getting information is going to be harder to come by. Hopefully someone will pick it up in the future.

I would love to test this out. I can directed the data to my own Google drive?

Using FlashAir W-03 SD card in machine. Access through wifi with FlashPAP or Sleep Master utilities.

I wanted to learn Binary so I enrolled in Binary 101. I seemed to have missed the first four courses. Big Grinnie

Post Reply Post Reply
#4
RE: FlashAir Serverless Google Drive Sync
(10-07-2019, 12:06 AM)Trev.Dev Wrote: tldr: Let me know if you would be interested in a FlashAir -> GoogleDrive -> Web  application that is totally serverless.  

I probably have 50 hours of messing with my FlashAir to have a reliable sync to GoogleDrive.  There is still work to publish the file and a web application so I thought I would check the interest level here first.

It has worked flawlessly for my ResMed AirSense 10.  There is still a little work to make it dead simple to install and use all from a LUA web interface.



My goal was to include a website that could read from google drive and provide some very basic stats & graphs ( nothing compared to OSCAR ).  This means you would be able to preview your results from your phone or if you aren't at your home computer. 



 If there is enough demand I could add configuration pages to utilize your own GDrive api keys.

Definitely interested! Very cool project love the ideas.
Captain Steubing
The Original Captain of "The Love Boat"
Purveyor of presto magic, love and chaos!
Post Reply Post Reply



Donate to Apnea Board  
#5
RE: FlashAir Serverless Google Drive Sync
I use FreeFileSync to synchronize my FlashAir to a card that resides in the SD slot on my laptop, runs as a batch file every day @ 11 am in the background. Thing is Oscar will fetch the data directly from the Flashair provided you've designated it as a Network drive in Windows Explorer, just takes a bit longer than reading an SD card in your computer (you'll think it has stalled, but it hasn't).
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Toshiba FlashAir on Mac Notes mtwomey 11 205 09-15-2019, 11:58 PM
Last Post: mtwomey
  Dreamstation Failed Performance Check due to Flashair? hearsay73 8 259 08-20-2019, 02:24 PM
Last Post: A KLERK
  OSCAR /w FlashAir zzzZorro 2 196 08-16-2019, 06:56 PM
Last Post: zzzZorro
  FlashAir card and connected computer PaulaO2 2 213 07-15-2019, 07:24 PM
Last Post: PaulaO2
Question Toshiba flashair w-04 range + Resmed airsense 10 autoset lemonbomb 1 295 06-23-2019, 10:44 AM
Last Post: Crimson Nape
  FlashPAP - FlashAir WiFi SD card utility TiredToo 275 62,262 06-15-2019, 12:05 PM
Last Post: Dog Slobber
  Using FlashAir W-03 SD card in machine courtney123 39 2,410 05-28-2019, 05:54 AM
Last Post: AlanE


New Posts   Today's Posts






About Apnea Board

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