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)

b0unc3 2010-11-05 15:20

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by Marcus (Post 861193)
Having a few problems; when running the client.py on my n900, it gives this error:
ImportError: No module named gobject

What do I need to install?

Try
Code:

apt-get install python-gobject

Saturn 2010-11-05 23:44

Re: [Announce] N900 Notifier
 
Hi Scottuss,

Since those are python files it is good to add in the first line:

Code:

#!/usr/bin/env python
I would also propose to rename the files to less generic names.

Thanks for sharing - nice work.


PS: Here is also the .desktop file I made while playing with it:

Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0.0
Name=N900 Notifier
Comment=Notifies for incoming calls
Terminal=true
Type=application
Exec=/home/user/N900notifier_client.py
Icon=qgn_stat_internetconn_datacall
X-Icon-path=/usr/share/icons
X-Window-Icon=qgn_stat_internetconn_datacall
X-Window-Icon-Dimmed=qgn_stat_internetconn_datacall
X-HildonDesk-ShowInToolbar=true
Type=Application
X-Osso-Type=application/x-executable


ZogG 2010-11-06 00:14

Re: [Announce] N900 Notifier
 
any idea of making exchange links with browsers (desktop<->n900) and their favs and so on? as well is it possible to add the client later to show sms on in the client and ability to answer from computer. it can be made by using even maybe jabber protocol so u don't need to write new client.

CAT0 2010-11-16 10:38

Re: [Announce] N900 Notifier
 
Cant get it to work on Windows 7,

Code:

C:\Python31>python.exe server.py
  File "server.py", line 28
    print "Your Operating System is not currently supported\n"
                                                                                        ^
SyntaxError: invalid syntax

(arrow on the last ")

antezz 2010-11-16 11:20

Re: [Announce] N900 Notifier
 
Windows users can use this : http://www.antezz.com/download/N900w...rver-0.4.1.zip
It's compiled with py2exe so no need to have python installed, only thing you need to do is have growl for windows installed and start the server, it should try to pull your local 192.* ip by default. However if it does not work, you can disable auto IP in the config and manually set it in there.

Ger any problems feel free to ask, the package comes with source, readme file and such.

meLi 2010-11-17 04:48

Re: [Announce] N900 Notifier
 
1. Can this incoming notification display on multiple computer ? Any idea ?
2. Notify for incoming call and sms only right ? How abt sip/skype call ?

Any possibility for this ?

TQ

antezz 2010-11-17 12:56

Re: [Announce] N900 Notifier
 
@meLi Which OS are you using? Regarding on question number 2 i think they should display since N900 is using the phone app for all sorts of calls. I haven't tried so can't say for sure.

meLi 2010-11-17 13:30

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by antezz (Post 876024)
@meLi Which OS are you using? Regarding on question number 2 i think they should display since N900 is using the phone app for all sorts of calls. I haven't tried so can't say for sure.

I'm using windows 7. Let save i have 2 pc. ips 192.168.10.1 and 192.169.10.20 so can i configure to display simultenous for both pc.

or situation like this my home pc use ip 192.168.10.1 and my office use ip 172.16.10.1 so i need 1 configuration file can read both ip then i no need to change ip at client.py and server.py everytime i using home and office pc.

Q2 - I had try but no notify at all either sip or skype.

tq

antezz 2010-11-17 13:35

Re: [Announce] N900 Notifier
 
@meLiWell, since you are using Windows you are using growl, if you opened growl up you will see it do have forwarding to push messages to other PCs.

@people who downloaded / uses my winserver:
I would be happy for feedback, if it did work without problems and maybe hit the "thanks!"-button if you liked it. ;)

godfader 2010-11-29 16:01

Re: [Announce] N900 Notifier
 
Hi I have 2 issues:
on the N900 it appears "permission denied" adter i run the python client.py (already did chmod for the file)
on my mac, everytime i recieve a call or sms it appears the message on terminal "sh: growlnotify no such command" (i have growl installed)
any tips? thks for the great job!

rantom 2011-01-20 23:35

Re: [Announce] N900 Notifier
 
I hate to bump threads but since it's been now one month (and 2-3 weeks) without any updates, is this app still alive and on development? Just asking. I checked the sourceforge and it's been quite quiet for 63 days to this date.

rantom 2011-02-16 18:06

Re: [Announce] N900 Notifier
 
I'll bump this. How is this supposed to work? Bluetooth, WiFi, Ad-Hoc, USB? I can't get it to work with Bluetooth nor with USB. I keep getting "network unreachable" though my address is correct (on the N900 that is).

I'm using this on my Mac.

rantom 2011-02-18 10:34

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by rantom (Post 948211)
I'll bump this. How is this supposed to work? Bluetooth, WiFi, Ad-Hoc, USB? I can't get it to work with Bluetooth nor with USB. I keep getting "network unreachable" though my address is correct (on the N900 that is).

I'm using this on my Mac.

Alright, I got it working. It's WiFi-only for now, as mentioned earlier in the thread. If the connection doesn't seem to work at first and the addresses are correct, then reboot both, the Mac and the N900. This way I got it working.

Sad to see though that this project seems to be quite dead. :( Anyone want to continue this to the application/daemon level?

Dehshizknight 2011-04-17 19:49

Re: [Announce] N900 Notifier
 
Is development still in progress on this? I remember reading that a GUI was planned but haven't heard anything for months.

Anyways, I'm having problems getting the notifications to pop up in Growl. The terminal on my Mac reads:


Quote:

Status: Ready to accept notifications

The N900 @ 192.168.1.3 sent a notification
sh: growlnotify: command not found
Is there a setting in Growl that I am missing? Thanks in advance

ashrufr 2011-06-16 19:18

Re: [Announce] N900 Notifier
 
1 Attachment(s)
I found this really usefull and due to the lack of updates decided to learn python and started hacking at the code. I am implementing things I find usefull - like the actual SMS to display on the desktop notification side - see screenshot. To do this I am borrowing code from a number of other projects - (said I just learned python) - will give credit when done.
Will share if anyone is interrested.

ejasmudar 2011-06-17 06:00

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by ashrufr (Post 1030457)
I found this really usefull and due to the lack of updates decided to learn python and started hacking at the code. I am implementing things I find usefull - like the actual SMS to display on the desktop notification side - see screenshot. To do this I am borrowing code from a number of other projects - (said I just learned python) - will give credit when done.
Will share if anyone is interrested.

That would be really cool!

cutehunk04 2011-06-17 06:51

Re: [Announce] N900 Notifier
 
for me the notifier just shows whose are online doesnt show whose offline.. :(

Frickelson 2011-06-17 07:13

Re: [Announce] N900 Notifier
 
this looks very good :) i'm also a beginner with python and think this could be useful. but for the reason i use a win7 pc @home and i don't like to install growl on that machine (tried it with an earlier version of the notifier from this thread) i started to code my own python script and a simple server for the windows machine (c# wpf). it basically works (early alpha state) but i want to implement some more features.
@ashrufr
i saw that you use the image of the contact for the notification - how did you make it to recive it? maybe you can help me with some things :)

cutehunk04 2011-06-17 07:20

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by ashrufr (Post 1030457)
I found this really usefull and due to the lack of updates decided to learn python and started hacking at the code. I am implementing things I find usefull - like the actual SMS to display on the desktop notification side - see screenshot. To do this I am borrowing code from a number of other projects - (said I just learned python) - will give credit when done.
Will share if anyone is interrested.



Looks promising..carry on mate.. :):D

Captwheeto 2011-06-17 15:41

Re: [Announce] N900 Notifier
 
1 Attachment(s)
I'm at work so I can't check it but I've edited the server to only include Linux and automatically get the hostname. It seems to work but then again, I've not tried it with my phone ;) stupid government security concerns making us get no wifi *grumble grumble*

Anyone else willing to test it? Just change the .txt to py ;)

EDIT: by the way, this does it by hostname. I know some people prefer resolving by IP rather than hostname. Should I change it or not?

robin92 2011-06-17 18:10

Re: [Announce] N900 Notifier
 
A notification in the applet menu should be nice :)

rajil.s 2011-07-09 17:07

Re: [Announce] N900 Notifier
 
Would be quite nice if you can add sip call support as well.

rebelnoob 2011-07-15 18:55

Re: [Announce] N900 Notifier
 
if we could attend calls on the pc and reply sms 'es on the pc ...
am i dreaming??

brokensmile 2011-07-15 20:55

Re: [Announce] N900 Notifier
 
looks interesting thankz for all dis on n900 for windows.... now... i need to know how to install it frm terminal ... plz give me step by step method

towhatend 2011-07-16 11:01

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by rebelnoob (Post 1051754)
if we could ..... and reply sms 'es on the pc ...
am i dreaming??

Use Ovi suite?

ejasmudar 2011-09-30 09:58

Re: [Announce] N900 Notifier
 
Answering sms from pc now possible: http://talk.maemo.org/showthread.php?p=1099505

Malakai 2013-12-22 16:33

Re: [Announce] N900 Notifier
 
Hello

I know this thread is kind of old but I think that N900 Notifier is great combined with linux desktop. I have an issue though: I have to manually start it and kill it every time I need it. I want it to automatically start when I connect to my home wlan and shut-down when I disconnect. For this I've put a script in the if-up.d/ and if-down.d/ folders.

Script if-up.d/notifier:

Code:

#!/bin/sh

if [ "$METHOD" = loopback ]; then
        exit 0
fi

if [ "`iwgetid -as`" == "xx:xx:xx:xx:xx:xx" ]; then
        python2.5 /full/path/to/N900Notifierc.py
fi

with the xx:xx:xx:xx:xx:xx being my home wlan mac adress.

When I start the connection the script tells:

Code:

Traceback (most recent call last):
  File "N900Notifierc.py", line 81, in <module>
    objN900Notifierc = N900Notifierc("192.168.1.5", 50007)
  File "N900Notifierc.py", line 19, in __init__
    osso_ctx = osso.Context("test_abook", "0.1")               
  File "context.pyx", line 8, in osso.context.Context.__cinit__ (osso/context.c:531)
osso.exceptions.OssoException: Cannot initialize context.

I think the issue is that N900Notifierc.py shouldn't be started by root (as it is with if-up), but by the user, as when I start it by the user everything works as expected. The other scripts I have in if-up.d/ folder work with no problem so it is not a if-up issue.

Now the question: How can I execute the script in if-up.d/ folder with user rights?

peterleinchen 2013-12-22 17:18

Re: [Announce] N900 Notifier
 
Something like this should work for you:
Code:

echo 'your_command options' | su - user
Please be aware to not use env vars, else use " instead of '.

Malakai 2013-12-22 18:02

Re: [Announce] N900 Notifier
 
I've just noticed that the issue is in fact that the python script (N900Notifierc.py) doesn't like to be called from a bash script, as when I execute directly the python script either being user or root it works (and it keeps the terminal open), but if I execute the bash script (either as user or root) it gives me back the "Cannot initialize context." message. (Thanks peterleinchen as your suggestion made me realise this).

This doesn't have anything to do with witch user launches it.

So the real question is know: How can I call this python script from a bash script?

peterleinchen 2013-12-22 19:49

Re: [Announce] N900 Notifier
 
Smells like
Quote:

run-standalone.sh
So:
Code:

run-standalone.sh command options

Malakai 2013-12-22 20:39

Re: [Announce] N900 Notifier
 
Quote:

Originally Posted by peterleinchen (Post 1399740)
Smells like


So:
Code:

run-standalone.sh command options


Thanks! That was the issue, now it works.


All times are GMT. The time now is 17:53.

vBulletin® Version 3.8.8