screenlets.sensors

Package screenlets :: Module sensors |
[hide private]
[frames] | no frames]

# Module sensors

source code

Classes | [hide private]
| Sensor A base class for deriving new Sensor-types from.
| CPUSensor A very simple CPU-sensor.
| MemorySensor
| NetSensor

Functions | [hide private]
_(s) | source code
cpu_get_load(processor_number=0) Calculates the system load. | source code
cpu_get_cpu_name() Returns Cpu Name | source code
cpu_get_cpu_list() Returns Cpu List | source code
cpu_get_nb_cpu() Returns Cpu Number | source code
cpu_get_current_freq() Returns Cpu frequency | source code
cpu_get_current_gov(self) Returns Cpu governator | source code
get_available_freq(self) Returns available frequencies | source code
get_available_gov(self) Returns available governators | source code
sys_get_uptime_long() Returns uptime extended version | source code
sys_get_uptime() Returns uptime | source code
sys_get_username() Returns username | source code
sys_get_hostname() Get hostname | source code
sys_get_average_load() Get average load (as comma-separated string) | source code
sys_get_distrib_name() | source code
sys_get_distroshort() Get distro short name | source code
sys_get_desktop_enviroment() shows kde or gnome or xface | source code
sys_get_kernel_version() Returns kernel version | source code
sys_get_kde_version() Returns kde version | source code
sys_get_gnome_version() Returns gnome version | source code
sys_get_linux_version() Get linux version string. | source code
sys_get_full_info() Get cpu info from /proc/cpuinfo. | source code
sys_get_window_manager() Returns window manager name | source code
_get_meminfo() Helper function for mem_get_* functions | source code
mem_get_freemem() Get free memory. | source code
mem_get_usedmem() Get used memory. | source code
mem_get_usage() Returns memory usage | source code
mem_get_total() | source code
_get_swapinfo() Helper function for mem_get_*swap functions | source code
mem_get_usedswap() Returns used swap | source code
mem_get_totalswap() Returns total swap | source code
disk_get_drive_info(mount_point) Returns info about the given mount point (as dict). | source code
disk_get_swap() Get a list of swap partitions. | source code
disk_get_usage(disk_disk) Returns disk usage | source code
disk_get_disk_list() Returns disk list | source code
net_get_ip() Returns ip if it can | source code
net_get_updown() Returns upload and download | source code
net_get_activity(device) This will return the total download and upload this session, as a 2-tuple with floats. | source code
net_get_connections() This will return the number of connections. | source code
wir_get_interfaces() Returns wireless interfaces | source code
get_wireless_stats(interface) | source code
wir_get_stats(interface) Returns wireless stats as dict. | source code
cal_get_now() Returns full now time and date | source code
cal_get_local_date() returns date using local format | source code
cal_get_date() returns date. | source code
cal_get_local_time() returns time using local format | source code
cal_get_time() returns time | source code
cal_get_time24() returns 24 hour time | source code
cal_get_time12() returns 12 hour time | source code
cal_get_year() returns the years. | source code
cal_get_month() returns the month | source code
cal_get_month_name() returns the month name | source code
cal_get_day() returns the day | source code
cal_get_day_monday() returns the number of the day of the week starting from monday | source code
cal_get_day_sonday() returns the number of the day of the week starting from sonday | source code
cal_get_day_name() returns the day name | source code
cal_get_hour() returns the hour | source code
cal_get_hour24() returns the hour | source code
cal_get_hour12() returns the hours | source code
cal_get_minute() returns minutes | source code
cal_get_second() returns seconds | source code
cal_get_ampm() return am/pm or None if not available | source code
bat_get_battery_list() Returns battery list | source code
bat_get_data(name) Returns battery data | source code
bat_get_value(line) Returns battery value | source code
bat_get_ac() Returns battery ac | source code
process_get_list() Returns process list | source code
process_get_top() Returns top list | source code
getGpuType() return GPU Type to its caller | source code
getGpuRam() return GPU Ram size in MB to its caller | source code
getGpuDriver() return current GPU Driver version to its caller | source code
getGpuResolution() return current screen resolution to its caller | source code
getGpuRefreshRate() return current refreshrate to its caller | source code
getGpuClock() return current GPU Clock Frequency to its caller | source code
getGpuMemClock() return current GPU Memory Clock Frequency to its caller | source code
getGpuTemp() return current GPU Core Temperature to its caller | source code
sensors_get_sensors_list() | source code
sensors_get_sensor_value(sensorName) | source code

Variables | [hide private]
| __package__ = ``'``screenlets``'``

Function Details | [hide private]

### cpu_get_load(processor_number=0) | source code
Calculates the system load. Processor nr 0 is the average of all processors.