maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] N900 Notifier (https://talk.maemo.org/showthread.php?t=64647)

scottuss 2010-10-29 09:45

[Announce] N900 Notifier
 
This isn't fully featured just yet, but I plan to develop it further and hopefully get assistance and feedback from the community!

It's basically like android-notifier but for our Maemo powered N900s!

(It's written in Python and the client is developed on/for Ubuntu) Sorry if that restricts the user base, but that's what I'm using! I will be making a generic Linux client (same one, but not relying on Ubuntu stuff) and a Windows client. This will be some time in the future.

Edit: Ubuntu, Mac OS X and Windows versions now available!

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

ericsson 2010-10-29 09:49

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by scottuss (Post 856330)
It's basically like android-notifier but for our Maemo powered N900s!

And what is an android-notifier? :confused:

scottuss 2010-10-29 10:10

Re: [Announce] N900 Notifier
 
It shows notifications of incoming calls and SMS messages on your computer's desktop. Useful if you keep your phone in your pocket or somewhere else.

http://code.google.com/p/android-notifier/

badboyuk 2010-10-29 22:02

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by scottuss (Post 856330)
This isn't fully featured just yet, but I plan to develop it further and hopefully get assistance and feedback from the community!

It's basically like android-notifier but for our Maemo powered N900s!

(It's written in Python and the client is developed on/for Ubuntu) Sorry if that restricts the user base, but that's what I'm using! I will be making a generic Linux client (same one, but not relying on Ubuntu stuff) and a Windows client. This will be some time in the future.

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

This sounds good. How do we install it? Where do we copy over the script files....

I would like to check this out

Psycho 2010-10-29 22:13

Re: [Announce] N900 Notifier
 
okay so if it is what im thinking about..

it should be notifier of this video ?

http://www.youtube.com/watch?v=aKZEDuCrNdE

will it be compatible for windows ?

Reffyyyy 2010-10-29 22:23

Re: [Announce] N900 Notifier
 
I've been using it all day. It works perfectly for me. Have only tested texts though.

I guess it would be nice to make an attractive icon to go next to the message. (I would ask for the contact's image but that would be far too much effort)

I actually began working on this and managed to display a notification with the phone number that was calling using SSH, dbus-monitor and some bash trickery.

Psycho 2010-10-29 22:25

Re: [Announce] N900 Notifier
 
N900 Notifier is a simple application to display notifications of incoming SMS and Calls on your computer. It is similar to android-notifier. The client runs on N900 devices (Maemo) and the server component runs on Ubuntu.

argh cant we make this for windows ?

scottuss 2010-10-30 16:34

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by badboyuk (Post 857099)
This sounds good. How do we install it? Where do we copy over the script files....

I would like to check this out

Run the server.py file using:

Code:

python server.py
You then need to copy the client.py script to your N900, and run it using

Code:

python client.py
Don't forget to open the script files and change the HOSTNAME according to your needs.

A nice GUI and package is on the way, but for now, this is probably just for testing.

scottuss 2010-10-30 16:36

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Reffyyyy (Post 857117)
I've been using it all day. It works perfectly for me. Have only tested texts though.

I guess it would be nice to make an attractive icon to go next to the message. (I would ask for the contact's image but that would be far too much effort)

I actually began working on this and managed to display a notification with the phone number that was calling using SSH, dbus-monitor and some bash trickery.

The latest version can lookup the contact from your phone book, however we don't currently have the functionality to get the contact image. It may be something for the future, but for now, it isn't planned.

I'm glad you're enjoying it! :D

scottuss 2010-10-30 16:37

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Psycho (Post 857120)
N900 Notifier is a simple application to display notifications of incoming SMS and Calls on your computer. It is similar to android-notifier. The client runs on N900 devices (Maemo) and the server component runs on Ubuntu.

argh cant we make this for windows ?

We're working on getting this to be multi-platform but currently Linux and Mac OS X are our main focus. Windows compatibility will exist, but I'm not sure when. Sorry!

casper27 2010-10-30 16:51

Re: [Announce] N900 Notifier
 
Anyone know if there is a similar app for Symbian? My evil little brain is thinking thoughts of installing it on a symbian phone and getting notifications on the N900 when that person receives a txt/call and who from... bit of backwards modding needed but great for certain underhand tactics.;)

Cas07 2010-10-30 16:59

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by scottuss (Post 857645)
The latest version can lookup the contact from your phone book, however we don't currently have the functionality to get the contact image. It may be something for the future, but for now, it isn't planned.

I'm glad you're enjoying it! :D

quick progress :)

Could you add use some simple version info for the files and filenames on sourceforge so we know whether you have updated them, thanks.

scottuss 2010-10-30 17:12

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Cas07 (Post 857665)
quick progress :)

Could you add use some simple version info for the files and filenames on sourceforge so we know whether you have updated them, thanks.

Consider it done, the next update will be 0.3 and we will progress from there :)

scottuss 2010-10-30 17:15

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by casper27 (Post 857658)
Anyone know if there is a similar app for Symbian? My evil little brain is thinking thoughts of installing it on a symbian phone and getting notifications on the N900 when that person receives a txt/call and who from... bit of backwards modding needed but great for certain underhand tactics.;)

Python is available for S60 and so this wouldn't be too difficult to achieve. The only real modification that would be needed is to the server, instead of altering the user with the notification bubble, it would use a S60 widget of some kind.

Of course, I have to say that you should only do what you suggest with your own phones! ;)

b0unc3 2010-10-30 17:28

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Reffyyyy (Post 857117)
I've been using it all day. It works perfectly for me. Have only tested texts though.

I guess it would be nice to make an attractive icon to go next to the message. (I would ask for the contact's image but that would be far too much effort)

It's doable, I can help with this too...but it's my first time with python so I need a little bit more time than normally ;)

scottuss 2010-10-30 17:33

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by b0unc3 (Post 857698)
It's doable, I can help with this too...but it's my first time with python so I need a little bit more time than normally ;)

Thanks b0unc3, your work on the phonebook stuff has been great, so I have every faith that you'll be able to figure this out :D

Reffyyyy 2010-10-30 17:40

Re: [Announce] N900 Notifier
 
@scottuss

I saw that feature shortly after posting the comment. Absolutely no problems with it.

@b0unc3

Thanks a lot. I would assist but it's also my first time with Python and college work has really caught up to me.

scottuss 2010-10-30 21:32

Re: [Announce] N900 Notifier
 
I'd like to announce version 0.3 which now adds Mac OS X support with notifications being provided by Growl.

Users need the growlnotify package, available from "Extras" inside the Growl installer DMG.

If anyone has any problems, please feel free to let me know. :D

Also: Although I don't use it myself, and would like to avoid having to do so ;) Windows support is coming VERY soon!

Marcus 2010-10-30 21:40

Re: [Announce] N900 Notifier
 
I am pretty sure this could work out nicely with Conky!
Good job :)

scottuss 2010-10-30 21:45

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Marcus (Post 857923)
I am pretty sure this could work out nicely with Conky!
Good job :)

I hadn't thought of that, but yeah it would be a nice touch actually!

MohammadAG 2010-10-30 21:46

Re: [Announce] N900 Notifier
 
Hmm, I can keep getting an error, any ideas? :)
Code:

mohammad@mohammad-i5laptop:~/Downloads$ python server.py
Traceback (most recent call last):
  File "server.py", line 73, in <module>
    server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
  File "/usr/lib/python2.6/SocketServer.py", line 402, in __init__
    self.server_bind()
  File "/usr/lib/python2.6/SocketServer.py", line 413, in server_bind
    self.socket.bind(self.server_address)
  File "<string>", line 1, in bind
socket.error: [Errno 99] Cannot assign requested address

Nevermind, had to put my PC's IP instead of the N900's.

scottuss 2010-10-30 21:56

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by MohammadAG (Post 857931)
Hmm, I can keep getting an error, any ideas? :)
Code:

mohammad@mohammad-i5laptop:~/Downloads$ python server.py
Traceback (most recent call last):
  File "server.py", line 73, in <module>
    server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
  File "/usr/lib/python2.6/SocketServer.py", line 402, in __init__
    self.server_bind()
  File "/usr/lib/python2.6/SocketServer.py", line 413, in server_bind
    self.socket.bind(self.server_address)
  File "<string>", line 1, in bind
socket.error: [Errno 99] Cannot assign requested address

Nevermind, had to put my PC's IP instead of the N900's.

That's right. It's my fault for bad documentation! :)

scottuss 2010-10-30 22:08

Re: [Announce] N900 Notifier
 
I don't know if it's the massive amount of caffeine I've had today but I released 0.3 too quickly, and it should have had the Windows code I've been working on.

With that in mind, go grab the latest 0.4 and enjoy support for Ubuntu, OS X and now Windows! (The Windows bit hasn't been thoroughly tested, so feedback is appreciated!)

Thanks everyone! :D

scottuss 2010-10-30 22:09

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Psycho (Post 857120)
N900 Notifier is a simple application to display notifications of incoming SMS and Calls on your computer. It is similar to android-notifier. The client runs on N900 devices (Maemo) and the server component runs on Ubuntu.

argh cant we make this for windows ?

You may want to check out version 0.4, which now supports Windows too! (It needs Growl to be installed, I won't be adding support for native notifications)

badboyuk 2010-10-31 14:03

Re: [Announce] N900 Notifier
 
was waiting for this =)

badboyuk 2010-10-31 14:07

Re: [Announce] N900 Notifier
 
How can we install Growl or growlnotify on windows when that is for Mac OS?

scottuss 2010-10-31 17:12

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by badboyuk (Post 858494)
How can we install Growl or growlnotify on windows when that is for Mac OS?

http://www.growlforwindows.com/gfw/default.aspx

Hopefully you will be able to install from there and get this working.

Note that I won't be offering any support for getting this working on Windows, however other users may be able to help you out if need be. :)

badboyuk 2010-10-31 18:28

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by scottuss (Post 858687)
http://www.growlforwindows.com/gfw/default.aspx

Hopefully you will be able to install from there and get this working.

Note that I won't be offering any support for getting this working on Windows, however other users may be able to help you out if need be. :)

Thanks for the link!

Im trying to follow the default installation guide you have up on the site.....hope it works similarly for windows

badboyuk 2010-10-31 19:02

Re: [Announce] N900 Notifier
 
Anyone got it to work with windows....? Ive tried but guess im not doing something right

antezz 2010-10-31 19:11

Re: [Announce] N900 Notifier
 
Yes i got it working on windows, what i did was adding growl to the environment path to get growlnotify to work in cmd, then I tested and notice the growlnotify command in the script was wrong.

Its not suppose to be /switch argument but /switch:argument in windows.

I changed it to :

Quote:

command = "growlnotify \"" + self.data + "\" /t:n900 /i:http://www.antezz.com/files/images/png/n900"
Yes, i have to fix the image just got to lazy to do it at moment lol.

Edit: fixed command, apprently windows version of growl didnt like the ' in it so i used " instead and escaped them with \ so its all working nicley now.

cipper 2010-10-31 19:35

Re: [Announce] N900 Notifier
 
Hi guys, nice app!

I'm trying the best way to starting/stopping after network connection/disconnection. Moreover it would be nice to send messages to multiple IPs : home, work, etc.

antezz 2010-10-31 19:38

Re: [Announce] N900 Notifier
 
@cipper Growl supports forwarding notifys to other PCs

cipper 2010-10-31 19:55

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by antezz (Post 858825)
@cipper Growl supports forwarding notifys to other PCs

I don't need growl since I'm runing on debian/ubuntu. Plus I prefer to to not open ports from wan on the firewall.

cipper 2010-10-31 20:16

Re: [Announce] N900 Notifier
 
I tried with these up/down scripts for automatic run/stop:

N900:/etc/network# cat if-pre-up.d/00_notifier_up
#!/bin/sh

MYIP=`ifconfig -a wlan0 | grep "inet addr" | sed 's/inet addr://g' | awk '{print $1}'`

if [ "$MYIP" == "192.168.0.5" ]
then su user -c /home/user/bin/notifier_client_home.py &
else su user -c /home/user/bin/notifier_client_work.py &
fi

N900:/etc/network# cat if-post-down.d/00_notifier_down
#!/bin/sh

PIDS=`ps | grep "notifier_client" | grep "/home/user/bin" | awk '{ORS=" ";print $1}'`
for i in $PIDS ; do kill -9 $i ; done

N900:/etc/network#



these work fine when executed in terminal but dont work automatically on network connection/disconnection :(

badboyuk 2010-10-31 20:17

Re: [Announce] N900 Notifier
 
Okay Im not sure what ive done wrong but this is the error message I get

http://i51.tinypic.com/dxn43o.png

I hope someone can help. I am trying to get this to work with windows.

Cas07 2010-10-31 20:32

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by badboyuk (Post 858874)
Okay Im not sure what ive done wrong

It means that the variable HOST has not be set. Have you got the latest client.py and did you put the desktop pc ip address in?

Code:

HOST, PORT = "192.168.0.1", 50007

badboyuk 2010-10-31 20:35

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Cas07 (Post 858886)
It means that the variable HOST has not be set. Have you got the latest client.py and did you put the desktop pc ip address in?

Code:

HOST, PORT = "192.168.0.1", 50007

Yeah I did, I changed it in the place where it was marked.

Server.py

# Change this to your computer's hostname
# We might do this automatically in the future!
HOST, PORT = "192.168.0.1", 50007

I changed it to this:

# Myhostname# We might do this automatically in the future!
HOST, PORT = "192.168.0.2", 50007

And i changed the port to my static ip to which i have forwarded the port.


client.py

# CHANGE THE HOSTNAME TO THE HOSTNAME OR IP OF THE PC RUNNING THE SERVER COMPONENT
HOST, PORT = "192.168.0.1", 50007

changed it to:



# Myhostname, PORT = "192.168.0.2", 50007

antezz 2010-10-31 20:37

Re: [Announce] N900 Notifier
 
http://www.antezz.com/files/images/png/growln900
Windows XP working example.

@badboyuk
That looks strange, line 85? client.py is only around 68 lines.
Try use a clean/original client.py file then change the IP to your desktop/servers internal IP.

After that you just take the server.py also change the IP to your internal IP in my case it was "192.168.0.199" then you go to line 62 and replace it with the line i posted previous, or you can change it however you want it to be formated. Thats pretty much it if you want to have "custom names" showed up on some numbers then you add them "numbers" varibel in the client.py just like the examples.

badboyuk 2010-10-31 21:21

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by antezz (Post 858895)
http://www.antezz.com/files/images/png/growln900
Windows XP working example.

@badboyuk
That looks strange, line 85? client.py is only around 68 lines.
Try use a clean/original client.py file then change the IP to your desktop/servers internal IP.

After that you just take the server.py also change the IP to your internal IP in my case it was "192.168.0.199" then you go to line 62 and replace it with the line i posted previous, or you can change it however you want it to be formated. Thats pretty much it if you want to have "custom names" showed up on some numbers then you add them "numbers" varibel in the client.py just like the examples.

Okay ive done it all again but still the same error. And there are still over 80 lines even as default, and I downloaded the file again from the site.
Im not sure what it is that im not doing right here......any suggestions?

Cas07 2010-10-31 21:29

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by badboyuk (Post 858891)
client.py

# CHANGE THE HOSTNAME TO THE HOSTNAME OR IP OF THE PC RUNNING THE SERVER COMPONENT
HOST, PORT = "192.168.0.1", 50007

changed it to:

# Myhostname, PORT = "192.168.0.2", 50007

That line should read:

Code:

HOST, PORT = "192.168.0.2", 50007
Putting a # in front of any line, comments the line out and would explain why the script would not work.


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

vBulletin® Version 3.8.8