View Full Version : Personal IP Address for Fremantle
fiferboy
10-02-2009, 09:44 PM
Here is another desktop widget for Fremantle to enjoy - Personal IP Address
This applet displays your current IP on your desktop. Pretty simple. It updates every time your connection changes.
Thanks to zerojay and qwerty12 for testing. qwerty12 also tipped me off to connection watching with the ConIC library.
I would provide a screenshot, but this applet will not run in scratchbox. ConIC does not work there, which makes it pretty tricky for me to develop :)
Edit Version 0.3-1: displays the interface you are connected to. Attempts to connect or restore connection on click. Changed layout.
Edit Version 0.3-4: fixes an issue where the proper IP was not displayed when connected to cellular network. Thanks to Marius (mgedmin) for the patches!
Edit Version 0.3-5: Hopefully the last version before it hits extras. Added an option in the settings dialog to "Use Compact Layout". User can now switch between compact layout and non-compact layout.
Edit Version 0.3-6 is now in extras! Thanks to all the testers. The product page is http://maemo.org/downloads/product/Maemo5/personal-ip-address/
Edit Version 0.4-1 is in extras-devel. New features include disconnect on click and display network name.
zerojay
10-02-2009, 09:56 PM
4241
Here's the screenshot. We're looking to replace the icon when Joshua Maverick has the time.
fiferboy
10-02-2009, 09:58 PM
Hmm, looking at the screenshot it looks like the alignment has come off. I will try to fix this.
fiferboy
10-02-2009, 10:41 PM
Version 0.2-2 is building. It fixes the alignment issue that was caused by a mis-sized icon. Hopefully zerojay will update his screenshot when the build is finished.
What a great idea! ;)
Thanks!
frals
10-03-2009, 03:42 AM
Cool! Is it possible to list all IPs of the device incase your on both 3G and WLAN for example?
zerojay
10-03-2009, 03:45 AM
Cool! Is it possible to list all IPs of the device incase your on both 3G and WLAN for example?
You can't have an internet connection open to both at the same time anyways. It intelligently knows if you are on Wifi or cellular and displays the proper IP address. Showing both just means that you'll always have one saying 0.0.0.0, so...
frals
10-03-2009, 03:46 AM
Oh okey... My bad then. :)
Edit: I just assumed this to work like in S60 where you could. :)
christoph
10-03-2009, 04:14 AM
You could have more than one IP-Addresses:
Either when you run a VPN or if you use bluetooth networking
for thering or if you have IPv4 and IPv6. Or all at the same time :-)
It would be very nice if it could show all activ IPs.
Can it be made smaller? The icon and the title taking almost half of the widget seems like unnecessary waste of space...
Soulfarmer
10-03-2009, 04:27 AM
How about including IP in the Personal Data Monitor Widget? (http://talk.maemo.org/showthread.php?t=32256) Combined solution would save screenspace.
I edited the thread link. Not sure if that was the name though.
qwerty12
10-03-2009, 04:44 AM
fiferboy, I noticed that you've been filling in the Depends field in debian/control manually so I've fixed it up a little to get the correct libraries it's using in there automatically: http://qwerty12.qole.org/personal-ip-address_0.2-2.tar.gz
(I do have an ulterior motive in doing so - I've written a simple brightness applet and was hoping you could look it over and tell me if I've ****ed anything up [on IRC, of course :)]?)
Enhancement requests:
Display the netmask (CIDR (http://en.wikipedia.org/wiki/CIDR_notation) notanion is fine and uses minimal space).
Display the default gateway.
Display the public IP address (it can be discovered with libnice (http://maemo.org/api_refs/5.0/beta/libnice/)).
Display IPv6 details if available (and supported, still unclear (https://bugs.maemo.org/show_bug.cgi?id=356) on that).
I would provide a screenshot, but this applet will not run in scratchbox. ConIC does not work there, which makes it pretty tricky for me to develop :)
If anyone has any tips for simulating connections/disconnections in scratchbox they'd be very much appreciated.
qwerty12
10-03-2009, 05:47 AM
If anyone has any tips for simulating connections/disconnections in scratchbox they'd be very much appreciated.
icd(2) doesn't appear to be available in nokia-binaries... I'd just rip apart libconic to listen to a GConf key instead, or something :p
fiferboy
10-03-2009, 08:03 AM
I was thinking about removing the title field and putting hte IP there to save space. There is no reason it should display the word "IP" three times (including the icon).
I think keeping it as a separate app from the dataplan monitor is a good idea, though, as some people will never use GPRS data and won't want to install that app. I will see what I can do about the other requests.
Thanks for the idea, qole ;)
Keep this app separate, please....
It would be very cool to show all active IP addresses (except 127.0.0.1 of course) in case you have USB and/or BT networking as well. And if there's some way to find the "public" IP address, that would be cool too...
And I agree, no title is necessary here, although if there are multiple IP addresses it would be useful to know which interface has that address.
If you could discover the network name and put that on, it would be great.
wlan (adhoc1): 169.57.124.23
joshua.maverick
10-04-2009, 01:26 AM
Any ideas on what the icon should look like? I was thinking a globe with a magnifying glass with the letters IP in the magnifying glass, I think that makes logical sense
joshua.maverick
10-04-2009, 02:03 PM
IP Address Icons
Any Suggestions?
Laughing Man
10-04-2009, 09:55 PM
I like it, though I can't say which size is preferable due to me not having the device.
Though I was suggesting if you don't have it already, that tapping on the icon would refresh the IP address (say you disconnected from one network and connected to another). Which is pretty common on a wireless network at a University.
fiferboy
10-04-2009, 10:35 PM
I'm just building 0.2-3 with joshua.maverick's new icon (thanks!). It also addresses the size issue by putting everything on one line. For a future version I will try to add some of the other suggestions here.
zerojay
10-04-2009, 11:29 PM
http://farm3.static.flickr.com/2541/3982763546_767b849597.jpg
These two apps sure do come in handy when visiting faraway lands!
Personally, I would have prefered keeping the original style of the widget, but instead of having IP: 192.168.0.101 on the line, replacing the IP text label with whatever the active connection was. gprs0: 10.193.25.33 for example. Still looks good though. :)
Yes both widgets look great. Thanks guys!
By the way, have you noticed that zerojay, fiferboy and joshua.maverick are all Canadian?
Way to go for a country that doesn't even have 3G support for the N900!
http://farm4.static.flickr.com/3432/3983084698_052b27eb25_o.png (http://www.flickr.com/photos/qole2/3983084698/)
Texrat
10-05-2009, 01:37 AM
Very nice app!
I do think it might look cooler if the right side of the address bar was a half circle though...
joshua.maverick
10-05-2009, 01:59 AM
Both widgets are looking great, but are missing the black outer glow, can I give you a png of the background with the outerglow to use? I'm not sure on how building it works.
Yea, not bad for three Canadians in a country that won't get a subsidized version! Great work guys.
qwerty12
10-05-2009, 02:07 AM
Way to go for a country that doesn't even have 3G support for the N900!
You Canadians make it too easy for the Rest of the World to laugh at you:
http://qwerty12.qole.org/imgdump/Screenshot-20091005-070447.png
joshua.maverick
10-05-2009, 02:09 AM
I'll murder you.
joshua.maverick
10-05-2009, 02:11 AM
Very nice app!
I do think it might look cooler if the right side of the address bar was a half circle though...
Are you referring to rounded corners on the bottom as well? If so, I agree.
I NEED TO SEE THIS DEVICE IN PERSON :( Anyone from GTA want to meet up? lol *sigh...
Go ahead and laugh, we'll just keep delivering awesomeness in spite of it all. The harsh environment in Canada continues to produce tough fighters that cannot be kept back!
What? Yes, 56k data transfer rates count as harsh environmental conditions!
Stop it! You're still snickering!
:mad:
fiferboy
10-05-2009, 07:47 AM
Oops, forgot to re-round the bottom corners when I resized the applet. Putting the network that is being used shouldn't be a problem. Thanks for the icon, joshua!
...By the way, have you noticed that zerojay, fiferboy and joshua.maverick are all Canadian?
Way to go for a country that doesn't even have 3G support for the N900!
I did notice that as well, and gave these guys a plug last night on my blog (http://mobiletablets.blogspot.com)... And I am willing to include zerojay in the Canadian pot, even though QC did not sign the Constitution ;)
fiferboy
10-05-2009, 09:14 AM
joshua.maverick: When you say "black outer glow" you mean... ? A shadow effect that starts black at the edge and fades to transparency? If so, if you could describe it in design terms, that would be more helpful.
For example: Start 100% black and 100% opaque at the edge, within three pixels away from the edge fade to 0% opaque.
joshua.maverick
10-05-2009, 12:26 PM
Yea, I was referring to the shadow, in photoshop, instead of a drop shadow I used an outer glow.
I'm not sure how to describe it in those terms but in Photoshop....
Blend Mode: Normal
Range: 100
Opacity: 80
Spread: 0
Size: 8
This is why I was wondering if I could just give you a png of the background of the widget with the shadow/gradient etc. Does that work?
joshua.maverick
10-05-2009, 12:28 PM
I guess you could try, in the terms you requested:
Start at 80% opacity, black
End 8 pixels away, 0% opacity
fiferboy
10-05-2009, 12:30 PM
Thanks joshua. I know it is likely not proper design terms, but that is exactly what I need to program the effect.
joshua.maverick
10-05-2009, 12:42 PM
Oh dude, I wasn't trying to come across preachy, each piece of software uses different terms. If you can program the effect that's great, I don't know the capabilities so I wasn't sure.
fiferboy
10-05-2009, 12:43 PM
Don't worry, I didn't take it as preachy. I know virtually nothing of design packages, so you have to spoon feed me easy-to-understand instructions ;)
Branedy
10-05-2009, 12:46 PM
How about a button to post the ip address to DynDNS?
iKneaDough
10-05-2009, 12:51 PM
How about a button to post the ip address to DynDNS?
Or have an option to automatically update, when an external ip address change is detected.
timsamoff
10-05-2009, 05:02 PM
Hi,
Any way to change the layout of this widget a little (see attached). Seems like it would look better if it was a little more "aligned." But, I don't know if there is a limitation in this regard.
Thanks!
Tim
fiferboy
10-05-2009, 07:12 PM
Tim - I was following the layout of larger widgets, which has the icon offset at the top. When I shrunk it to a single line, I didn't think about reformatting it. Your way makes sense to me.
I just have to see if it is going to stay a one line applet (I am leaning toward not adding any more information - maybe just the interface name). If so, I will try out your formatting.
Thanks
access
10-06-2009, 07:31 AM
Tim - I was following the layout of larger widgets, which has the icon offset at the top. When I shrunk it to a single line, I didn't think about reformatting it. Your way makes sense to me.
I just have to see if it is going to stay a one line applet (I am leaning toward not adding any more information - maybe just the interface name). If so, I will try out your formatting.
Thanks
Would it be possible to change the displayed IP when clicking on the widget. That way you stay on one line but have the ability to view other interfaces also, i.e. cycle through eth0 (private) eth1 (public), sit0 etc.
allnameswereout
10-06-2009, 01:09 PM
You can't have an internet connection open to both at the same time anyways.You can, but usually either one of them has your default route.
To get your external IP (as others see it) you can try to parse the output of http://www.whatismyip.org this output is plaintext, IPv4 only. Not sure how it handles proxies e.g. X_FORWARDED_FOR header.
zerojay
10-06-2009, 01:34 PM
You can, but usually either one of them has your default route.
To get your external IP (as others see it) you can try to parse the output of http://www.whatismyip.org this output is plaintext, IPv4 only. Not sure how it handles proxies e.g. X_FORWARDED_FOR header.
I'm talking about regular user usage. Your internet is going to be sent through GPRS or Wifi... not both at once.
To get your external IP (as others see it) you can try to parse the output of http://www.whatismyip.org this output is plaintext, IPv4 only.
http://ip.help.me.uk/ does both v4 & v6, but requires a bit more "parsing". Alternatively you can use STUN with libnice (http://maemo.org/api_refs/5.0/5.0-final/libnice/).
allnameswereout
10-06-2009, 05:23 PM
Hmm, well, in Symbian you can use multiple network connections at once. You can have any application use a defined network connection (or get it to wizard to define another one), or tell it to use a specific network connection. Which is sometimes rather useful.
For example, you can have one application using VPN, and the rest not. Or have one running on GPRS, rest on WiFi. For example, you'd want your IM on GPRS, but your browser over WiFi. When you go away your browser has to connect using GPRS whereas your IM client stays connected over GPRS because it was connected via GPRS in the first place. You can also use your mail application over GPRS whole time, using always SMTP server over GPRS, hence not needing to define more than one SMTP server. Plus, having more than 1 network connection enabled allows automatic failover because the next default route gets used.
Does anyone know how Symbian does this? I imagine such is rather simple to implement on a microkernel whereas it is rather difficult to get such working on Linux if the application only allows to bind to any interface instead of one specified. It is rather tricky to do routing based on layer-7 information although there is a layer-7 project for Linux (http://l7-filter.sourceforge.net). You'll see demand for this sooner or later. We'll see demand for layer-7 QoS and accounting. We'll see people WTFing over data usage, wanting to give SIP priority, or people who will not want their BitTorrent client to be used over GPRS, but are OK with it being used on their home WiFi.
(Once I have the device this is one of my interests, btw.)
http://ip.help.me.uk/ does both v4 & v6, but requires a bit more "parsing".It also shows DNS and useragent. Most lightweight I've seen which includes all 3; thanks!
it is rather difficult to get such working on Linux if the application only allows to bind to any interface instead of one specified.
Policy routing (http://lartc.org/howto/lartc.rpdb.html) is one way to do it transparently to the applications, but we'd need to have multi-homing first obviously.
allnameswereout
10-06-2009, 09:12 PM
Policy routing (http://lartc.org/howto/lartc.rpdb.html) is one way to do it transparently to the applications, but we'd need to have multi-homing first obviously.Ah yes, that is neat, then with iproute2 you also get QoS. I saw here (http://www.debian-administration.org/article/Policy_routing) an example involving -m owner. This allows different owners to get different priority, but only works on local OS, and its still not as flexible as using layer 7. I also notice iptables supports quota, that is also neat.
Example howto policy routing (http://www.linux-noob.com/forums/index.php?/topic/3036-bandwidth-quotas-using-iptables/)
fiferboy
10-15-2009, 10:01 PM
Version 0.3-1 is available. Changed layout. Display the interface you are connected to. When you click the widget it attempts to connect or restore connection.
I'm open for suggestions about clicking the widget. If it is annoying to try establish a connection on click it could be optional.
frals
10-16-2009, 04:03 AM
Would much appreciate if the "click to connect" was a setting. :)
fiferboy
10-16-2009, 06:31 AM
Here is a bit more information about "click to connect" (which will soon be a setting).
It attempts to connect in the same way as any other application that requires internet - with the connections you have defined. As I don't actually have a dataplan I'm not sure what this means with cell connections, but it is the same as any other application that will try to connect when you start it.
I like the compactness of the new widgets, but the loss of the icons is a little sad for me. The widgets lost some personality... I don't suppose you could humour me and let us have yet another setting to turn the icons on and off?
fiferboy
10-19-2009, 09:18 AM
qole - I will add an option to enable/disable "compact mode" in the next version.
There may be cases when toggling this option makes your widget land on another desktop or on top of an existing widget due to the changed size. Does this sound like something users could deal with, or should I put some text in the dialog to explain it?
fiferboy
10-19-2009, 09:24 AM
Version 0.3-4 contains fixes by Marius (mgedmin), who sent in patches that are very appreciated!
In previous versions there was some issues getting the correct IP when connected to a cellular network (I have no SIM, so cannot test this - perhaps somewhat ironic for the creator of the Dataplan bandwidth monitor?).
Marius noticed the problem and suggested a fix. I attempted to implement in version 0.3-3 (after crashing Marius' desktop in 0.3-2) but as the implementation was untested there were still issues. Marius stepped in and provided patches to fix the problems.
A big hand for Marius!
fiferboy
10-19-2009, 02:55 PM
Version 0.3-5 - Hopefully the last version before it hits extras.
This version adds an option to "Use Compact Layout," meaning the user can switch between "compact" (smallest footprint) layout, and "non-compact" (larger layout with icon) layout.
This version has been promoted to extras-testing, please rate it!
http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/personal-ip-address/0.3-5
Screenshot shows compact layout lower-left and non-compact layout lower-right.
fiferboy
10-30-2009, 07:22 AM
Personal IP Address is now available in extras!
Thanks to everyone who tested, reported bugs, and made feature requests.
I don't have any immediate plans for new features for this widget, so if you have ideas let's here 'em!
There will be a version with some small fixes (bugtracker link provided in the package, slightly fixed layout for non-compact mode).
qwerty12
12-27-2009, 02:56 PM
I don't have any immediate plans for new features for this widget, so if you have ideas let's here 'em!
Well, since you offered.
I'd like to be able to see the name of the network I'm connected to, instead of "wlan0".
I've hacked it myself (http://slexy.org/view/s2smskchmq) and got this as a result:
http://imgur.com/aS6Sw.png
The thing is, however, it being a hack an' all: it causes the whole desktop to hang for some seconds (and it's rather visible, TBH) upon startup.
It most likely lies down to the fact that I'm using D-Bus to retrieve the Network ID, from which I am able to get the name. It [the Network ID] can also be retrieved from GConf, but I found that - in some situations - it failed to update itself when connected to a network. This was when I checked some firmware revisions back. I haven't checked, however, if this issue is still in 51-1.
An alternative is dlopen()ing libconnui and attempting to use the function for doing exactly this provided by libconnui...
I have a better version that doesn't need GString if you're interested (I can get the ID as a string straight).
pliskent
01-18-2010, 06:56 AM
Nice applet :)
Is there also coming disconnect feature? :D
Hi, just popped in to say qwerty12's idea was mine as well, it would be mighty useful to see what I'm connected to, as long as it's reliable.
Also, that I've been using it actively for quite a while and it's great, no problems whatsoever. Good job.
Personal IP Address is now available in extras!
Thanks to everyone who tested, reported bugs, and made feature requests.
I don't have any immediate plans for new features for this widget, so if you have ideas let's here 'em!
There will be a version with some small fixes (bugtracker link provided in the package, slightly fixed layout for non-compact mode).
are you then one who's email is provides in the programs details? :D
i wrote an email to you, dont know if you read it^^
i'll share my thoughts here with everyone:
i really really like your app, and i love how it connects by just clicking on it.
but there is one thing i miss: disconnecting by clicking!
when you're connected to a wlan or gprs, it would be nice if you could disconnect by clicking on it again.
that would save you from going to the status-menu, click on internet connections and disconnect from there.
just my two cents, discuss! :D
btw, having this as an option would be perfectly fine too.
fiferboy
01-19-2010, 05:06 PM
I am the maintainer of the package, yes. I got your email and I will try to work in some time to update the applet. I will also look into qwerty12's change as an option.
I am the maintainer of the package, yes. I got your email and I will try to work in some time to update the applet. I will also look into qwerty12's change as an option.
thank you very much! :D
qwerty12
01-19-2010, 09:02 PM
I will also look into qwerty12's change as an option.
Don't use that patch there, then.
I have a cleaner version where I don't use GString and co. because the older ICD D-Bus API has method calls that will just return the ID as a string instead of as an array. The marshaller isn't needed, either, if I remember correctly.
I'll put up my newer one tomorrow but it still has its problems (but I don't need to mess around with recieving the ID in a signal callback anymore; I get to retrieve it from the method call which, quite frankly, means less ****ing around).
qwerty12
01-20-2010, 02:41 PM
As promised: http://slexy.org/view/s2ZioGDRDA
DaveR53
01-21-2010, 01:32 PM
A feature or new app that I'd love along these lines would be to show the current send/recv of the interface. So you can see what your current active transfer rate is.
Personal-Bandwidth-monitor maybe? :D
Oh and thank you for this great app. It's got a very permanent place on my main desktop.
ivnvir
03-04-2010, 02:37 PM
A feature or new app that I'd love along these lines would be to show the current send/recv of the interface. So you can see what your current active transfer rate is.
Personal-Bandwidth-monitor maybe? :D
Oh and thank you for this great app. It's got a very permanent place on my main desktop.
I would like to see something like this too.
Haven't found a command/shell script for checking the current transfer rate (from the whole system, not a particular operation).
Saturn
03-08-2010, 09:22 PM
I would like to see something like this too.
Haven't found a command/shell script for checking the current transfer rate (from the whole system, not a particular operation).
One simple way would be to read the values with a time difference, calculate their difference and divide by the time.
The complicated part, I guess, is to make it stop reading when not needed so that it doesn't waste the battery and not wake up unnecessarily from power saving modes.
EDIT: if it is just for monitoring to check for problems though a tool like this (http://humdi.net/vnstat/) might be interesting.
zlatko
04-24-2010, 01:48 PM
Very nice app! Thanks for all participants in the project!
I also would like disconnect by clicking feature to be added like some other users suggested.
Thank you!
fiferboy
05-19-2010, 08:05 PM
Okay, after a lengthy hiatus there is a new version of Personal IP Address - version 0.4-1
This version is in extras-devel, but I have been using it on my device for several months. I will promote it soon. If some people would like to test and report back, that would be helpful.
This version has a configurable "disconnect on click" feature that will disconnect from the network (if you are connected). It also allows you to choose to display either the interface name (ie. wlan) or network name (ie. linksys) that you are connected to.
Mr. Incredible
05-20-2010, 07:33 AM
I've updated "Personal IP Widget" but now it is a bit wider than before and is overlapping another icon.
How do I revert it to the size it had before?
Edit:
There was an update today, but the width is the same. Can you make it resizeable?
tokag
02-15-2011, 07:03 PM
Thank you for this great widget, i've been using it for months. not sure if this widget is still being developed, but i think i have found a bug. after upgrading to PR 1.3 every time i tap the widget to select an internet connection, a banner pops up on the screen saying "No saved connection available", however if i navigate to Status Menu > Internet connection, the same "Select connection" list appears but without the banner appearing. this leads me to believe that banner has something to do with the way this widget is calling the "Select connection" list. on a side note, this is only a cosmetic bug and has no real adverse functionality on the widget in general. thank you for your time and consideration.
EDIT:
Filed a bug report.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.