![]() |
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. |
Re: [Announce] N900 Notifier
@cipper Growl supports forwarding notifys to other PCs
|
Re: [Announce] N900 Notifier
Quote:
|
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 :( |
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. |
Re: [Announce] N900 Notifier
Quote:
Code:
HOST, PORT = "192.168.0.1", 50007 |
Re: [Announce] N900 Notifier
Quote:
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 |
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. |
Re: [Announce] N900 Notifier
Quote:
Im not sure what it is that im not doing right here......any suggestions? |
Re: [Announce] N900 Notifier
Quote:
Code:
HOST, PORT = "192.168.0.2", 50007 |
| All times are GMT. The time now is 20:09. |
vBulletin® Version 3.8.8