-1

I'm writing a python script running on a NAS and picking up files from inside of a raspberry pi.

Didn't find any examples how to access raspberry pi. Can somebody give advice?

Thank you

Vik
  • 333
  • 5
  • 14
  • What are you trying to accomplish? Is the script copying files from the raspberry pi? Is the script sort of backing up the raspberry Pi? – Michael Ababio Dec 26 '17 at 01:47

1 Answers1

3

Please do more research.

The easiest way is probably to run Secure Copy (SCP) over SSH from python on NAS. See this thread

If you want to serve files to other clients (e.g. your laptop), consider running file server on RPI. Perhaps FTP: FTP on RPI tutorial Otherwise you can implement HTTP like interface (REST API for example) and "get" files via HTTP. Don't skim on the security and access rights to your API.