maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [IN DEVELOPMENT] PUSH via Jabber tool (https://talk.maemo.org/showthread.php?t=63708)

xur17 2010-10-12 04:04

[IN DEVELOPMENT] PUSH via Jabber tool
 
This software has been released. It is called JPush.

Please visit this thread for more details.

------------------------------

This thread is to gather ideas for a PUSH via Jabber tool. I am currently looking for ideas on what to support, and possible names for the program. Read below for details on the program.

This software does require a program to be running on a server. How many people have access to a server that they could use for this (see the poll above)?

I would be willing to run a server, but this would require collecting donations (I can get a server to support plenty of people for ~$10 a month). This would require users to put their username and passwords on the server, or forward their emails to the server. Let me know what you think about this idea (this would of course be optional. You could run the server on your own computer).

--------------------------------------------------------------------------------

This program uses an existing jabber account on the n900, and a server to enable pushing information to the device.

This currently supports push updates of new messages to the n900 (essentially push email for any email account, gmail, yahoo, etc without the battery, etc downsides of nokia messaging). In the future it will support push for other applications, such as TOR.

(In case anyone doesn't know, push is where the device is notified of new emails / other information instead of checking every x minutes to see if there is any new information).

--------------------------------------------------------------------------------

This software does require the use of a linux server that can receive email. How many people have access to a server that they could use?

dekin 2010-10-12 06:06

Re: Interest in PUSH via Jabber tool?
 
100% interested

uvatbc 2010-10-12 06:29

Re: Interest in PUSH via Jabber tool?
 
Interested! I now understand the direction of your questions for qgvdial - I'm curious what your design is.

n900ak 2010-10-12 09:53

Re: Interest in PUSH via Jabber tool?
 
Hey, the title of your post is a bit misleading.....i thought it is a request or a problem/issue thread......Well now that I know its not the case then, Am all for it.....Go mate go...its definitely needed.
May I suggest changing the title of thread to something like [Announce] etc...to catch more eyeballs...its only a suggestion though.....

Happy developing:D
AK
Quote:

Originally Posted by xur17 (Post 838945)
I wrote a script that uses an existing jabber account on the n900, and a server to enable pushing information to the device.

This currently supports push updates of new messages to the n900 (essentially push email for any email account, gmail, yahoo, etc without the battery, etc downsides of nokia messaging). In the future it will support push for other applications, such as TOR.

I am trying to gauge interest to decide if cleaning up the code to release it is worthwhile. If there is, I would clean it up, and make it more user friendly.

(In case anyone doesn't know, push is where the device is notified of new emails / other information instead of checking every x minutes to see if there is any new information.


IzzehO 2010-10-12 10:05

Re: Interest in PUSH via Jabber tool?
 
That's definitely very cool concept. I'm curious as to how well this would interface with the email client Eg. It'll open the email client much the same as with regular polled mode? Or is it simply an IM notification Eg "You've got a new email".

mveplus 2010-10-12 10:26

Re: Interest in PUSH via Jabber tool?
 
Hi, great news - today I tought about it PUSH on N900.
Glad that you already done it!

Where is the script?

Greetings

mbo 2010-10-12 10:30

Re: Interest in PUSH via Jabber tool?
 
+1
sounds good

bergie 2010-10-12 10:43

Re: Interest in PUSH via Jabber tool?
 
Quote:

Originally Posted by xur17 (Post 838945)
I wrote a script that uses an existing jabber account on the n900, and a server to enable pushing information to the device.

Are you using Telepathy Tubes for this, or just plain XMPP?

But yes, definitely interested.

iopiccolo 2010-10-12 10:50

Re: Interest in PUSH via Jabber tool?
 
extremely interested.. would help me out a lot. Thank you

Willem Liu 2010-10-12 10:50

Re: Interest in PUSH via Jabber tool?
 
Interested!

xur17 2010-10-12 11:06

Re: Interest in PUSH via Jabber tool?
 
I'll post some more details later today, but just as a basic overview of the system I am using:

It uses an XMPP account on the server that is signaled in some way (right now by receiving an email), that makes the server switch its presence. The n900 program receives this via a dbus message that it subscribes to, and then takes the appropriate action (runs a script), such as checking for email.

I might add telepathy tubes in the future so actual data can be sent too, but that would come in a later release, since I would need to look into how to do that.

I didn't realize there was this much interest. I'll probably have some time to do some cleanup on the code this weekend. I just need a name for the program. Any ideas? I'll change this to an announce thread once I come up with a name.

mveplus 2010-10-12 11:14

Re: Interest in PUSH via Jabber tool?
 
Quote:

Originally Posted by xur17 (Post 839160)
I just need a name for the program. Any ideas? I'll change this to an announce thread once I come up with a name.

NPush (Or NoPush jokingly :p)

ossipena 2010-10-12 11:17

Re: Interest in PUSH via Jabber tool?
 
I am very interested...

petur 2010-10-12 12:04

Re: Interest in PUSH via Jabber tool?
 
What would be the big advantage between having the presence being polled all the time (as is done now), with also mail being polled (infrequently)?
Or do I misunderstand how the presence is updated right now?

bakuur 2010-10-12 12:22

Re: Interest in PUSH via Jabber tool?
 
first i want to see that im VERY interested in this app

as for a proper title or name for it then mmm... why not simple stuff like: 'push mail'
or 'PushN900'
i like the second one though, looks eye catchy.

thanks for your efforts,
bakuur

paulkoan 2010-10-12 12:40

Re: Interest in PUSH via Jabber tool?
 
I would keep n900 out of the name, and go for something more platform agnostic to avoid renames down the track when you redevelop for meego and other platforms :)

I seem to be one of the few people who puts up with battery drain to maintain an online presence (via xmpp).

Are people going to be willing to maintain a permanent data connection?

I was toying with a script that used Google Voice free SMS for push, which would then trigger the n900 to establish a data connection to get done what needed to be done.

elie-7 2010-10-12 13:10

Re: Interest in PUSH via Jabber tool?
 
cool man, and it would be awesome if it supports facebook pish notifications.

xur17 2010-10-12 16:31

Re: Interest in PUSH via Jabber tool?
 
Quote:

Originally Posted by mveplus (Post 839112)
Hi, great news - today I tought about it PUSH on N900.
Glad that you already done it!

Where is the script?

Greetings

The script isn't in a very user friendly state right now. I plan on making a few changes to it, and cleaning it up before I go ahead and release it.

Quote:

Originally Posted by petur (Post 839212)
What would be the big advantage between having the presence being polled all the time (as is done now), with also mail being polled (infrequently)?
Or do I misunderstand how the presence is updated right now?

The xmpp protocol updates presence and receives messages via push (the client opens a connection to the server, and that connection is left open, and new messages / presences are "pushed" to the client instantly), instead of via polling, where new messages, etc are checked for every X minutes.

Email (unless you are using nokia messenging, or microsoft activesync) is received by checking for new messages every X minutes. This program will notify your phone that there is a new message, so you can receive it instantly. If you are already using a jabber client on the n900, it should use less battery than nokia messenging, microsoft activesync, or even polling.

Quote:

Originally Posted by paulkoan (Post 839229)
I would keep n900 out of the name, and go for something more platform agnostic to avoid renames down the track when you redevelop for meego and other platforms :)

I seem to be one of the few people who puts up with battery drain to maintain an online presence (via xmpp).

Are people going to be willing to maintain a permanent data connection?

I was toying with a script that used Google Voice free SMS for push, which would then trigger the n900 to establish a data connection to get done what needed to be done.

It is probably a good idea to name it something that is platform agnostic, just to future proof the program. What about something like JabberPush? Is it a bad idea to use the protocol in the name, in case I ever support other protocols too?

I previously tried to use SMS for push, but there is no way to block SMS messages, so they don't get displayed (please correct me if I am wrong though).


Quote:

Originally Posted by elie-7 (Post 839250)
cool man, and it would be awesome if it supports facebook pish notifications.

This is definitely a possibility in the future. What sort of notifications would you want? This program is mainly going to notify other programs of new information, such as notifying facebrick that you have new messages, and then let it handle it.

xur17 2010-10-12 16:54

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
This software does require a program to be running on a server. How many people have access to a server that they could use for this?

uvatbc 2010-10-12 17:03

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by xur17 (Post 839420)
This software does require a program to be running on a server. How many people have access to a server that they could use for this?

I do.

Also: Add a poll to the thread.

xur17 2010-10-12 17:06

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by uvatbc (Post 839428)
I do.

Also: Add a poll to the thread.

Who do I have to contact to get a poll added to the thread? The option appears to be gone now.

uvatbc 2010-10-12 17:08

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by xur17 (Post 839431)
Who do I have to contact to get a poll added to the thread? The option appears to be gone now.

Click thread tools -> Add a poll to this thread

Not having that option may be related to the t.m.o. theme you are using. Switch to the default "normal".

xur17 2010-10-12 17:13

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by uvatbc (Post 839434)
Click thread tools -> Add a poll to this thread

Not having that option may be related to the t.m.o. theme you are using. Switch to the default "normal".

Thanks, that worked. I was looking on the edit post page instead.

daperl 2010-10-12 17:32

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Dude, this is the future and you're on the right track. But go big, or go home. The right solution includes all push(XMPP,SIMPLE,...)/pull(email,RSS,...) protocols supported by a personal proxy/server that makes one tunneled dynamic push connection to the mobile device.

Start with a big picture and modify it for a better personal/mobile experience:

http://www.kamailio.org/wp-images/kamailio-sip-ucp.png

The Kamailio SIP server ties in nicely with jabberd2 to provide a very good starting point, and they both already run on sub-$50 OpenWRT devices.

xur17 2010-10-13 02:46

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by daperl (Post 839441)
Dude, this is the future and you're on the right track. But go big, or go home. The right solution includes all push(XMPP,SIMPLE,...)/pull(email,RSS,...) protocols supported by a personal proxy/server that makes one tunneled dynamic push connection to the mobile device.

Start with a big picture and modify it for a better personal/mobile experience:

<snip>

The Kamailio SIP server ties in nicely with jabberd2 to provide a very good starting point, and they both already run on sub-$50 OpenWRT devices.

So you are basically recommending a server that can handle all kinds of different content, and then push it to the device? Something similar to the push api for android devices). This is something that I have always felt was missing from maemo.

This service could possibly grow into something like this, but for now I plan on making it extendable, and adding features as requested.

An all inclusive push api for the device would best be setup by nokia themselves.

What about the name JPush (for jabber push)? This is tied to the protocol used, but I can't think of anything better.

quipper8 2010-10-13 03:20

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
I have been researching along these lines lately as well, trying to be more 'real-time'

I think for me is going to end up being some combination of xmpp(ejabberd) for the pushing and amqp(rabbitmq) for the brokering, proxying, queuing whatever you wanna call it

google it and find some intersting projects along these lines already under way for a while

xur17 2010-10-13 03:56

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by quipper8 (Post 839774)
I have been researching along these lines lately as well, trying to be more 'real-time'

I think for me is going to end up being some combination of xmpp(ejabberd) for the pushing and amqp(rabbitmq) for the brokering, proxying, queuing whatever you wanna call it

google it and find some intersting projects along these lines already under way for a while

I really would prefer to stay away from anything that requires my device to maintain yet another connection to the internet, and eat up more of my battery. This is able to use an existing xmpp connection, which I don't think anything else is able to do.

I am having issues with the following command sending / receiving new emails if I completely disable polling. If I set it to check for new messages every 24 hours or less, it works fine. If anyone has a chance, could they try running this command with automatic polling disabled, and see if it actually checks for new messages?:

Code:

dbus-send --type=method_call --dest=com.nokia.modest /com/nokia/modest com.nokia.modest.SendReceive

quipper8 2010-10-13 04:06

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by xur17 (Post 839786)
I really would prefer to stay away from anything that requires my device to maintain yet another connection to the internet, and eat up more of my battery. This is able to use an existing xmpp connection, which I don't think anything else is able to do.

I am having issues with the following command sending / receiving new emails if I completely disable polling. If I set it to check for new messages every 24 hours or less, it works fine. If anyone has a chance, could they try running this command with automatic polling disabled, and see if it actually checks for new messages?:

Code:

dbus-send --type=method_call --dest=com.nokia.modest /com/nokia/modest com.nokia.modest.SendReceive

all of that stuff above is server-side

it is just xmpp on client side

xur17 2010-10-13 04:32

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by quipper8 (Post 839787)
all of that stuff above is server-side

it is just xmpp on client side

How do you define actions, etc on the client side for stuff being pushed to the client? I'll have to take a deeper look at rabbitmq, and see if it would work better.

xur17 2010-10-13 23:35

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
Quote:

Originally Posted by quipper8 (Post 839787)
all of that stuff above is server-side

it is just xmpp on client side

Is this what you are talking about?

I think I might release what I have for now, and leave that as a possible enhancement in the future.

ryo1st 2010-10-14 02:43

Re: Interest in PUSH via Jabber tool?
 
Quote:

Originally Posted by xur17 (Post 839410)
It is probably a good idea to name it something that is platform agnostic, just to future proof the program. What about something like JabberPush? Is it a bad idea to use the protocol in the name, in case I ever support other protocols too?

I previously tried to use SMS for push, but there is no way to block SMS messages, so they don't get displayed (please correct me if I am wrong though).

the name: Push@4.all

just idea :)

xur17 2010-10-15 03:08

Re: [IN DEVELOPMENT] PUSH via Jabber tool
 
This software has been released. It is called JPush.

Please visit this thread for more details.


All times are GMT. The time now is 11:39.

vBulletin® Version 3.8.8