Warning: session_start(): open(/tmp/sess_uod2shavlhrflg7flb6vsia617, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
Kood Morning openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans (6) .- Knowledge Base  . 

Kood Morning

   0.2.1  

Plasmoid Script

Score 76%
Kood Morning
zoom


Kood Morning
zoom


Downloads:  202
Submitted:  Dec 20 2009
Updated:  Nov 15 2010

Description:

The idea was to have a plasmoid to show the status of my home network server and in case to start it using wake-on-lan.

The status is evaluated on basis of ping, which is executed every 5 secs. Currently this value is not configurable.

Currently there is also no way to stop the plasmoid from pinging (e.g. screen saver active). This will be necessary to allow power savings to work.

I will add these features as soon as there is some more time.

Please feel free to comment my work.

Merry Christmas!




Changelog:

0.2.1:
- edit button corrected

0.2:
- ping now async - thx to accumulator
- you can edit a server within the configuration editor




LicenseGPL
other(kood.morning.0.2.1.plasmoid)
Send to a friend
Subscribe
Other  Content  from DeepDiver
Report inappropriate content



goto page:  1  2 

-
.

 TROUBLE: Plasma stucks ....

 
 by DeepDiver on: Dec 30 2009
 
Score 50%

... in case one server is not online, pinging takes too long to return (quite natural) and during that time the whole Plasma freezes for some time.

Too bad!

Pinging the servers need to be done in a separate thread to keep plasma responsive.

Stay tuned for the next version.

Take care,
DD


The one, who caused the trouble ....
Reply to this

-

 Thanks!

 
 by wtbennington on: Apr 12 2010
 
Score 50%

Great little program! Does exactly what I need it to do. Any luck on any updates on it?


Reply to this

-

 Re: Thanks!

 
 by DeepDiver on: Apr 13 2010
 
Score 50%

Good to know you like it!

I was working on a version using thread(s) to ping the server.
But there are issues at the moment using threads in Python+Plasma.

I will re-investigate soon .....

Further feature requests are always welcome.

Take care,

Tom


Reply to this

-

 Re: Re: Thanks!

 
 by wtbennington on: Apr 13 2010
 
Score 50%

Tom,

Glad to hear you are working on it. One thought I had was the ability to Edit an existing entry. If you go to create one and need to edit it you have to go back and delete it and add a new one.

William


Reply to this

-

 Festure #1: Edit Server Entry

 
 by DeepDiver on: Apr 13 2010
 
Score 50%

Accepted!

I'll add this.

THX Tom


Reply to this

-

 System Performance

 
 by wtbennington on: Apr 13 2010
 
Score 50%

Tom,

I am currently running Mandriva 2010.1 and I think that Koodmorning is causing drastic performance issues with my system.

For instance, if I minimize one application and then try to maximize anouther one it will take up to 5 seconds for it to display it. I beleive this is caused by Koodmorning because it only happened after I added it and after I removed it the performance went back up.

Any Idea what would cause this or how to fix it?


Reply to this

-

 Re: System Performance

 
 by DeepDiver on: Apr 13 2010
 
Score 50%

This is exactly the issue, that I describe in my first (self)-comment.

It is necessary to perform the ping operation in a separate thread.
This is where I have issues at the moment.

Take care,

Tom


Reply to this

-
.

 Very Usefull!

 
 by klik on: Oct 14 2010
 
Score 50%

Thanks for your great plasmoid.
This is exactly what I'm waiting for.

Please keep on fixing the performance issue and I'll be happy at all.

Many thanks in front
Markus


Reply to this

-
.

 fix the threading

 
 by accumulator on: Nov 3 2010
 
Score 50%

.. or use some async method to check for the ping replies.

It's a very nice plasmoid, but with these slowdowns it's also an almost useless plasmoid.


Reply to this

-
.

 Re: fix the threading

 
 by accumulator on: Nov 4 2010
 
Score 50%

I did some checking on the code, and it seems python more or less always crashes when running in a Plasma context.

So I rewrote the ping_async method for you, so it uses nonblocking process calling. Every time the ping_async method is called, it will either

1) start a ping process for that IP
2) query an existing ping process

so calling it on a 5s interval will yield a status update interval of at least 10s

here's the code for ping.py:

Quote:

pingprocs = dict()

def ping_async(ip, result):
"""Pings given ip async"""
if ip in pingprocs:
# ping is running for ip, check process
process = pingprocs[ip]
process.poll()
if process.returncode != None:
# ping finished, submit result
result(ip, process.returncode == 0)
del pingprocs[ip]
else:
process = subprocess.Popen(["/bin/ping","-c","1","%s" % ip],
stdout=open("/dev/null","w"),
stderr=subprocess.STDOUT)
pingprocs[ip] = process


and for main.py:

Quote:

def updateStatus(self):
ping_async(self.ip, self.statusCB)
# end if
# end def updateStatus
def statusCB(self, ip, status):
if status:
self.status = "Online"
else:
self.status = "Offline"


Reply to this

-
.

 Re: Re: fix the threading

 
 by DeepDiver on: Nov 4 2010
 
Score 50%

Hi,

thanks alot!
Nice idea!

I'll have a look at it asap.

THX,

Tom


Reply to this

-
.

 Re: Re: Re: fix the threading

 
 by accumulator on: Nov 4 2010
 
Score 50%

Can I boldly throw in a feature request? (I have become a fan after all ;) )

I'd like the aspect-ratio constraint to be removed, and an option to put the name of the host next to the indicator

thanks!


Reply to this

-
.

 Re: Re: Re: Re: fix the threading

 
 by DeepDiver on: Nov 5 2010
 
Score 50%

Hi,

I can make this a configurable alternative view.

Agreed?

CU Tom


Reply to this

-

 Re: Re: Re: Re: Re: fix the threading

 
 by accumulator on: Nov 5 2010
 
Score 50%

maybe it's best to make them granular options (i.e. checkboxes) and have the view layout adapt to these settings. If you make several views, with fixed settings, it might not become as tweakable as some might like.

example: if you want to option of a label with the button, and you have both a horizontal and a vertical layout, it would result in 4 views, as opposed to 2 options.


Reply to this

-

 Re: Other Plasmoid

 
 by gzu on: Nov 12 2010
 
Score 50%

Hi,

Does this do anything different to the server status plasmoid?

Thanks,


Reply to this

goto page:  1  2 

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team