computer status plugin, eg.globals and more
Posted: Fri Jul 10, 2009 3:04 am
Hi guys,
I just started getting into EG scripting/Python and have come across a few hurdles I was hoping you guys could help me out with.
First my pet project if anyone is interested. I thought it would be neat to be able to receive status updates from the computers on my network. ie. I WOL a computer so I can VNC into it, instead of guessing when to connect I now get an online notice from that computer. So I've been hacking the NetworkSender to fit my needs. Let me know if anyone would be interested in this and I'll post it when it's not all hard coded.
Features so far:
- Polls a list of computers for NetworkReceiver, keeps a list of active computers
- Sends out startup, shutdown and crash recovery notices to active computers on the network
- Polls the router to check for network connectivity (so I can time the startup notice)
- displays MIA message if a poll fails without receiving a shutdown notice from that computer
On to the questions:
1. Is there a way to dynamically set eg.globals variables? ie. globals()['test'] but for eg.globals... eg.globals() gives a "TypeError: 'Bunch' object is not callable"
2. Is there a EG exit or system.shutdown event?
3. Is there a way for a plugin to hook into events? Or can you only assign them via EG?
4. I'm syncing my EG configurations/plugins across my network, is there any call I can make to reload the configuration/plugins or restart EG?
Thanks for any help
I just started getting into EG scripting/Python and have come across a few hurdles I was hoping you guys could help me out with.
First my pet project if anyone is interested. I thought it would be neat to be able to receive status updates from the computers on my network. ie. I WOL a computer so I can VNC into it, instead of guessing when to connect I now get an online notice from that computer. So I've been hacking the NetworkSender to fit my needs. Let me know if anyone would be interested in this and I'll post it when it's not all hard coded.
Features so far:
- Polls a list of computers for NetworkReceiver, keeps a list of active computers
- Sends out startup, shutdown and crash recovery notices to active computers on the network
- Polls the router to check for network connectivity (so I can time the startup notice)
- displays MIA message if a poll fails without receiving a shutdown notice from that computer
On to the questions:
1. Is there a way to dynamically set eg.globals variables? ie. globals()['test'] but for eg.globals... eg.globals() gives a "TypeError: 'Bunch' object is not callable"
2. Is there a EG exit or system.shutdown event?
3. Is there a way for a plugin to hook into events? Or can you only assign them via EG?
4. I'm syncing my EG configurations/plugins across my network, is there any call I can make to reload the configuration/plugins or restart EG?
Thanks for any help