RE: [EzShare SDcard wifi] Script to autodownload
@biorn, thanks for this script. It worked great on Debian 9!
I have on my list a port to macOS, but at first glance there appear to be some differences in the way sed is implemented, so this might be a more substantial project than I anticipated.
In the meantime, I'll put an old RPi on the job to collect the files periodically. How have you implemented a crontab in your installation? Is there a risk of downloading a partial file that would be skipped on a subsequent crontab run?
RE: [EzShare SDcard wifi] Script to autodownload
(08-08-2021, 06:27 AM)bollar Wrote: @biorn, thanks for this script. It worked great on Debian 9!
I have on my list a port to macOS, but at first glance there appear to be some differences in the way sed is implemented, so this might be a more substantial project than I anticipated.
In the meantime, I'll put an old RPi on the job to collect the files periodically. How have you implemented a crontab in your installation? Is there a risk of downloading a partial file that would be skipped on a subsequent crontab run?
Hello,
Yes I run in through a cronjob. And no there is no risk, I've implemented something to check if the date and size is the same. if not that update the file.
RE: [EzShare SDcard wifi] Script to autodownload
I've read through this thread a couple of times and I am a bit confused on what method the script uses to connect to the SD Card. Does the EzShare SD card connect to your home network in "station" mode or are you having your sever connect to the SD card WiFi network before pulling the files?
RE: [EzShare SDcard wifi] Script to autodownload
(08-18-2021, 02:55 PM)y2kdread Wrote: I've read through this thread a couple of times and I am a bit confused on what method the script uses to connect to the SD Card. Does the EzShare SD card connect to your home network in "station" mode or are you having your sever connect to the SD card WiFi network before pulling the files?
The machine you run the script on has to connect to the WiFi network created by this card.
For what it's worth, I deployed an old raspberry pi -- it uses wifi to connect to the SD card network and wired ethernet to connect to the rest of the network. I have a cron job on the Rpi that runs this script once a day to get the new files and it uses rsync to get the files onto the OSCAR machine.
RE: [EzShare SDcard wifi] Script to autodownload
(09-01-2021, 10:03 AM)bollar Wrote: The machine you run the script on has to connect to the WiFi network created by this card.
For what it's worth, I deployed an old raspberry pi -- it uses wifi to connect to the SD card network and wired ethernet to connect to the rest of the network. I have a cron job on the Rpi that runs this script once a day to get the new files and it uses rsync to get the files onto the OSCAR machine.
I ended up doing this, but used create a fileshare that I mounted on my windows machine. So far it works great and is much cheaper then buying one of the supported FlashAir cards!
RE: [EzShare SDcard wifi] Script to autodownload
Hi dear Sir. I'am interested in a version for Windows, please.
RE: [EzShare SDcard wifi] Script to autodownload
(08-08-2021, 06:27 AM)bollar Wrote: @biorn, thanks for this script. It worked great on Debian 9!
I have on my list a port to macOS, but at first glance there appear to be some differences in the way sed is implemented, so this might be a more substantial project than I anticipated.
In the meantime, I'll put an old RPi on the job to collect the files periodically. How have you implemented a crontab in your installation? Is there a risk of downloading a partial file that would be skipped on a subsequent crontab run?
@bollar, here is a port to macOS - https://github.com/jimbocococo/EzShare-S...Downloader
I added a couple of lines to the script to switch to the Ez Share wifi and then back it again once completed. These are commented out towards the end of the script.
@biorn, thanks for the script!
RE: [EzShare SDcard wifi] Script to autodownload
(11-30-2021, 08:43 PM)oqwif Wrote: ... here is a port to macOS - https://github.com/jimbocococo/EzShare-S...Downloader
Unfortunately, "wget" is not native to a standard macOS install, so the script will fail its utilities check. It can be installed manually or with homebrew, macports, etc. Or a form of "curl" can be used but may take a little more work to get all the files.
RE: [EzShare SDcard wifi] Script to autodownload
Thank you for the gdrive link! I just got an ez Share card and had the same access error.
08-09-2022, 03:32 PM
(This post was last modified: 08-09-2022, 03:33 PM by psysmile.)
RE: [EzShare SDcard wifi] Script to autodownload
(03-30-2021, 04:15 AM)biorn Wrote: Hi guys I just recieved a cheap sdcard wifi branded Ez Share.
I don't know if I can put the commercial link but I buyed it on banggood for 20$. (the white model is the newer one)
It's an SD adpater for microSD cards with wifi capacity.
Unfortunally you can't connect on it with ftp/smb/fs and other protocols. It's only http and if you download a folder just photo will be downloaded.
So I've make a bash script for my linux server to direct downloads files on my resmed airsense 10 and I share it to you.
It scan the card files and folders accross http, then download on the computer.
I'll made a readme if you need, but you just have to change the folder destination and could run it accros a cronjob to be full auto.
If some of you need a windows version just ask me and I'll modify it.
You have some feature, like checking of new files, files modified, folder, etc, create folder, subfolder.
3 modes of downloads, custom keywords so you can use it easly on other cpap brand and models.
This card is pretty good for the price.
It's very fast, arround 200 files in 15sec.
And Oscar is happy to have fresh data everyday.
the file is just here
Hi biorn,
I would like to come to your offer and kindly ask to provide the windows version :-)
Thank you very much and have a good day.
Regards,
psysmile
|