| || |
|Posted by: Maz on 09-Dec-2014 01:30:36pm in categories: projects|
I'm building a new XBMC media center. More details to follow my fancy case.
media center, xbmc
| || |
|Posted by: Maz on 03-Nov-2014 11:17:37pm in categories: projects|
Apparently I had finished this project but had never installed it. Now that I've installed it and it works well, I thought it would be nice to share.
Make sure you have .NET v4 installed.
What it does:
Using the built-in system diagnostics library, it monitors the AC state and battery level and on state change it runs plugins. Initially I have configured it to wait until the battery is discharging and the level is less than 50%, then it sends a shutdown command to a network pc. Also it logs an event to the eventviewer when AC power is lost or restored.
I also have a plugin that talks to Hyper-V and shuts down, suspends, starts virtual machines (not included).
This works with a laptop very easily, or with my CyberPower UPS plugged in with USB (But I had to use the default windows driver and not install their software).
- Extract the zip file and run "install.bat".
- Edit the configuration file (I have provided 2 sample plugins and basic usage for them).
- Go to the services administration tool and start "UPS Monitor"
- Stop the service.
- Run "uninstall.bat"
- Delete the folder.
If you want to write your own plugins, I'm using MEF and the interface you need to implement is in the Common.dll. Just make your own class library, add a reference to the Common.dll and implement the IPowerMonitorPlugin interface. If anyone is after the code for the whole project, just send me a message somehow. I'm not sure how yet either but you'll work something out.
C#, UPS monitor, MEF, .Net, Programming
| || |
|Posted by: Maz on 26-Aug-2014 02:02:30pm in categories: photography|
Just for an added challenge, night time photos with my phone.
| || |
|Posted by: Maz on 20-Aug-2014 12:51:27am in categories: photography|
I went for a skate. Here are some photos
| || |
|Posted by: Maz on 15-Jun-2014 09:42:13pm in categories: projects|
So I took my hexacopter out to the farm to test fly it after my dad very kindly built me some reverse thread prop mounts so that I don't have the damn things coming off mid-air.
Because I still don't know where my voltage and current sensors are (shipped from sparkfun a few weeks ago), I couldn't fly it too far or too hard because I didn't know when the battery was going to cut out.
Anyway, I know you're only here to see the pics and video so....
I have done no real calibration or setup yet so I'll do that during the week and have a new awesome video at the end of next weekend.
Hexacopter, Remote control