pWidgets 2.5.8

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3091 Post by zigbert »

tlchost
What Puppy do you run?

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#3092 Post by tlchost »

zigbert wrote:tlchost
What Puppy do you run?
Ovprecise 5.8

pwidgets 2,5.2 through 2.5.4 seem to install correctly in ovprecise on a bootable USB drive.

however .pwidgets is NOT written to $HOME

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3093 Post by zigbert »

I will look into this, but too busy right now...

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#3094 Post by oldyeller »

I just installes 2.5.1 and looks really nice will do 2.5.4 soon.

Cheers

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#3095 Post by tlchost »

zigbert wrote:I will look into this, but too busy right now...
thanks

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3096 Post by zigbert »

Version 2.5.5
See main post

Changelog
- Bugfix: Set exec bit when installing (thanks to tlchost)
- Bugfix: Set thme without analog clock gave 'zero-files' to $HOME/.pwidgets

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3097 Post by zigbert »

tlchost wrote:pwidgets 2,5.2 through 2.5.4 seem to install correctly in ovprecise on a bootable USB drive.

however .pwidgets is NOT written to $HOME
Please check if 2.5.5 works for you. I can not reproduce the described error, but installation is fixed, so I wonder if this also solves your issue?


Sigmund

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#3098 Post by tlchost »

zigbert wrote:Please check if 2.5.5 works for you. I can not reproduce the described error, but installation is fixed, so I wonder if this also solves your issue?
Thanks so much....installs and works fine.

Thom

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3099 Post by zigbert »

tlchost wrote:installs and works fine.
Great

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3100 Post by zigbert »

Version 2.5.6
See main post

Changelog
- Don't show swap partition in Drive space widget
- Refine Wireless widget to fit unify look.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#3101 Post by Mike Walsh »

Hi, zigbert.

Just downloaded & installed pwidgets 2.5.6 to 'TahrPup' 6.0, on a truly ANCIENT Dell Inspiron lappie. I've always wanted a nice little 'mini-conky', and this fits the bill a treat; works 100% spot-on, too.

Nice one; thanks!

Regards,

Mike.

der-schutzhund
Posts: 1045
Joined: Mon 26 Nov 2007, 22:07
Location: Blomberg / Germany

#3102 Post by der-schutzhund »

Hi,

i use pwidgets-2.5.6-486.pet in Tahrpup 6.0.2 on a Toshiba Satellite notebook. the problem is that the Temp_cpu is always 0!

Wolfgang

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

CPU Temperatures widget configuration

#3103 Post by davids45 »

G'day zigbert and der-schutzhund (and 01micko if he's watching),

I use pwidgets with all my Pups (Fulls and Frugals) as I think pwidgets is very helpful.

I too would like to use the CPU temp widget but have not seen it work with any Pup or kernel (I get the same results as der-schutzhund I think). This widget's config files look very brief (?) but can they be edited to display a range of cpu temperatures as there seem to be many possible temperatures, certainly with computers that have more per core.

Temp_cpu widget configs:
#!/bin/sh
cat /proc/eee/fan_rpm &
#this is a Pwidgets config file
#the actual building of the graphics is defined in bottom of this file, - after 'TEXT'.

#EEE CPU Overheat Alarm

#### PWIDGETS #####

HEIGHT=75
OFFSET_X_LEFT=40
OFFSET_X_RIGHT=40


#### CONKY ####
#COLORS --- 0:headings 1:base-info 2:extra-info 3:markers 5:green 6:red
#Colors are defined in theme-files, - NOT here.
color0 A2914E
color1 666666
color2 bbbbbb
color3 ffab00
color5 499D3A
color6 red

background no
own_window yes
own_window_type roxdesktop
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_colour hotpink
double_buffer yes
total_run_times 0
update_interval 1
minimum_size 180 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 2
border_margin 4
border_width 1
default_color white
default_shade_color 333333
default_outline_color red
no_buffers yes
uppercase no
use_spacer none
#font fixed
use_xft yes
xftfont dejavu:bold:size=10

TEXT
${font pdingobats2:size=28}${color4}z${font}${color0} CPU Temp ${alignr}${color3}${acpitemp} C
${font pdingobats2:size=28}${color4}v${font}${color0} CPU Fan ${alignr}${color3}${if_existing /proc/eee/fan_rpm}${execi 10 /usr/local/pwidgets/widgets/scripts/Temp_cpu}rpm$else${acpifan}$endif


01micko has recently posted a "poor man's cpu temperature monitor" pmcputemp (http://www.murga-linux.com/puppy/viewtopic.php?t=98299) to display a cpu temperature on the task bar. I have tried this on a range of Pups on this HP desktop, and using a script 01micko wrote for me to try, get different readings which seem to depend on the Pup/kernel and which temperature the script picks.

For example, with Quirky-7.0.3, there are about 12 temperatures to pick from, being "input", "crit" and "max" versions of three "temp" settings. Here are his (2) one-line scripts and their results on this 2-core cpu desktop:
# find /sys -type f -name 'temp*'
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/temp1_crit
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/temp1_crit_hyst
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_label
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_crit_alarm
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_crit
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_crit
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_crit_alarm
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_max
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_max
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_label
#
# find /sys -type f -name 'temp*' -exec cat '{}' \;
120000
90000
62000
34000
Core 1
0
100000
100000
0
74000
74000
40000
Core 0
I can edit the /root/.config/pmcputemp file (by copying a line from the above first script output, e.g. "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input" (which is 35C at the moment) to display whichever of these I think is most important (but I don't really know which is :oops: .)

The task-bar is probably not an easy place to show so many temp. values, or even display just a few, but a widget could show them compactly perhaps (like it does with the cpu usage widget :) )?

But can the temp_cpu widget config file be edited/written to use 01micko's scripts to display all or some of these cpu temperatures?

David S.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3104 Post by zigbert »

The temp_cpu widget has never worked for me either. Remember that most of the widgets itself is not made by me. I only delivered the framework.

I have focus elsewhere (also on a new framework for interactive desklets), so I have not the intention to expand the widgets itself. But I do keep the framework in a reasonable condition.

Sigmund

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

How to write a widget?

#3105 Post by davids45 »

G'day zigbert,

Thanks for replying to my post.

Just now, I looked for a simple (simpleton's?) guide on how to write a pwidget but the wiki and its forum links (http://www.murga-linux.com/puppy/viewto ... 61&t=36675) looked a bit out-of-date (started six and a bit years ago).

I found widget scripts must now go into /usr/local/pwidgets/widgets/scripts but it looks like some computer programming knowledge is needed beyond just copying a bash (.sh) script and trying to create a pwidgets config file for it.

Oh well :( .

Anyway, enjoy the sun again up there after your hibernation :wink: .

David S.

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Temp_cpu widget - config file "edited"

#3106 Post by davids45 »

G'day,

Working from the certainty that an infinite number of monkeys on typewriters could write Shakespeare sooner or later, I have taken some of their output concerning conky and cpu temperature (found by the Bard Google), and by trial and many errors, randomly found a Temp-cpu widget config "Text" line that gives me a dual core display on this HP desktop's pwidgets.

Those with nothing to lose may wish to blindly follow my one-eyed efforts......

Firstly, you need to install a lmsensors.pet as the Widgets conky doesn't seem to have this.

Secondly, run 'sensors' in a terminal to check it runs and to see what cpu/core temperatures you could expect from your computer.

Thirdly, edit your existing temp-cpu config file replacing the 'TEXT' lines as below or just replace the config file with this:
#this is a Pwidgets config file
#the actual building of the graphics is defined in bottom of this file, - after 'TEXT'.

#### PWIDGETS #####

HEIGHT=75
OFFSET_X_LEFT=40
OFFSET_X_RIGHT=20


#### CONKY ####
#COLORS --- 0:headings 1:base-info 2:extra-info 3:markers 5:green 6:red
#Colors are defined in theme-files, - NOT here.
color0 A2914E
color1 666666
color2 bbbbbb
color3 ffab00
color5 499D3A
color6 red

background no
own_window yes
own_window_type roxdesktop
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_colour hotpink
double_buffer yes
total_run_times 0
update_interval 1
minimum_size 180 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 2
border_margin 4
border_width 1
default_color white
default_shade_color 333333
default_outline_color red
no_buffers yes
uppercase no
use_spacer none
#font fixed
use_xft yes
xftfont dejavu:bold:size=10

TEXT
${font pdingobats2:size=28}${color4}z${font}${color0} CPU Temps
${color yellow} ${execi 33 sensors | grep -A 2 'Core' | cut -c1-22 | sed '/^$/d'}
Attached for those with young eyes is a desktop shot showing the lmsensors output as well as the Temp-cpu widget in its current form in the centre of the widgets (yellow text temps). 01micko's pmcputemp (version 0.6) is also shown on the task-bar.

It would be nice to get all three 'sensor'-reported temps in the widget - I would probably need to understand what a "grep" is :shock: and how to "cut" just the bits needed, or even how to optionally add the 'critical' values from the sensors display.

David S.
Attachments
lm_sensors-3.1.2.pet
Possibly a bit old. Try your Pup repository if this pet doesn't seem to work.
(72.05 KiB) Downloaded 346 times
capture24021.gif
(44.79 KiB) Downloaded 624 times
Last edited by davids45 on Thu 16 Apr 2015, 00:46, edited 1 time in total.

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Temp_cpu widget - 2 cores + pci adaptor

#3107 Post by davids45 »

G'day,

If you have a graphic adaptor with a temperature output (as "temp1") and a dual core CPU, this Temp_cpu pwidget config may work for you.
#this is a Pwidgets config file
#the actual building of the graphics is defined in bottom of this file, - after 'TEXT'.
# needs lmsensors installed too - check likely widget output by running sensors in a console!!!!!!!

#### PWIDGETS #####

HEIGHT=100
OFFSET_X_LEFT=40
OFFSET_X_RIGHT=40


#### CONKY ####
#COLORS --- 0:headings 1:base-info 2:extra-info 3:markers 5:green 6:red
#Colors are defined in theme-files, - NOT here.
color0 A2914E
color1 666666
color2 bbbbbb
color3 ffab00
color5 499D3A
color6 red

background no
own_window yes
own_window_type roxdesktop
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_colour hotpink
double_buffer yes
total_run_times 0
update_interval 1
minimum_size 180 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 2
border_margin 4
border_width 1
default_color white
default_shade_color 333333
default_outline_color red
no_buffers yes
uppercase no
use_spacer none
#font fixed
use_xft yes
xftfont dejavu:bold:size=12

TEXT
${font pdingobats2:size=24}${color4}z${font}${color0} CPU Temps
${color yellow} ${execi 33 sensors | grep -A 2 'Core' | cut -c1-22 | sed '/^$/d'}
${font}${color0} Graphic-card ${color orange} ${execi 33 sensors | grep -A 1 'temp1' | cut -c14-22 | sed '/^$/d'}
The screen-shot is from unicornpup-6.0. The widget has the yellow 'Core' temperatures.
The lmsensors 'sensors' output is just readable in the blue window.
If your sensors output is different, tinkering of the TEXT line in the config file may be needed to match the sensor's wording.

01micko's pmcputemp-0.61 is also running - its blue icon showing a core temperature is on the task-bar.

David S.

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#3108 Post by Moat »

FWIW - I corrected three small issues with the WeatherStation script's wind direction indicator (arrow) -

1) There was no entry for 360 degrees (so no direction arrow would display), which - even though the same as 0 degrees - Yahoo sometimes reports either/or. Entry added.

2) The directional arrows (pcompass' iconwind font) were all being displayed as rotated 10 degrees clockwise relative to the actual reported Yahoo coordinates - just required shuffling all of the corresponding script 'echo' entries down one place in the script.

3) A space was missing from the 50 degrees '$WinCode' line, which prevented any arrow from displaying with a reported 50 degree coordinate.

Here's the entire revised code -

Code: Select all

if [ $WinCode =  0 ] ; then echo "J" 
  elif [ $WinCode = 10 ] ; then echo "a" 
  elif [ $WinCode = 20 ] ; then echo "b" 
  elif [ $WinCode = 30 ] ; then echo "c" 
  elif [ $WinCode = 40 ] ; then echo "d" 
  elif [ $WinCode = 50 ] ; then echo "e" 
  elif [ $WinCode = 60 ] ; then echo "f" 
  elif [ $WinCode = 70 ] ; then echo "g" 
  elif [ $WinCode = 80 ] ; then echo "h" 
  elif [ $WinCode = 90 ] ; then echo "i" 
  elif [ $WinCode = 100 ] ; then echo "j" 
  elif [ $WinCode = 110 ] ; then echo "k" 
  elif [ $WinCode = 120 ] ; then echo "l" 
  elif [ $WinCode = 130 ] ; then echo "m" 
  elif [ $WinCode = 140 ] ; then echo "n" 
  elif [ $WinCode = 150 ] ; then echo "o" 
  elif [ $WinCode = 160 ] ; then echo "p" 
  elif [ $WinCode = 170 ] ; then echo "q" 
  elif [ $WinCode = 180 ] ; then echo "r" 
  elif [ $WinCode = 190 ] ; then echo "s" 
  elif [ $WinCode = 200 ] ; then echo "t" 
  elif [ $WinCode = 210 ] ; then echo "u" 
  elif [ $WinCode = 220 ] ; then echo "v"
  elif [ $WinCode = 230 ] ; then echo "w"
  elif [ $WinCode = 240 ] ; then echo "x"
  elif [ $WinCode = 250 ] ; then echo "y"
  elif [ $WinCode = 260 ] ; then echo "z"
  elif [ $WinCode = 270 ] ; then echo "A"
  elif [ $WinCode = 280 ] ; then echo "B"
  elif [ $WinCode = 290 ] ; then echo "C"
  elif [ $WinCode = 300 ] ; then echo "D"
  elif [ $WinCode = 310 ] ; then echo "E"
  elif [ $WinCode = 320 ] ; then echo "F"
  elif [ $WinCode = 330 ] ; then echo "G"
  elif [ $WinCode = 340 ] ; then echo "H"
  elif [ $WinCode = 350 ] ; then echo "I"
  elif [ $WinCode = 360 ] ; then echo "J"
   
Bob
Attachments
Original Weather Station.jpg
Original script - pointing 10 degrees to the right...
(8.29 KiB) Downloaded 487 times
Weather Station.jpg
Revised script - 0 degrees correctly displayed as straight North/straight "up"...
(7.99 KiB) Downloaded 483 times
Last edited by Moat on Fri 01 May 2015, 07:47, edited 1 time in total.

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Weatherstation wind direction

#3109 Post by davids45 »

G'day Moat,

Thanks for looking into the widget weatherstation wind script.

However, in my day-old full VividPup beta (see attached screen shot), the wind direction arrow is a text letter so I'm guessing I'm missing the pcompass font.

I haven't tried this in other Pups to check, but if this is a missing font, do you know where I can find the pcompass font file?

Regards,
David S.

Update: same text-instead-of-arrow in Dpup Wheezy with the weatherstation widget for wind direction.
Attachments
Vivid_Weatherstation_font.jpg
Weatherstation wind direction arrow is text
(94.51 KiB) Downloaded 626 times

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#3110 Post by Moat »

Hi David!

Below I attached the pcompass font I am using in (a somewhat modified) Precise 5.7.1 Retro - remove the fake tar.gz extension, and copy the font to /usr/share/fonts/default/ttf directory and see if that cures the issue.

Myself, I've experienced rendering issues of the pcompass font in some later Pups... hopefully it'll work for you (I'm gonna guess it will work in your Dpup Wheezy, but maybe not Vivid...?).

Bob
Attachments
pcompass.ttf.tar.gz
(3.84 KiB) Downloaded 302 times

Post Reply