mvysny / photocloud-frame-slideshow

Android Digital Photo Frame
https://www.android-photo-frame.eu
14 stars 1 forks source link

function to save slideshow as a xml file #122

Closed RayRaymond closed 3 years ago

RayRaymond commented 4 years ago

function to save slideshow as a xml file.

thank u for the nice product. if there is a save to file function that will be perfect!

mvysny commented 4 years ago

I'm not sure I understand - what would be the contents of the XML file please? Could you paste an example XML file which you would expect?

RayRaymond commented 4 years ago

Just save the slideshow settings to files. and the files linked to your app. so i can start different slideshow just from one click on the different file.

Best Regards,

On Wed, Apr 15, 2020 at 1:43 PM Martin Vysny notifications@github.com wrote:

I'm not sure I understand - what would be the contents of the XML file please? Could you paste an example XML file which you would expect?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mvysny/photocloud-frame-slideshow/issues/122#issuecomment-613829017, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOZCKGO4P54NBTS3IQ47YFLRMVCQ3ANCNFSM4LEYOQGA .

mvysny commented 4 years ago

Unfortunately that's not possible, at least not in a generic way. The reason is that most cloud vendors generate so-called "tokens" as a means to access your cloud-stored files. The tokens are tied to a particular device and are not transferrable to another device (the token may not work elsewhere since it's tied to the device ID).

Some cloud storages are only protected by username/password (e.g. Samba) and those are transferrable, so the XML approach would work for those streams, but definitely not for all streams.

andyfrei commented 4 years ago

Unfortunately that's not possible, at least not in a generic way. The reason is that most cloud vendors generate so-called "tokens" as a means to access your cloud-stored files. The tokens are tied to a particular device and are not transferrable to another device (the token may not work elsewhere since it's tied to the device ID).

Some cloud storages are only protected by username/password (e.g. Samba) and those are transferrable, so the XML approach would work for those streams, but definitely not for all streams.

What would them working ones be? Maybe that could help the community to vote for the feature or not... me for myself, I would be happy if Google Photos and/or Synology NAS storage would work...;-)

mvysny commented 4 years ago

No problem :) synology nas - that's either ssh or samba, both should work with the xml just fine. Google photos is token-based and highly secured, that one unfortunately won't work for sure.

Best, Martin

On Thu, 7 May 2020, 10:13 Andy Frei, notifications@github.com wrote:

Unfortunately that's not possible, at least not in a generic way. The reason is that most cloud vendors generate so-called "tokens" as a means to access your cloud-stored files. The tokens are tied to a particular device and are not transferrable to another device (the token may not work elsewhere since it's tied to the device ID).

Some cloud storages are only protected by username/password (e.g. Samba) and those are transferrable, so the XML approach would work for those streams, but definitely not for all streams.

What would them working ones be? Maybe that could help the community to vote for the feature or not... me for myself, I would be happy if Google Photos and/or Synology NAS storage would work...;-)

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/mvysny/photocloud-frame-slideshow/issues/122#issuecomment-625074506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB6BC7ZXUKSQS6MPOVV4L3RQJNRTANCNFSM4LEYOQGA .

mvysny commented 4 years ago

I'm not sure I understand the use-case. Would you like to save a slideshow configuration on one device and load it on another? If you do not need the settings to be portable cross-device, then I do not even need to use XML and I can save in a binary format. I can also save to app settings and simply offer you a picker - a list of settings to load from. Also we're probably not talking about entire settings, just the slideshow list?

andyfrei commented 4 years ago

Correct. Basically working towards this scenario:

Having an old tablet sitting somewhere (maybe tucked to a wall), but I actually don't want to touch at all - or at least as less as possible - once general settings for wakeup/reboot/slideshow autostart etc. are done. From time to time I would just like to update a gallery, most likely the autostart gallery, adjust some gallery specific settings - done. For better convenince I'd prefer doing that on the couch on my phone/at android desktop and just send the settings somehow to the tablet.

RayRaymond commented 4 years ago

Dear Martin

for me, i dont need cross device. binary format is fine, i just want switch to different screen saver showing pictures about my different client when they come to my office. in very easy way. thanks.

Best Regards,

Ray Shun

On Tue, May 19, 2020 at 3:49 PM Martin Vysny notifications@github.com wrote:

I'm not sure I understand the use-case. Would you like to save a slideshow configuration on one device and load it on another? If you do not need the settings to be portable cross-device, then I do not even need to use XML and I can save in a binary format. I can also save to app settings and simply offer you a picker - a list of settings to load from. Also we're probably not talking about entire settings, just the slideshow list?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

RayRaymond commented 4 years ago

maybe a picker + a cache cleaner is better for switch screen saver

Best Regards,

Ray Shun

On Wed, May 20, 2020 at 11:44 AM Xun Lei aihugongwu@gmail.com wrote:

Dear Martin

for me, i dont need cross device. binary format is fine, i just want switch to different screen saver showing pictures about my different client when they come to my office. in very easy way. thanks.

Best Regards,

Ray Shun

On Tue, May 19, 2020 at 3:49 PM Martin Vysny notifications@github.com wrote:

I'm not sure I understand the use-case. Would you like to save a slideshow configuration on one device and load it on another? If you do not need the settings to be portable cross-device, then I do not even need to use XML and I can save in a binary format. I can also save to app settings and simply offer you a picker - a list of settings to load from. Also we're probably not talking about entire settings, just the slideshow list?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mvysny commented 4 years ago

@RayRaymond I was exactly thinking about some kind of a "profile" switcher. Could you please open a new feature request though, since it seems to me that your use-case feels a bit different than Andy's use-case?

mvysny commented 4 years ago

@RayRaymond I've just implemented #132 and I think that the 'clone' functionality could be helpful also in your case. What you will be able to do is to clone a Stream, name it differently and root it in a different folder. That way, you can have one Stream showing pictures from /clients/my_first_client, other Stream showing pictures from /clients/my_other_client.

andyfrei commented 4 years ago

I think this is great functionality, well done! Still missing a send to or export/import function of the stream with, but may not be anymore necessary now...

mvysny commented 3 years ago

Closing as fixed; if you have any doubts, please reopen and let me know why the 'Clone' functionality doesn't cover your use-case. Thank you :)