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
#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. You can download your data 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

Stick it to the man, Download OSCAR and take back control of your data!

Thanks Ian. Like I didn't have enough Honey-Do projects to tackle. Mornincoffee
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!
My Personal Blog
Post Reply Post Reply
#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
#6
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 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.

I would be very interested in testing this.  I found some links to sample lua code for google drive and dropbox, but they were on Toshiba developers site which is closed down.  All I need is the upload part.  Anyone know if the sample files still exist anywhere?
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Caution: Wellue O2 Ring - Time Sync hybernate 9 1,228 03-04-2024, 01:31 PM
Last Post: Plmnb
  Flashair - Dreamstation -> Airsense 11 Autoset todivefor 14 610 02-28-2024, 07:22 PM
Last Post: Crimson Nape
  [split] FYSETC SD Wifi - Possible FlashAir Replacement Psikic 131 21,032 01-12-2024, 11:59 AM
Last Post: scowell
Question Failed drive, now cannot install or uninstall Oscar jmac862 8 724 01-08-2024, 04:00 PM
Last Post: SGKent
  FlashPAP - FlashAir WiFi SD card utility TiredToo 296 94,466 10-05-2023, 06:54 AM
Last Post: olddog27
  looking for FlashAir W-04 16GB SD_card image Dog Slobber 3 785 06-03-2023, 08:21 AM
Last Post: Dog Slobber
Information Lookee oximeter import/sync issues, wiki update suggestions Uphold9887 9 753 05-02-2023, 11:02 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.