(updated 20160121)
Alternate lighter coloured icons are available from this post. (you don't need the pet as they are included but need renaming to work)
A .pot file for translators is included. Translation thread
Some translations are available from above link.
German thanks to L18L
Chinese (simplified and traditional) thanks to icake
Spanish thanks to nilsonmorales
Italian thanks to xanad
All .po files are in the source. Full NLS pets will be available soon.
netmon_wce doesn't look like anything new. It's just the same old tray app with some bugs fixed (atoll, and the sprintf) and some new headers added to reduce system calls. It also incorporates Patriot's (forum member from days gone) 'Lame WiFi', so if you are connected by wifi you get wifi signal strength icons and the %age in the tooltip. NEW VERSION. More below. (also changelog)
Source and pets provided. If any problems, rebuild and post a pet and I'll add it here. Compiling has been tested in tahrpup and it builds and runs cleanly.README.txt wrote:This is a fork of Barry's "network_tray" since it uses different icons
and has a few bugs fixed. It also incorporates Patriot's "Lame Wifi", so that
if you are connected by wifi you will get signal strength icons in the tray
and tooltip. The tooltip also shows the interface address (eg: eth0, eth1 wlan0)
and your current IPv4 address.
It also incorporates new libraries since Barry's version relied on dirent.h to
open the relevant files for reading. I have included arpa/inet.h, ifaddrs.h
and netinet/in.h to gain access to the structures that hold the interface
info and the IP address. Patriot's Lame Wifi also adds the linux/wireless.h
dependency and sys/ioctl.h.
While this does make the executable bigger (~17KB[32] ~20KB[64] stripped) I think
the gains in versatility, stability* and reliability* (* to be proven) are worth
it in the long run.
To build the exec just type 'make' at the cli. Of course devx must be loaded.
Install the exec to your PATH (or $HOME/Startup). The .desktop is provided for
recent woof puppies to be installed to $HOME/.config/autostart.
A .pot file is included for translators. The code is i18n/gettext compliant.
Install the icons to /usr/share/pixmaps/puppy
The exec is designed to run when your window manager starts (either by new woof
method of adding the supplied .desktop file and placed in $HOME/.config/autostart
or symlinking the exec to /root/Starup)
The program now has wireless polling off by default, toggled in the right click
menu. There is a mechanism whereby you can start the program in wireless polling
mode from a symlink to the exec named "netmon_wpoll" (or rename the exec). If you
do this then edit the .desktop file or the symlink in /root/Startup must be
name "netmon_wpoll".
GPL2 or later at your discretion.
NO WARRANTY!!!
Bug reports needed.
From the changelog -
Code: Select all
netmon_wce
----------
Forked from Barry's version at 'network_tray-2.5' (2013) including Patriot's
'Lame WiFi Tray' features.
===============================================================================
20160120 netmon_wce-3.1
-----------------------
support ipv6
-full rewrite of struct iface_info get_info()
-added additional headers
-call getnameinfo() instead of directly accessing the sockets
-code cleanup
remove the puppyism patch. I might make a separate package.
===============================================================================
20160113 netmon_wce-3.0
-----------------------
improvements to ppp icons
if pppoe is running and iface is ppp[0-9] use the standard icons
make fgets() calls more robust
exit the program if we aproach the limit for ULLONG_MAX for rx/tx bytes
add GIGABYTE definition in bytes
add <limits.h>
===============================================================================
20160106 netmon_wce-3.0beta
-----------------------
Add new icons for cell phone/3G
Add code to change icons if a ppp interface is detected
===============================================================================
20160106 netmon_wce-2.9
-----------------------
change all calls to network????_bixbuf to neticon[array]
===============================================================================
20151005 netmon_wce-2.8
-----------------------
change long long to unsigned long long - Iguleder
add French [fr] translation (thanks ASRI éducation)
===============================================================================
20151003 netmon_wce-2.7
-----------------------
edit package script
-bugfix a typo creating wrong symlink - peebee
change wireless icons to a 'ray' type style
add more wireless icons to indicate network activity - peebee
-note - this will be more responsive if wifi polling is off
adjust C code for icons
adjust patch for non-puppy use
===============================================================================
20150728 netmon_wce-2.6-2
-------------------------
add Chinese, simplified and traditional [zh_CN],[zh_SG],[zh_TW],[zh_HK]
(thanks icake)
add Spanish [es] (thanks nilsonmorales)
add Italian [it] (thanks xanad)
===============================================================================
20150728 netmon_wce-2.6-1
-------------------------
add German [de] translation (thanks L18L)
adjust make file to build .mo files and install/uninstall
moved pot to ./po
===============================================================================
20150727 netmon_wce-2.6
-----------------------
bugfix - gettext - remove '\n' char from translations for clarity
-@line 221
-@line 258
-@line 313
-@line 330
bugfix - fix compile warning -Wformat @line 139 (seen in tahrpup)
add .pot file to 'package'
fix patch for dhcpcd -k
===============================================================================
20150718 netmon_wce-2.5
-----------------------
added IP address
changed icons to SVG from XPM
added wireless icons and capability to monitor signal strength (LameWiFi tray)
removed dep dirent.h
removed dep fcntl.h
removed dep gdk/gdk.h (redundant)
added dep sys/socket.h
added dep sys/ioctl.h
added dep arpa/inet.h
added dep iwlib.h (now depends libiw)
added dep ifaddrs.h
added dep netinet/in.h
added type structure iface_info to hold ifname and ip address
added type structure link_qual to hold actual and maximum quality (wireless)
full rewrite of find_active()
-removed dirent calls so doesn't get info from system files
-rather, gets info from sockets
-bugfix for atoll
-gettext bugfixes
-removed support for multiple interfaces
-wireless detection
-moved necessary globals to locals
-added ip address
full rewrite of Update()
-added wireless in detect mode (non-polling and polling mode)
-added signal strength to tooltip
-variable timeout for polling mode (5 seconds)
-bugfix/feature addition to get correct wireles strength (Lame, thx to mikeb)
or die trying, and suggest fallback to non-polling in tooltip
full rewrite of create_tray_icon()
-add wireless icons
added fn get_info() to get iface_info
added fn card_qual() to get link_qual
added fn toggle_wireless_polling()
added fn quit()
added to menu Disable/Enable wireless device polling
added to menu Quit
added icons to right click menu
added variable interval timeout (only enabled for wifi polling)
ability to call from symlink 'netmon_wpoll' to start in wireless polling mode
===============================================================================
extras
------
Makefile
package script
icons (most are already in woof-ce)
netmon_wce.desktop - for woof-ce puppies (however, covered in pinstall.sh)
pinstall.sh script to accommodate woof-ce and pre-woof-ce puppies
patch to remove most 'puppyisms' + script to apply (for other distros - mikeb)
snippet for caching traffic at shut down (for other distros)