mh_temp.user_code is all of your code files (common, user, and mht) merged together into one.

Sorry, I am only partially following the touchscreen work, what are you trying to do?

On Thu, Jan 9, 2014 at 9:27 PM, Dan Bemowski <> wrote:
The object variable in the javascript code to show the mode is
"$mode_occupied".  I did some grepping around and found that that gets
set in "mh/data/mh_temp.user_code" and looks like it is used in a few
different parts of the system.  If there is a way that I can access
$config_params through JSON calls or through the websockets module once
Sean M. figures that out, I could set it up so that the variable that
the touchscreen interface uses for "System Mode" could then be
configurable.  Making some other icons to use for those modes is the
EASY part.

Since that is set in mh_temp.user_code, maybe someone can pipe in on how
the user_code file is generated.  Maybe that is already something that
is configurable and I just don't know it.  After all, I am still pretty
new to MH.


On Thu, 2014-01-09 at 22:45 -0600, Joel Davidson wrote:
> Hi Dan-
> Finally had time to look.  I've got this in my code:
> $mode           = new Generic_Item;   # current operating mode
> $mode          -> set_states('home', 'sleep', 'away');
> but I think there are already similar modes defined someplace.
> Perhaps someone else would know the answer to that.
> I was new to perl when I started using mh, and I've never gone
> back and rewritten some of the code that probably should be
> cleaned up.  Looking at the datestamps on the files, I see that
> some of my code hasn't been touched in more than 10 years.
> Joel
> On Wed, 8 Jan 2014, it would appear that Dan Bemowski wrote:
> > Joel,
> >
> > How do you toggle between these modes?  Where can I find them on my
> > system?  Are these modes built in to MH or are they ones you created?
> >
> > Dan
> >
> > On Wed, 2014-01-08 at 23:12 -0600, Joel Davidson wrote:
> >> Dan-
> >>
> >> How easy is it to add another mode to the 'system mode' screen (or
> >> change the modes that are there)?
> >>
> >> My system is set up with home, away, and sleep.  I don't differentiate
> >> between work and vacation, since I'm not home for either of them.  Is
> >> this something that will be user-configurable?  Thanks.
> >>
> >> Joel
> >>

CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
To unsubscribe from this list, go to: