Here's my situation:
- I wrote a desktop app using nw.js (a node.js-based platform to write desktop apps within an offline Chromium browser that has access to the file system). Users will make 'projects' with this app. What's relevant for now is that the data used to represent each "project" is saved as a JSON formatted file on the user's computer.
- I want users to click on a button that says "Upload Project", select one of their projects from a list, and transfer that JSON formatted data file to a Raspberry Pi.
- The Pi will be running a program at boot that uses the JSON file to do fun stuff.
I'm kind of stuck right now. This needs to be user friendly. This app will be packaged and distributed to several people who don't know how to navigate a file system, let alone set up a Pi to work on their personal WiFi and SSH in. I need a way to transfer the JSON data file from their PC to the Pi.
The solution:
- does not depend on wifi. Anyone should be able to use this anywhere, so it should be wired. Some sort of USB-to-serial cable, ethernet cord, or something is probably the most user friendly way to go. This wired solution would connect from their computer to the Pi.
- allows their computer to detect what drive the aforementioned cable is connected to.
- is auto-detected by the Pi. When I plug that wire in, the Pi should know it's there immediately and take the file offered to it (or request the file it needs).
- should dump the file in a place the Pi can reach it, even after the cable is disconnected.
So yeah, this is a big question. What's the best hardware for this job? How do I tell the PC where to look? How do I tell the Pi where to look? How do I make this automatic and somewhat user-friendly/universal?