[mh] Are we due for another major release

Giles Godart-Brown <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
There has been quite a bit of activity in MH recently , notably on @INC, 
HTML and MQTT devices I was wondering if there is an appetite for 
another major release?

If so I have created a number of utility subroutines  that others may 
find useful, please see below. I expect that at least some of these are 
already buried in the MH core, but I wonder if we should do a call to 
the community for contributions before we do another release

Regards

Giles

<snip_giles_utilities>

Core routines;

trim, ltrim, rtrim

switch_logs - archives print.log, speak.log and error.log to 
print.log.backupn (n=1-4) etc.

print_process_log- add the content of a sub-process log to the print 
log, passed the name of the file to print prefixes each entry with 
[filename]

get_last_idle_time_by_name- return the idle time before the most recent 
change by name, passed the name of an object

get_last_idle_time - return the idle time before the most recent change, 
passed an object

get_state_by_name - returns the state of the object, passed an object name

get_last_state_by_name - returns the previous state of the object, 
passed an object name

get_last_state - returns the previous state of the object, passed an object

is_member_of_group  - returns 0 or 1 depending if this device is a 
member of the group, passed name of the object and the group object

is_member_of_group_name - returns 0 or 1 depending if this device is a 
member of the group, passed name of the object and the name of the group

change_all_devices_in_group - change the state of all devices in a group 
passed the group name, the new status, and a set_by message only changes 
the state of those objects that are not in the new state already

Web routines;

get_status - get_status(item_name)  returns the status and date last 
changed  of device named item_name, called like 
http://mhip_port/SET;&get_status(Outside_temp)

get_uptime - returns the Misterhouse uptime called like 
http://mhip_port/SET;&get_uptime

html_comment - passed text and returns it wrapped  in <!-- --> to be 
used as a comment in the web page (used for debugging)

get_group_members - passed a group and returns returns a comma separated 
list of group members, called like 
http://mhip_port/SET;&get_group_members("MQTT_device")


</snip_giles_utilities>

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.