Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mkbrown69

Pages: 1 ... 3 4 [5] 6 7 ... 13
61
Beeker,

Glad to hear you recovered your treasured memories!  RAID is meant for availability in the case of a hardware failure in one of the "spinning platters of rust", to quote a colleague.  It won't ever replace a good backup, which is something you may wish to do in the near future...

Take care!

/Mike

62
Users / Re: My thermostat template died
« on: August 27, 2013, 03:08:48 am »
Sean,

Could you do me a favor and test something from an Orbiter?  I'm selecting the tstat in Roaming Orb, and trying to adjust the temperature setting using the + and - buttons.  I get errors in the logs, and I'm wondering if it works for you (and is thus a problem with my implementation), or if you get the same.  I'm using the exact same code as the 3M driver for set_targettemp and Event 278.

Code: [Select]
Mon Aug 26 20:41:26 -0400 2013 : Error in set_targettemp: undefined local variable or
 method `value_to_assign' for #<Device_183:0xb44bab04>
Mon Aug 26 20:41:26 -0400 2013 : (eval):432:in `set_targettemp'(eval):19:in `cmd_278'
Mon Aug 26 20:41:29 -0400 2013 : set_targettemp called
Mon Aug 26 20:41:29 -0400 2013 : Error in set_targettemp: undefined local variable or
 method `value_to_assign' for #<Device_183:0xb44bab04>
Mon Aug 26 20:41:29 -0400 2013 : (eval):432:in `set_targettemp'(eval):19:in `cmd_278'
Mon Aug 26 20:41:32 -0400 2013 : set_targettemp called
Mon Aug 26 20:41:32 -0400 2013 : Error in set_targettemp: undefined local variable or
 method `value_to_assign' for #<Device_183:0xb44bab04>
Mon Aug 26 20:41:32 -0400 2013 : (eval):432:in `set_targettemp'(eval):19:in `cmd_278'

Thanks!

/Mike

63
Users / Re: My thermostat template died
« on: August 27, 2013, 01:51:18 am »
Hi Sean!

Basically, my template is based on the code from yours, with some changes and the additions for the API and the CT-80.  So, it should work for 3M50/CT-30 owners the same way yours would, minus the auto-detection stuff.  Thom can correct me if I'm wrong, but I don't think we can combine the drivers per se; I think one would have to take over from the other, and then the other gets deprecated somehow.

Since you're probably using your Tstat "in production", I can commit my changes against 2243, which would leave your 3M one intact. That would allow you to try it out, and still have a backout plan if it doesn't work for you.   If there's things you want to work on, I'd be glad for the assistance.  I'll summarize what I've added, and what I've got on my to do list...

Improved logging (does a lookup on some response codes to make it more informative)
Get model subroutine
Get/set time subroutines.  Verifies time is within +/- 5 min of system time.
Supports the Price and User messaging areas, and the Energy LED.
Logs system info, and logs the stat's event log
Sends humidity events (including to datalogger)

#TODO:
# Write device capabilities out to #207 Capabilities
# Write device config out to Configuration #59
# Write functions to allow for changes in #59 to update Tstat
# When Weather plugin is complete, add support for C/F detection
# Covert math functions to use conversion sub routines
#  for decimal support in Celcius
# Add LMCE support for functions like message areas & LEDS (interceptors?)
# Add model compatibility checks for all advanced functions
# Complete Eventlog to datalogger functions.

I'm just finishing up the time stuff (making sure it catches some edge cases; the device and API are a little quirky, and I'm currently abusing it with control by LMCE and posting the outside temperature to the Price messaging area using a script called from cron.  The tstat doesn't like multiple device access...

So, what do you think?

/Mike

64
Users / Re: URGENT 810 Software RAID failed after power outage
« on: August 26, 2013, 06:08:05 pm »
then run this command, this is the easy way.

 sfdisk -d /dev/sdd | sfdisk /dev/sde

then format it using mkfs

then add
Actually, you don't need to format the individual members of the raid array.  They contain the striped blocks of the md device, not an actual file system.  It's the /dev/mdX that actually gets a file system, which in this case already exists so DON'T do a mkfs on /dev/md1.

Just copy the partition table as per the sfdisk command above, and then add /dev/sde1 into the array.

Things should work a lot better this time around.

HTH!

/Mike

65
Users / Re: URGENT 810 Software RAID failed after power outage
« on: August 26, 2013, 03:01:50 pm »
Your disks appear to be identical sizes, but the number of blocks available on sde are less than the others, which is the cause of the error.  More than likely, your older disks were partitioned with a starting sector of 63, which was the old standard.  The user-land disk partitioning tools had their defaults changed to accommodate the newer disks, where you want to partition align on a different boundary (usually 2048).  change your units to sectors, and see what the starting sector is for your sde vs sdd.  You'll likely have to delete the partition again, and re-create while forcing the starting sector to 63 to match your existing disks.

Hope that helps!

/Mike

66
Users / Re: My thermostat template died
« on: August 25, 2013, 06:08:38 am »
Thanks Thom!

Once I hear back from Sean, and the course of action is determined, I'll update he relevant wiki page to reflect the current situation.  It's pretty out-of-date...

http://wiki.linuxmce.org/index.php/Radio_Thermostat

/Mike

67
Developers / Re: Developing a Weather Plugin, videos
« on: August 25, 2013, 04:54:27 am »
You're overthinking this. ;)
Bad habit from work... I'm busy writing techical architecture design specifications where the overarching reference architecture docs the enterprise types are supposed to have gotten to us, haven't been written yet... Lots o fun  :P

The different weather APIs return textual data as strings. WE HAVE TO DO A TYPE CONVERSION, ANYWAY as part of the parsing process. :) (This is something that all you guys who write scripting languages all day, don't have to deal with, with your language magically converting everything).

The REASON that the integer values are here anyway, is precisely for the case you outline below, it's so that you can match things in event criteria. The weather plugin expects BOTH the integer values and the textual values to be returned as part of the event.

As for F to C conversions, this is something that is being decided, e.g. to put the F/C in device data, and have the weather devices read this (The weather plugin does not care, it's just a cubby hole), it's up to the weather devices to do the necessary conversions.

Fair enough... I'll kick the tires on it when I get the ISY driver out in the wild.  My plans are to get the CT-80 driver out in the next couple of weeks, the first cut ISY driver out in late September/early October, and then upgrade to 12.04 to work on a bunch of things, including integrating with the weather plugin for the ISY driver and the CT-80.

Thanks for the excellent summary on how the plugin works.  It'll give me a lot to think about over the next little while.

/Mike

68
Developers / Re: Developing a Weather Plugin, videos
« on: August 24, 2013, 05:08:06 pm »
p.s. yes, the Value parameters are full integers. I see NO point in decimal points for weather values, none. If someone can convince me of a valid reason to use floating point values, I will change this.
Thom,

I've been mulling this over for a bit.  Something to consider is that some other sources of weather/temperature data return floating point data (WeatherBug, Environment Canada, Davis/Oregon weather stations, thermostat API's, 1-Wire, etc).  To take the weather plugin to the next level, we'll need to do something with that data.  That usually means doing comparisons...

Pseudo-event code criteria
Code: [Select]
If $outside_temp < $inside_temp and $outside_temp > 0 then
   Disable A/C unit
   enable external air baffle and whole house fan
End

So, if the weather plugin uses integers, all other drivers will have to do type conversions.  Fahrenheit to Celcius conversions (and vice versa) would also need to be rounded to the nearest integer.  So, that may complicate all the drivers that have to interact with the weather plugin.

Just something to consider...

/Mike

69
Users / Radio Thermostat templates
« on: August 24, 2013, 04:29:12 am »
Sean, Thom,

Since this relates to Sean's template, I thought it might be best to post into this thread.

Sean's Template is #2254, titled 3M50 by Radio Thermostat as the manufacturer.  At some prior point in time, Aviator had also created a template, but it somehow got committed as an unfinished template #2243, manufacturer Filtrete, model 3M50.  There was no code attached to that template.  I bring this up for a couple of reasons.  The first and obvious one is that it could cause confusion if someone were to select it manually, since it wouldn't work.

The second reason is that I'm currently working on a driver for the CT-80 thermostat from Radio Thermostat.  It's the big brother to the CT-30/3M50, and uses the same API (but with extra features supported by the hardware).  For my development work, I've re-purposed the broken template 2243 to avoid conflicting with Sean's template.  My local copy has been renamed CT-30/CT-80 by Radio Thermostat. I'm getting close to finishing up what I want to get done at this point in time, so I'll be looking to commit my code soon, so I can return to doing my ISY driver.  My eventual goal is to implement all of the Radio Thermostat API, but that'll likely take a few phases.  So, I'm looking for some guidance from you gents as to how you'd like me to proceed in the near term...

@Sean,
Since you wrote the 3M driver (and I'm basing parts of mine on yours), I don't want to step on your toes.  Do you want to claim custodianship over the 3M driver?  I can commit my changes against #2243 in a non-conflicting way, and you can decide if you like what you see, and how you'd like to go forward.  Or I can post code into this thread or Trac or ...

@Thom,
I'm presuming that two devices can't have the same range of MAC addresses for DHCP, correct?  Would committing my code into the currently broken 2243 be a problem?

Thanks for your time, gents!

/Mike

70
Users / Re: Need some dedicated testers.
« on: August 24, 2013, 02:49:13 am »
The reason being, if I am tunneling in through an outside device into the router, I map some high non-root port number to access the box.   Mapping port 80 is a little tricky, since you need to have permissions.

You can use port redirection on a router, or iptables to redirect from your high port to port 80, but that would be a security risk with no authentication.  A VPN would be more secure; that's how I use RoamingOrb on iDevices.

HTH!

/Mike

71
Users / Re: Install Hyper-V drivers on mce
« on: August 11, 2013, 05:34:45 am »
not to start a fruitless argument...but our hyper-v works great..looking forward to get server2012 r2
but I'd be interested to hear, what makes the others soo much easier...perhaps send me a pm?
Maverick,

No worries... I don't get into flame wars over stuff.  I'll keep it in the thread, since the virtualization question comes up fairly often.  Hyper-V has it's uses and place, and I'm glad it works for you.  It'll get your teams used to all the pros and cons of virtualization, and will help develop skills and knowledge for when you grow into a real hypervisor  ;). just joshing with ya!

I'll speak from my own experiences and point of view, for what it's worth.  There's a place and purpose for all the virtualization solutions, and it's up to the consumers of those solutions to decide what works best for their particular needs.

On the provisioning front, the fact that the KVM VirtIO drivers and VMware's vmxnet3 and pvscsi drivers are included in the Kernel and the init RAM disk (initrd), means that using standard distribution media, you can pxe boot Linux instances and build/provision using a variety of orchestration tools on those hypervisors.  With Hyper-V, you either have to build a template that includes the Hyper-V para-virtualized drivers, or spin your own initrd for pxe booting.

Linux's block I/O generally outperforms Windows.  We've seen many cases of Windows performing better virtualized on Linux vs Windows on bare metal, because the virtualized instance is taking advantage of the para-virtualized hooks into the host's block I/O and disk cache.  So, in the case of Hyper-V, it's going to be limited by Window's I/O subsystems.

On the management side, the management suit for VMware is considerably more full featured than Hyper-V (and most KVM based ones as well, with the exception of the z/Enterprise suite for the z/BX blades).  Complex multi-tier applications in data centers often need a lot of policy-based rules for managing requirements and services.  Hyper-V can't handle the full gambit...
  • Host affinity rules to keep instances running on licensed hosts and processors
  • Host anti-affinity rules to keep cluster or tier members off the same hosts
  • Workload QoS
  • other OS support (Solaris x86, WinNT)
  • Stuff like Site Recovery Manager
  • scalability, like hundreds of hosts and thousands of VM's

That's just part of what we see where I am, and I deal with 5 hypervisors and 4 hardware architectures as my day gig.  My personal opinion is that Hyper-V is good for Windows on Windows virtualization, and small business/small data centre environments.  It could work for home use for those who are familiar with it, and can get the licensing at a decent price.

That's my nickel's worth...  HTH!

/Mike

72
Users / Re: Install Hyper-V drivers on mce
« on: August 11, 2013, 04:40:44 am »
,I have a Prolaint DL385 G2 fully loaded and  I trying to save POWER cost by running my virtual systems and shutting down several of my machines i have  ruining, combing them into one
Presuming this is a multi-proc Xeon based system, with 64GB of RAM or more, you can virtualize a fair number of systems.  G2's are older systems, and fairly power hungry, so depending on how many systems (and what types), you may or may not save power...

Disk I/O may be the limiting factor to how many systems you're able to virtualize.

HTH!

/Mike

73
Users / Re: Dimming LED and CFL light bulbs?
« on: August 08, 2013, 06:02:08 am »
I'm using the CREE bulbs from Home Depot with Insteon Dimmers, and they work quite well.

Note: the 40W equivalents are perfect for bedrooms and multiple-bulb fixtures as they are quite bright.  The 60W equivalents are very bright, and are suitable for single bulb fixtures and task lighting.  I find that multiple 60W equivalent bulbs are actually too bright, and don't give me enough dynamic range on the dimmers.

Overall, very satisfied with both the CREE bulbs and the Insteon dimmers.

/Mike

74
Users / Re: Install Hyper-V drivers on mce
« on: August 06, 2013, 05:48:02 am »
Another option would be to install Ubuntu 12.04 LTS on the bare metal, and use the included KVM hypervisor and virtual-manager to manage the OS's.

I run a Debian 7 (Wheezy) based KVM virtual host at home, which runs 5 VM's on a regular basis (I only have 8GB RAM in this system, so that's the limiting factor).  Works well, and I use the VirtIO drivers on everything, including LMCE and a WHS 2011 instance (which is based on Server 2008 R2).

I've had the misfortune of dealing with Hyper-V at work, and it's just a royal pain in the a$$.  Especially the drivers and their version of para-virtualization.  KVM and VMware are soooo much easier to deal with for Linux guests, and so are PowerVM and z/VM (believe it or not).

So, I'd recommend ditching Hyper-V, and laying down Ubuntu Server LTS or something like Proxmox.  You'll have a much easier time virtualization Windows on KVM than you ever will doing Linux on Hyper-V.  Especially older versions like Ubuntu 10.04.

HTH!

/Mike
(Who does virtualization as his day gig).

75
Users / Re: At Home with LinuxMCE: Photos
« on: August 01, 2013, 03:42:05 am »
Yeah, my photos and videos these days are trying to highlight a clean aesthetic, as much as I can. Now that I have a decent house for the first time in a _very_ long time, I am trying to make the most of it.

Thom,

Just wait... 6 months from now, that clean aesthetic will have disappeared under toys, stuffies, activity centers, and other kid stuff.  And then the arts and crafts phases will come in a few years...   ;)

/Mike (father of 2 active and creative kids)

Pages: 1 ... 3 4 [5] 6 7 ... 13