Notices


Reply
Thread Tools
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#11
Originally Posted by xur17 View Post
I can do this pretty easily. I can set it up so this can be initialized by requesting a specific url, such as:

Code:
http://yourserver.com/someurl?http://www.urltoopen.com
The server software has a webserver built into it.

Does someone want to make a firefox / chrome plugin to make this request? I can provide more details if necessary.
FoxToPhone's sendtophone.js looks like it POSTs data of the form:

Code:
'title=' + encodeURIComponent(title) +
'&url=' + encodeURIComponent(url) +
'&sel=' + encodeURIComponent(selection)
This obviously encapsulates the page title, the URL of the object and the selected text on the page.

It sends it to a configurable base URL (default = https://chrometophone.appspot.com) with the path:

Code:
'/send?ver=' + this.apiVersion;
The page can return one of the following at the start of the response:
  • OK
  • LOGIN_REQUIRED
  • DEVICE_NOT_REGISTERED

If you can make a server component deal with that, the existing plugins can be used.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#12
Originally Posted by Jaffa View Post
FoxToPhone's sendtophone.js looks like it POSTs data of the form:

Code:
'title=' + encodeURIComponent(title) +
'&url=' + encodeURIComponent(url) +
'&sel=' + encodeURIComponent(selection)
This obviously encapsulates the page title, the URL of the object and the selected text on the page.

It sends it to a configurable base URL (default = https://chrometophone.appspot.com) with the path:

Code:
'/send?ver=' + this.apiVersion;
The page can return one of the following at the start of the response:
  • OK
  • LOGIN_REQUIRED
  • DEVICE_NOT_REGISTERED

If you can make a server component deal with that, the existing plugins can be used.
This should be doable, and shouldn't be all that difficult. I can't do anything with the selection that is sent, but I can do the rest.

I need to get the project in a releasable state that is easier to install first.

Has anyone tried to install JPush / had any luck?
 
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#13
I just released a version of the client into extras-devel. Edit /opt/jpush/jpush.py to set it up, and run 'jpush start' (as user, not as root) to start it.

Let me know if you have any issues with it.
 
Posts: 222 | Thanked: 205 times | Joined on Jul 2009 @ Finland
#14
Originally Posted by Jaffa View Post
If you can make a server component deal with that, the existing plugins can be used.
Fastest start might be a google app engine application that just queues your "pushed" stuff in database and fetches it all when you launch an application on your phone.

Hooking it up to invoke some kind of push could be the distant next step. Now I just want to get stuff to my phone easily without doing something silly like connecting to the phone directly, or sending email to myself.

(Sorry if this constitutes a thread hijack ;-).
__________________
'QtDone'. Getting things done (GTD) was never this cheap!

'QmlReddit' reads Reddit!
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:27.