theothernt / AerialViews

A screensaver for Android TV devices including Nvidia Shield, Fire TV, and Chromecast with Google TV. Inspired by Apple TV's video screensaver.
GNU General Public License v3.0
469 stars 35 forks source link

Feature Request - A way to export and import settings #33

Closed mwoodson closed 2 years ago

mwoodson commented 2 years ago

This is a selfish request. I have 3 Android TV boxes. I have downloaded all the videos to a NAS. I spent a good10 minutes setting it up(lots of typing). I would love my other 2 devices to be configured exactly the same. It’d be great to export somewhere, maybe even video dir, so it can be imported on other devices.

thanks for the great app!

theothernt commented 2 years ago

That's actually a very good feature request!

Even for myself as the developer, I test on 3 different devices and other than on a phone, text entry is a pain. This is what I'm thinking of so far...

  1. Import/Export of SMB settings only (app settings would be seperate)
  2. Can import SMB settings from anywhere on local storage
  3. Probably CSV format as it's simple, can have multiple entries (only 1 is supported now, that may change in future)
  4. By default save to Download folder

Once a SMB settings file is created, I'm wondering - if there an easy way for people to get the file off the device and share it with their other devices. In my case, I have debugging enabled so I can use ADB command or Android Studio's device file explorer to easily get at files... but what about less technical users, etc.

Anyway, let me know what you think...

mwoodson commented 2 years ago

I use x-plore File Manager on Android TV, and it easily lets me SMB shares. I would use that to copy around exported configs.

I am totally fine with the export of just SMB shares, it is what the majority of the typing is used for. But I also don't have a need to configure anything different, so all the settings would be nice to have. BUT, the other settings are really easy to configure, so again, not a huge deal in my opinion.

theothernt commented 2 years ago

Ok, I'll see if I can get that in the next month or so.

theothernt commented 2 years ago

Just working on this feature at the moment. It seems any convenience that Android has for opening or easily saving files for phones doesn't work for Android TV (I've tried all their official samples!). So, this import/export feature will be pretty simple, reading or writing a file to /Downloads.

I'll probably use the Properties file format, which is text and easy to hand edit...

username = xxx
password = yyy
hostname = zzz
theothernt commented 2 years ago

@mwoodson I've just released v1.1 beta 2 with that feature if you'd like to give it a try?

https://github.com/theothernt/AerialViews/releases/tag/1.1-beta2