maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Request] Android Notifier -> Maemo Notifier (https://talk.maemo.org/showthread.php?t=61949)

rantom 2010-09-08 23:31

[Request] Android Notifier -> Maemo Notifier
 
Hiya.

Don't know if this has been mentioned before but here we go. I happened to come cross with an app (Android Notifier) for Android & Mac/Windows/Linux, that let's users to see their push on their computer. However, I can't seem to find an equivalent one for Maemo (5) and am thus asking, would it be possible to make one for it?

I for one don't have any kind of skills to code, otherwise I'd be taking action and do this. What I think is good base for this project is the OpenWatch from repositories, since it seems to use push for the clock but not for the computer. Would it be possible to modify it so, that it would push the.. eh, push to the computer instead?

Thanks in advance (hopefully I followed the rules of the forum by posting this thread in here, since I couldn't really consider this as an Brainstorm).

ear0wax 2010-09-09 03:16

Re: [Request] Android Notifier -> Maemo Notifier
 
I saw android notifier today and instantly thought we need this, I think this would be awesome. Something as simple as letting the dbus tweet would be acceptable

Reffyyyy 2010-09-09 03:23

Re: [Request] Android Notifier -> Maemo Notifier
 
I was actually going to begin writing a script to do this. It'll probably be crap though so does anyone else want to do it instead?

Reffyyyy 2010-09-09 05:43

Re: [Request] Android Notifier -> Maemo Notifier
 
Ok, I can send a message over ssh using notify-send but I have no knowledge of Dbus and can't figure out how to listen to notifications and then send over what's displayed. Still reading about it.

Any help?

CormacB 2010-09-09 12:56

Re: [Request] Android Notifier -> Maemo Notifier
 
Something like this should work with the desktop part of android notify over wifi:

dbus-monitor --system "type='signal', interface='com.nokia.csd.Call', member='Coming'"
| sed -n 's_.*serial=\([0-9]*\).*_v2/n900/\1/RING/foo/foo_p' | nc -u 127.0.0.1 10600

dbus monitor outputs the dbus signals, sed turns it into something approximating the android notifier message format and then netcat sends it over udp to some host. Except piping data into netcat isn't working, which I am blaming on busybox.

Other problems: dbus monitor outputs stuff not in the watch expression at the start, profile output doesn't work with pipes, and netcat is not in extras :)

A python script is probably the best option, using the info on wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/DBus/DBus_in_Freemantle

Reffyyyy 2010-09-10 15:49

Re: [Request] Android Notifier -> Maemo Notifier
 
Unfortunately, I have a load of work to do and am generally going to be extremely busy so I'm either going to be working slowly on this or possibly not at all.

Dependant on how much time I can get. Sorry guys.

benh_n900 2010-09-12 14:58

Re: [Request] Android Notifier -> Maemo Notifier
 
I know this is a bit further on than what you are suggesting, but it would be great to be able to answer the call on your computer too and have the voices rerouted from your phone to the computer. Similarly being able to reply to an SMS would be cool.

Then I can leave my n900 upstairs charging and be working on my laptop and all my calls/SMS will come to me wherever I am in the house :D

Maybe it can be semi-achieved with VNC., I'm not sure what happens with sound...

Laughing Man 2010-09-12 15:06

Re: [Request] Android Notifier -> Maemo Notifier
 
That would be possible with PulseAudio (though that means it only works with Linux computers). But I think the PulseAudio support in the N900 isn't a full implementation.

forteller 2010-09-16 23:07

Re: [Request] Android Notifier -> Maemo Notifier
 
So, is anyone working on this? I would sooo love to see this happen! I'd be happy to do my part to help. I'm no coder, but I'm pretty good at testing and bug reporting, if that would be of any help.

jflatt 2010-09-16 23:21

Re: [Request] Android Notifier -> Maemo Notifier
 
This will show incoming calls in MythTV:
http://talk.maemo.org/showthread.php?t=51453

scottuss 2010-10-29 09:43

Re: [Request] Android Notifier -> Maemo Notifier
 
I've been working on this, it's not feature rich just yet and isn't amazing, but I plan to develop it further.

http://sourceforge.net/projects/n900notifier/

forteller 2010-10-29 14:11

Re: [Request] Android Notifier -> Maemo Notifier
 
Fantastic! Thank you!

rantom 2010-10-29 14:14

Re: [Request] Android Notifier -> Maemo Notifier
 
Quote:

Originally Posted by scottuss (Post 856327)
I've been working on this, it's not feature rich just yet and isn't amazing, but I plan to develop it further.

http://sourceforge.net/projects/n900notifier/

Great, thanks for this. I assume it'll work under OS X as well later on? Oh and if anyone wouldn't mind, would someone fix the tags on this thread? Some smart*ss put those in there and I can't remove them. :D

Cas07 2010-10-29 14:18

Re: [Request] Android Notifier -> Maemo Notifier
 
I was just reading about the andriod notifier yesterday, so its great to hear we could get the same for the N900 :D

scottuss 2010-10-29 14:23

Re: [Request] Android Notifier -> Maemo Notifier
 
Quote:

Originally Posted by rantom (Post 856650)
Great, thanks for this. I assume it'll work under OS X as well later on? Oh and if anyone wouldn't mind, would someone fix the tags on this thread? Some smart*ss put those in there and I can't remove them. :D

I'll get it ready for OS X sometime over this weekend. I'll probably do notifications via Growl, that would make sense I guess?

scottuss 2010-10-29 14:35

Re: [Request] Android Notifier -> Maemo Notifier
 
Just in case anyone wants to know how to get this working:

http://sourceforge.net/projects/n900.../topic/3918994

There will (eventually) be a nice GUI for both the client and server. There will also be packages for all major operating systems.

Laughing Man 2010-10-29 14:37

Re: [Request] Android Notifier -> Maemo Notifier
 
Quote:

Originally Posted by scottuss (Post 856661)
I'll get it ready for OS X sometime over this weekend. I'll probably do notifications via Growl, that would make sense I guess?

Yeah, that way it could also work in Windows (I think it has Growl support).

scottuss 2010-10-29 14:55

Re: [Request] Android Notifier -> Maemo Notifier
 
Quote:

Originally Posted by Laughing Man (Post 856683)
Yeah, that way it could also work in Windows (I think it has Growl support).

I'm not sure how it should work on Windows yet, perhaps a native "balloon notification" would be best. However, I'll play around with Growl and see what I can do (I don't use Windows so I'll possibly be looking to the community for supporting / developing the Windows part of it)

fredoll 2010-10-29 15:19

Re: [Request] Android Notifier -> Maemo Notifier
 
@scottuss
Why did you not comply with AndroidNotifier desktop part ?
This way you would have spare yourself some work and everybody could use the different desktop softwares available

scottuss 2010-10-29 15:41

Re: [Request] Android Notifier -> Maemo Notifier
 
Quote:

Originally Posted by fredoll (Post 856732)
@scottuss
Why did you not comply with AndroidNotifier desktop part ?
This way you would have spare yourself some work and everybody could use the different desktop softwares available

This is a hobby project for me, so I wanted to write each part myself. I'm going to take a look at the desktop part of AndroidNotifier to see if it is of any interest, and although I don't want to re-invent the wheel, I feel starting from scratch will ensure only features that I want in there will be.

We shall see ;)

Edit: Also, the Android desktop stuff is in Java, I prefer Python!

Cas07 2010-10-29 16:31

Re: [Request] Android Notifier -> Maemo Notifier
 
I finally got it working.

There is a bind problem with SocketServer if you explicitly set localhost or hostname then it will only allow local socket connections so in server.py change:
Code:

HOST, PORT = "my-desktop", 50007
to
Code:

HOST, PORT = '', 50007
and a small mistake where the variable callernumber should be sendernumber
In client.py change:
Code:

def handle_call(obj_path, callernumber):
to
Code:

def handle_call(obj_path, sendernumber):

scottuss 2010-10-29 17:39

Re: [Request] Android Notifier -> Maemo Notifier
 
Quote:

Originally Posted by Cas07 (Post 856809)
I finally got it working.

There is a bind problem with SocketServer if you explicitly set localhost or hostname then it will only allow local socket connections so in server.py change:
Code:

HOST, PORT = "my-desktop", 50007
to
Code:

HOST, PORT = '', 50007
and a small mistake where the variable callernumber should be sendernumber
In client.py change:
Code:

def handle_call(obj_path, callernumber):
to
Code:

def handle_call(obj_path, sendernumber):

I've not seen the issue with the socket only allowing local connections, I have to use the Fully Qualified Domain name here, so it would be my-desktop.lan for example but I suspect that's because of an issue with my DNS server.

As for the issue with the variable name, it seems to be correct (at least according to the Maemo documentation). Also, it works for me! Very strange.

I'm glad you have it working! And thanks for the feedback!


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

vBulletin® Version 3.8.8