pWidgets 2.5.8

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2561 Post by 01micko »

I made the Eee-pc widget which shows fan speed in rpm. Only useful if you have an Eee-pc.

(Sigmund, birthday widget is underdevelopment, I've been very busy with eee-pc stuff :) )
Attachments
eee-widget.png
(29.07 KiB) Downloaded 993 times
eee-widget.pet
(1.01 KiB) Downloaded 358 times
Puppy Linux Blog - contact me for access

User avatar
craftybear
Posts: 62
Joined: Tue 16 Jun 2009, 10:20
Location: East Coast Oz in God's Country

#2562 Post by craftybear »

zigbert wrote:craftybear
About-dialog shows 2.5.0:
You have probably earlier installed 2.5.0, and now 2.1.0. Since The version-check-function only checks for higher version-number, it fails here. Please edit /root/.pwidgets/pwidgetsrc - 2.5.0 --> 2.1.0

The calender widget is fixed for next release. It will work ok if today is 10-31. It only fails if today is 1 digit date. Only 3 days, and everything will work perfect :)
... for 21 days anyway!!! :) Thanks, Sigmund. I can wait for the update to fix the calendar.
I CARE ... I just don't care about you!

jur
Posts: 18
Joined: Fri 25 Sep 2009, 04:33

#2563 Post by jur »

01micko wrote:I made the Eee-pc widget which shows fan speed in rpm. Only useful if you have an Eee-pc.
I tested this on my Atom 1000HE; tempeature is reported as around 50degC and fan speed value is missing.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2564 Post by 01micko »

Hi jur, you need all tempestuous' dotpets for it to work, but be sure to get the right ones for your kernel. Look in the "Additional Software (PETS and stuff)" and search for "Extra drivers for 4.3 with k2.6.30.5" if you are running 4.3. Also be sure they are loaded, run "lsmod" and look for "eee".

Cheers

EDIT: Ahh, I see you've been to that thread, just make sure you have the right kernel. Check from terminal with the command "uname -r".
Does it display "0rpm"? If so it is working. The fan does not kick in until 54 c . Hope this helps.
Puppy Linux Blog - contact me for access

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

#2565 Post by zigbert »

Mick
You are doing a great job here these days......

craftybear
Next release with an updated calender widget will arrive before the next bug-period. :D

omskates
It sounds like you're NOT a newbie. Could you please look inside /root/.pwidgets/configs/battery, and remove the 'if_exist /sys/class/power_supply/BAT0' code.


Sigmund

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

#2566 Post by zigbert »

Mick
Could we include the eee support in our temp_cpu widget:

Code: Select all

TEXT
${font pdingobats:size=30}${color4}z${font}${color0}${alignc}CPU Temp ${acpitemp} C  
${font pdingobats:size=30}${color4}v${font}${color0}${alignc}CPU Fan ${if_existing /proc/eee/fan_rpm}${execi 10 /root/.pwidgets/scripts/Temp_cpu}rpm$endif ${acpifan}
I have no ability to test it, but think it should work.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2567 Post by 01micko »

Sigmund

I was looking at that code thinking... 'if /proc/eee/fan_rpm exists then conky will execute both, ah well try it anyway..'

Yep both execute on my eee.

Will look into conky see if we can do 'else'

Cheers

Mick

EDIT: (1 min later)

Code: Select all

TEXT
${font pdingobats:size=30}${color4}z${font}${color0}${alignc}CPU Temp ${acpitemp} C 
${font pdingobats:size=30}${color4}v${font}${color0}${alignc}CPU Fan ${if_existing /proc/eee/fan_rpm}${execi 10 /root/.pwidgets/scripts/fan}rpm$else${acpifan}$endif
That works on the eee, see if it works on something else.. brb

EDIT2: (3 min later) Yep, works on my main box... we can integrate the widget, but I would change the name of the script to eee-fan or something.

Cheers
Puppy Linux Blog - contact me for access

User avatar
omskates
Posts: 252
Joined: Thu 03 Sep 2009, 06:50
Location: TriCities, WA

#2568 Post by omskates »

zigbert wrote: It sounds like you're NOT a newbie.
Feels like it most of the time :roll:
zigbert wrote: Could you please look inside /root/.pwidgets/configs/battery, and remove the 'if_exist /sys/class/power_supply/BAT0' code.
Removed this line from the pwidgets battery config, no joy. Removed all other instances of this line including BAT1, BAT2, etc. No joy

Original config here:
#this is a Pwidgets config file
#the actual building of the graphics is defined in bottom of this file, - after 'TEXT'.
#Battery monitor

#### PWIDGETS #####
HEIGHT=80
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 yes
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 10
minimum_size 140 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 monofonto:size=16

TEXT
${color2}${font Pdingobats:bold:size=20}4${font DejaVu:bold:size=13}${if_existing /sys/class/power_supply/BAT0}$alignc${color0}Battery$endif${if_existing /sys/class/power_supply/BAT1}$alignc${color0}Battery$endif${if_existing /sys/class/power_supply/BAT2}$alignc${color0}Battery$endif
${font}${color1}${if_existing /sys/class/power_supply/BAT0}${battery BAT0}${color1}${if_existing /sys/class/power_supply/BAT1}${battery BAT1}${if_existing /sys/class/power_supply/BAT2}${battery BAT2}$endif
${if_empty ${execi 10 /root/.pwidgets/scripts/Battery}}${color5}${else}${color6}${endif}${if_existing /sys/class/power_supply/BAT0}${battery_bar 10 BAT0}$endif${if_existing /sys/class/power_supply/BAT1}${battery_bar 10 BAT1}$endif${if_existing /sys/class/power_supply/BAT2}${battery_bar 10 BAT2}$endif

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2569 Post by 01micko »

Ok then,

Here is the new Temp_cpu widget with Eee-pc compatibility

(Renamed script to Temp_cpu :wink: )
Attachments
Temp_cpu.pet
(1.03 KiB) Downloaded 400 times
Puppy Linux Blog - contact me for access

henryfranz2005
Posts: 33
Joined: Sat 26 Sep 2009, 16:23
Location: Philippines
Contact:

#2570 Post by henryfranz2005 »

woah unbelievable it runs on my machine! :)) *old machine (very) with 256 ram and p3 processor + nvidia gf2 mx

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2571 Post by 01micko »

henryfranz2005.........Hehe... doesn't surprise me :D I had it running on a 486 with 32 MiB of RAM :shock: ........ 8)
Puppy Linux Blog - contact me for access

henryfranz2005
Posts: 33
Joined: Sat 26 Sep 2009, 16:23
Location: Philippines
Contact:

#2572 Post by henryfranz2005 »

01micko wrote:henryfranz2005.........Hehe... doesn't surprise me :D I had it running on a 486 with 32 MiB of RAM :shock: ........ 8)
wow! I wished I did not put my ancient lenovo in the trash. Aw. Might have done it with puppy linux. :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2573 Post by 01micko »

Yes just what we need, another new widget! Yes, but some of you will need this one...

Reminder Widget

Ever forgotten your Mum's birthday? Or your wedding anniversary? Or a particular day of importance? Well now there is no excuse.

This widget counts down the days to your particular event. There are presets for Birthday and Anniversary and also an "Other" field for anything else.

It is very easy to use and even comes with a help file if you get stuck.

Enjoy.

EDIT: Updated to V 0.1.1. Had a minor error with some missing " ' " in func file.

EDIT: Oct 17 2009, script bug :oops: pet removed, See newer post
Attachments
reminder1.png
(23.86 KiB) Downloaded 994 times
reminder2.png
(27.33 KiB) Downloaded 1018 times
reminder3.png
(26.46 KiB) Downloaded 1004 times
reminder-gui.jpg
Sorry, no pixmap
(29.73 KiB) Downloaded 999 times
Last edited by 01micko on Fri 16 Oct 2009, 21:40, edited 1 time in total.
Puppy Linux Blog - contact me for access

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#2574 Post by battleshooter »

Hilarious Micko!

That's a great one! But I won't be needing it as I never forget :P
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

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

#2575 Post by zigbert »

Wonderful Mick

Since you are in the steam, :D could we ask for a database that kept all birthdays during the year.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2576 Post by 01micko »

:oops:
Last edited by 01micko on Sat 19 Dec 2009, 02:13, edited 1 time in total.
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2577 Post by 01micko »

Latest Reminder widget

-added database of Birthdays (only)
-gave a facelift, changed 'Other' to 'Event"
-added tooltips


Cheers
Attachments
reminder.jpg
(31.88 KiB) Downloaded 900 times
Last edited by 01micko on Sat 19 Dec 2009, 02:12, edited 1 time in total.
Puppy Linux Blog - contact me for access

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

#2578 Post by zigbert »

Mick
This is starting to be a great widget. Possibly the most useful of them all.

Test-report
- When I add the first birthday tomorrow, it shows up just fine. My second birthday is the day after tomorrow, and now this is the one showing up. I find it more logical to always show the next reminder.

- It would have been great if widget shows the next 3 birthdays. It could be 3 birthdays on the 3 next days. Then I didn't get the notice until the day before, and I had a lack of time to buy a gift. :)

- It doesn't work with more than 1 birthday each day. What about using scrolling, to show endless many reminders each day.


You are really getting the the grip of app-building. 8)
Sigmund

User avatar
eugeniak1
Posts: 21
Joined: Mon 27 Aug 2007, 09:31
Location: Germany

pet to rpm

#2579 Post by eugeniak1 »

Hi, people.
thank you for you work with pwidgets - it is splendid! So splendid i wont to have it not only by puppy but by my opensuse too.I have puppy since 2.14 but am not a programmer and dont know how to do it. i have by suse screenlets, but pwidgets are better.
Is it possible to do something like UNPET or PET2RPM? Sorry for silly question, but i wish i have pwidgets for suse... :oops:

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

#2580 Post by zigbert »

eugeniak1
if you rename 'pwidgets-2.1.0.pet' to 'pwidgets-2.1.0.pet.tar.gz' you can simply unzip it.

Conky in the Pwidgets package is patched, and has got an extra option 'own_window_type roxdesktop'. This to work better with Rox. Since Suse don't use rox as its pinboard, you need to change this setting in all Pwidgets config files. - $HOME/.pwidgets/configs/... The 'own_window_type' options has normally 3 possible values:

own_window_type normal
own_window_type desktop
own_window_type override

I don't know which will suit suse best.


Sigmund

Post Reply