maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] JPush: Push via Jabber (for push email, etc) (https://talk.maemo.org/showthread.php?t=63903)

Jaffa 2010-10-19 11:52

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by xur17 (Post 844289)
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.

xur17 2010-10-19 13:42

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Jaffa (Post 844965)
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?

xur17 2010-10-20 16:43

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
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.

vivainio 2010-10-20 18:34

Re: [Announce] JPush: Push via Jabber (for push email, etc)
 
Quote:

Originally Posted by Jaffa (Post 844965)
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 ;-).


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

vBulletin® Version 3.8.8