BalenaDash - photos service question (error)

Folks,

Trying to get balena dash working on a RP 3+. I successfully deployed services (photos, scheduler, wifi-connect, wpe) but can’t seem to get the photos service to pull the pictures from a shared album; I’ve tried Apple and Google.

I keep getting the same resultant error back in the log console for “photos” service: “error: Could not parse album.”

Any ideas?

20.08.19 10:16:53 (-0400)  photos  
20.08.19 10:16:53 (-0400)  photos  > album-slideshow@1.0.0 start /usr/src/app~
20.08.19 10:16:53 (-0400)  photos  > node server.js
20.08.19 10:16:53 (-0400)  photos  
20.08.19 10:16:59 (-0400)  photos  📷 - Fetching images...
20.08.19 10:16:59 (-0400)  photos  🔀 - Shuffling images OFF 🔀
20.08.19 10:16:59 (-0400)  photos  error: Could not parse album.
20.08.19 10:16:59 (-0400)  photos  🐉 - Scheduler configured for 0 */12 * * *
20.08.19 10:16:59 (-0400)  photos  ✨ - Magic happens on port 8888

It is worth noting, if relevant, that I’ve updated npm to v6.10.3 and restarted the service.

Thank you.

gh

Hello,
Which value have you set for GALLERY_URL?
The error comes from https://github.com/balena-io-projects/balena-dash/blob/12d0e374478eca656f443cf2366dc207d93e2491/photos/server.js#L297 , it means that the hostname provided in GALLERY_URL is incorrect.

1 Like

@gh_792130

One example for GALLERY_URL would be https://photos.app.goo.gl/xKmJh9w6dkYSsscX7. Meybe you are adding the wrong address, as mentioned by @zvin

1 Like

Thank you both @dansku @zvin for your super prompt reply! It was definitely the URL. Fixed it and it is now loading without a hitch. Thank you!

Additional question, does this project currently only support Apple, Dropbox, and Google for galleries? Do you know if anyone else has tried to parse any other galleries, say something like Instagram or Facebook?

Thank you!

gh

Currently it only work with those that you mentioned.
You are more than welcome to check the source code and implement new galleries and submit a Pull Request for the project. That would actually be awesome!

Thanks

1 Like

Thanks again for the speedy reply @dansku

Cheers!

gh

1 Like