A mini webserver to bridge your Jolla and your computer
Hi everybody,
I was trying to create a playlist on my Jolla and quite frustrated when I had this idea. I guess that I'm not the first to have it, but I wanted to expose it with the community so that there can be a debate on how to implement it and bring this awesome feature to our awesome device :)
Today, we have a very limited user-friendly way to interact with our Jolla. Of course, we have SSH, but the fact is that we don't have mass storange, and that MTP is quite buggy. Moreover, even if we had better connection protocol, we won't have all fancy integration that other mobile OS have. For example, with iTunes, you can reorder the applications on your iPhone, send and download photos and videos, and create playlists. On Android, you have some very nice web applications (GMail, GDrive etc.) to manage data on your Android, and same for Windows phone.
Fact is that Jolla users might trust the cloud less, and their device more. Still, it's not a reason not to give them nice integration with other devices (like a computer). There have been initiatives in the open-source world, like KDE-connect, that allows an Android phone to push notifications, calls and sms on your KDE desktop. But this thread is not really about KDE connect. It is about something that could technically work everywhere.
To make it available to all type of computers (and maybe phones / tablets ?), I'm thinking of a mini webserver that could be accessed only when plugged on USB. This webserver would host some webapps that are bridged to your Jolla system. For those who have used the Sailfish SDK, it ressembles a lot to the target manager. On Qt Creator's side, you have a webpage that allows controlling the target, like installing new packages.
A webserver could unlock many capabilities:
- Managing files (drag files from desktop directly on the web app to upload to Jolla)
- Managing music (moving them around to create playlist)
- Viewing or organizing photos
- Sending SMS
- Maybe even answering calls
- Provide API to allow other apps to connect to it
What do you think about this idea ? Feel free to discuss in comments and answers, to add new ideas, and provide hints on how to do it (I don't know how neither how to restrict a webserver to USB only, nor which technology to use, so please contribute :))
Personally, I won't go PHP. I'm eager to learn ruby on rails, as IIRC it's the same platform used in Sailfish SDK.
Sfiet_Konstantin ( 2014-08-04 20:07:59 +0200 )editI like the webserver idea, it is something that is not host platform dependent. (or is it client in this case) No need to install additional stuff on your PC. Limiting it totally to USB... nah... need to have option to use it also over wireless.
so +1 for this.
kimmoli ( 2014-08-04 20:09:59 +0200 )editThe exact goal of the webserver is to be platform independant, exactly :)
I think that limiting to USB gives you security. What if you forgot to disable it and kept wifi on. Someone else could enter in your phone. You could add a password, but it makes the feature less easy to use (one more logging step).
Or we could provide both, a configurable switch to enable either weireless or USB or both.
Sfiet_Konstantin ( 2014-08-04 20:12:48 +0200 )editWhen using USB, you need a cable. For allowing wireless access to "starboard", just show a popup on device to grant access. Same "effort" for lazy people like me, but no passwords to remember, and IMO same level of security.
kimmoli ( 2014-08-04 20:20:00 +0200 )edithttps://together.jolla.com/question/42078/jolla-radar-an-unlike-suite-to-get-rid-of-mtp/https://together.jolla.com/question/25222/poll-what-technology-would-you-prefer-for-a-pc-suite/
The whole over the air (or alternative to MTP) phone management thing has been asked by many from the start. Up to now we have sailserver but it offers very limited functionality. And probably will never feature advanced functionality.
SSH SFTP and stuff is useless for the joe average user. He won't even bother. So we need someone to write an app like that.
I'll add here that an app like this can easily be monetized. People will pay for convenience. And if it can be combined with something like accessing you phone (send sms) over the internet (ie you forgot it at home) possibilities of offering/selling services are greater than just paying for an app.
ApB ( 2014-08-04 21:02:44 +0200 )edit