Skip to content

Commit

Permalink
v1.1-beta.519
Browse files Browse the repository at this point in the history
- Fixed bug that was causing programs features randomly disappear
- Fixed wrong mime-type sent for web fonts (MIG)
- Thermostat widget restyling and fix to set point bug when using fahrenheit unit
- Added "Programs.Get" API command
  • Loading branch information
genemars committed May 1, 2016
1 parent f23d8d1 commit eedfbf3
Show file tree
Hide file tree
Showing 17 changed files with 1,086 additions and 642 deletions.
22 changes: 21 additions & 1 deletion BaseFiles/Common/groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@
<Address>3</Address>
<Domain>HomeAutomation.Demo</Domain>
</ModuleReference>
<ModuleReference>
<Address>Simulate</Address>
<Domain>HomeGenie.UI.Separator</Domain>
</ModuleReference>
<ModuleReference>
<Address>401</Address>
<Domain>HomeAutomation.HomeGenie.Automation</Domain>
</ModuleReference>
<ModuleReference>
<Address>402</Address>
<Domain>HomeAutomation.HomeGenie.Automation</Domain>
</ModuleReference>
<ModuleReference>
<Address>403</Address>
<Domain>HomeAutomation.HomeGenie.Automation</Domain>
</ModuleReference>
<ModuleReference>
<Address>404</Address>
<Domain>HomeAutomation.HomeGenie.Automation</Domain>
</ModuleReference>
</Modules>
</Group>
<Group>
Expand Down Expand Up @@ -80,4 +100,4 @@
</ModuleReference>
</Modules>
</Group>
</ArrayOfGroup>
</ArrayOfGroup>
Binary file modified BaseFiles/Common/homegenie_factory_config.zip
Binary file not shown.
3 changes: 1 addition & 2 deletions BaseFiles/Common/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
<link rel="stylesheet" href="css/homegenie.min.css" />
<link rel="stylesheet" href="css/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css" />
<!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" / -->


<!-- Isotope -->
<script src="js/isotope.pkgd.min.js"></script>
<script src="js/packery-mode.pkgd.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions BaseFiles/Common/html/js/api/homegenie.webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,11 @@ HG.WebApp.Utility.FormatTemperature = function (temp) {
if (temperatureUnit != 'C' && (temperatureUnit == 'F' || HG.WebApp.Locales.GetDateEndianType() == 'M')) {
// display as Fahrenheit
temp = Math.round((temp * 1.8 + 32) * 10) / 10;
displayvalue = (temp * 1).toFixed(1) + '&#8457;';
displayvalue = (temp * 1).toFixed(1) + '&deg;'; //'&#8457;';
} else {
// display as Celsius
temp = Math.round(temp * 10) / 10;
displayvalue = (temp * 1).toFixed(1) + '&#8451;';
displayvalue = (temp * 1).toFixed(1) + '&deg;'; //'&#8451;';
}
return displayvalue;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,99 +1,113 @@
<div data-ui-field="widget" class="ui-overlay-shadow ui-corner-all ui-body-inherit hg-widget-a">
<div class="ui-header ui-bar-inherit" style="padding-left:5px;padding-right:5px;font-weight:normal;">
<img data-ui-field="icon" style="height:36px;margin:2px;margin-right:4px" align="left" src="pages/control/widgets/homegenie/generic/images/temperature.png" />
<div data-ui-field="name" style="margin-right:68px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14pt">Name</div>
<div data-ui-field="description" style="margin-right:68px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:8pt">loading...</div>
<a data-ui-field="options" data-role="button" data-icon="edit" data-iconshadow="false" data-iconpos="notext" class="ui-btn-right" style="margin-right:40px">Options</a>
<a data-ui-field="settings" data-role="button" data-icon="gear" data-iconshadow="false" data-iconpos="notext" class="ui-btn-right">Features</a>
</div>
<div align="center" data-ui-field="temperature_value" style="font-size:36pt">
22.5&#x2103;
</div>
<div data-ui-field="widget" class="ui-overlay-shadow ui-corner-all ui-body-inherit hg-widget-a" style="height:270px;position:relative;z-index:10;background:none">
<div class="ui-body-inherit ui-corner-all" style="position:absolute;opacity:0.8;z-index:-1;left:0;top:0;right:0;bottom:0"></div>
<div class="ui-header" style="padding-left:5px;padding-right:5px;font-weight:normal;border-top:0">
<img data-ui-field="icon" style="height:36px;margin:2px;margin-right:4px" align="left" src="pages/control/widgets/homegenie/generic/images/temperature.png" />
<div data-ui-field="name" style="margin-right:68px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14pt">Name</div>
<div data-ui-field="description" style="margin-right:68px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:8pt">loading...</div>
<a data-ui-field="options" data-role="button" data-icon="edit" data-iconshadow="false" data-iconpos="notext" class="ui-btn-right" style="margin-right:40px">Options</a>
<a data-ui-field="settings" data-role="button" data-icon="gear" data-iconshadow="false" data-iconpos="notext" class="ui-btn-right">Features</a>
</div>

<div align="center" style="padding:4px;">
<!-- HEAT -->
<div data-ui-field="heat_field" style="margin-bottom:8px;" align="center">
<img src="pages/control/widgets/homegenie/generic/images/therm_heat.png" style="width:32px;height:32px;vertical-align:middle">
heat to <b data-ui-field="heatset_value">21.0</b>
<div data-ui-field="heat_field" style="display:table-cell;padding-left:6px;padding-right:6px">
<i class="fa fa-fire"></i>
<b data-ui-field="heatset_value">21.0</b>
</div>
<!-- COOL -->
<div data-ui-field="cool_field" style="margin-bottom:8px" align="center">
<img src="pages/control/widgets/homegenie/generic/images/therm_cool.png" style="width:32px;height:32px;vertical-align:middle">
cool to <b data-ui-field="coolset_value">23.0</b>
<div data-ui-field="cool_field" style="display:table-cell;padding-left:6px;padding-right:6px">
<i class="fa fa-asterisk"></i>
<b data-ui-field="coolset_value">23.0</b>
</div>
<!-- FAN -->
<div data-ui-field="fan_field" style="margin-bottom:8px" align="center">
<img src="pages/control/widgets/homegenie/generic/images/therm_fan.png" style="width:32px;height:32px;vertical-align:middle">
fan <b data-ui-field="fan_value">AUTO</b>
<div data-ui-field="fan_field" style="display:table-cell;padding-left:6px;padding-right:6px">
<i class="fa fa-refresh"></i>
<b data-ui-field="fan_value">AUTO</b>
</div>
<div data-ui-field="updatetime" style="margin-right:10px;margin-bottom:10px;text-align:right;font-size:10pt"></div>
<div class="ui-footer ui-bar-inherit hg-widget-footer" align="right">
<b style="font-size:11pt;display: table-cell;">&nbsp;Status&nbsp;&nbsp;</b>
<div data-ui-field="operating_value" style="font-size:10pt;display: table-cell;">OFF</div>
<b style="font-size:11pt;display: table-cell;">&nbsp;&nbsp;&nbsp;Mode&nbsp;&nbsp;</b>
<div data-ui-field="mode_value" style="font-size:10pt;display: table-cell;">HEAT</div>
</div>

<div align="center" style="padding:4px">
<div data-ui-field="temperature_value" style="width:120px;font-size:30pt; padding:8px; background: rgba(200,200,200,0.1); border:solid 2px rgba(255,255,255,0.2);display:table-cell;-webkit-border-radius: 20px;-moz-border-radius: 20px;border-radius: 20px;">
22.5&deg;
</div>
</div>

<div align="center" data-ui-field="mode_controls">
<!--span data-locale-id="therm_setmode" style="font-size:8pt;text-transform:uppercase">Operating Mode</span-->
<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<a data-ui-field="mode_off" data-locale-id="therm_off" data-role="button" href="">Off</a>
<a data-ui-field="mode_cool" data-locale-id="therm_cool" data-role="button" href="">Cool</a>
<a data-ui-field="mode_heat" data-locale-id="therm_heat" data-role="button" href="">Heat</a>
<a data-ui-field="mode_auto" data-locale-id="therm_auto" data-role="button" href="">Auto</a>
</div>
</div>

<div align="center" data-ui-field="fan_controls">
<span data-locale-id="therm_fanmode" style="font-size:8pt;text-transform:uppercase">Fan Mode</span>
<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<a data-ui-field="fanmode_on" data-locale-id="fan_on" data-role="button" href="">On</a>
<a data-ui-field="fanmode_auto" data-locale-id="fan_auto" data-role="button" href="">Auto</a>
<a data-ui-field="fanmode_circulate" data-locale-id="fan_circulate" data-role="button" href="">Circulate</a>
</div>
</div>

<div data-ui-field="updatetime" style="margin-right:10px;margin-bottom:10px;text-align:right;font-size:10pt"></div>
<div class="ui-footer hg-widget-footer" align="right" style="border-bottom:0">
<b style="font-size:11pt;display: table-cell;">&nbsp;Status&nbsp;&nbsp;</b>
<div data-ui-field="operating_value" style="font-size:10pt;display: table-cell;">OFF</div>
<b style="font-size:11pt;display: table-cell;">&nbsp;&nbsp;&nbsp;Mode&nbsp;&nbsp;</b>
<div data-ui-field="mode_value" style="font-size:10pt;display: table-cell;">HEAT</div>
</div>
</div>

<!-- widget popups and other ui elements follow -->
<div class="hg-popup-a" data-ui-field="controlpopup" data-position-to="window" data-transition="pop" data-overlay-theme="b">
<a href="#" data-rel="back" data-role="button" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div style="margin:10px">
<!-- BEGIN - COMMON UI PART --->
<table width="100%">
<tr>
<td width="56">
<img data-ui-field="icon" height="56" src="pages/control/widgets/homegenie/generic/images/temperature.png" />
</td>
<td>
<div data-ui-field="group" style="margin:0;margin-left:10px;font-family:Georgia;font-size:11pt;color:gray">Group Name</div>
<h4 data-ui-field="name" style="margin:0;margin-left:10px;">Description</h4>
</td>
<td valign="top">
<div data-ui-field="status" style="margin-top:10px;font-size:11pt;color:gray;" align="right"></div>
</td>
</tr>
</table>
<!-- END - COMMON UI PART --->
<!-- BEGIN - MODULE TYPE SPECIFIC DIVS -->
<div align="center">
<input data-ui-field="level_knob" data-role="none" type="text" class="dial"
data-width="170"
data-height="120"
data-min="40"
data-max="100"
data-step="0.5"
data-gradient="bluered"
data-fgcolor="#CCCCCC"
data-bgcolor="#555555"
data-angleoffset=-125
data-anglearc=250
-data-cursor=true
-data-skin="tron"
data-thickness=".4"
-data-linecap=round
data-displayprevious=true>
</div>
<a href="#" data-rel="back" data-role="button" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div style="margin:10px">
<!-- BEGIN - COMMON UI PART --->
<table width="100%">
<tr>
<td width="56">
<img data-ui-field="icon" height="56" src="pages/control/widgets/homegenie/generic/images/temperature.png" />
</td>
<td>
<div data-ui-field="group" style="margin:0;margin-left:10px;font-family:Georgia;font-size:11pt;color:gray">Group Name</div>
<h4 data-ui-field="name" style="margin:0;margin-left:10px;">Description</h4>
</td>
<td valign="top">
<div data-ui-field="status" style="margin-top:10px;font-size:11pt;color:gray;" align="right"></div>
</td>
</tr>
</table>
<!-- END - COMMON UI PART --->
<!-- BEGIN - MODULE TYPE SPECIFIC DIVS -->
<div align="center">
<input data-ui-field="level_knob" data-role="none" type="text" class="dial"
data-width="170"
data-height="120"
data-min="40"
data-max="100"
data-step="0.5"
data-gradient="bluered"
data-fgcolor="#CCCCCC"
data-bgcolor="#555555"
data-angleoffset=-125
data-anglearc=250
-data-cursor=true
-data-skin="tron"
data-thickness=".4"
-data-linecap=round
data-displayprevious=true>
</div>

<div align="center">
<span data-locale-id="therm_setpoint">Set Point</span>
<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<a data-ui-field="cool_setpoint" data-locale-id="therm_cool" data-role="button" href="">Cool</a>
<a data-ui-field="heat_setpoint" data-locale-id="therm_heat" data-role="button" href="">Heat</a>
</div>
<span data-locale-id="therm_fanmode">Fan Mode</span>
<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<a data-ui-field="fanmode_on" data-locale-id="fan_on" data-role="button" href="">On</a>
<a data-ui-field="fanmode_auto" data-locale-id="fan_auto" data-role="button" href="">Auto</a>
<a data-ui-field="fanmode_circulate" data-locale-id="fan_circulate" data-role="button" href="">Circulate</a>
</div>
<span data-locale-id="therm_setmode">Operating Mode</span>
<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<a data-ui-field="mode_off" data-locale-id="therm_off" data-role="button" href="">Off</a>
<a data-ui-field="mode_cool" data-locale-id="therm_cool" data-role="button" href="">Cool</a>
<a data-ui-field="mode_heat" data-locale-id="therm_heat" data-role="button" href="">Heat</a>
<a data-ui-field="mode_auto" data-locale-id="therm_auto" data-role="button" href="">Auto</a>
</div>
</div>
<!-- END - MODULE TYPE SPECIFIC DIVS -->
<br />
<div align="center">
<span data-locale-id="therm_setpoint">Set Point</span>
<div align="center">
<div style="display:table-cell" data-mini="true"><a data-ui-field="cool_setpoint" data-locale-id="therm_cool" data-role="button" href="">Cool</a></div>
<div style="display:table-cell" data-mini="true"><a data-ui-field="heat_setpoint" data-locale-id="therm_heat" data-role="button" href="">Heat</a></div>
</div>
</div>
</div>
<!-- END - MODULE TYPE SPECIFIC DIVS -->
<br />
</div>
</div>
Loading

0 comments on commit eedfbf3

Please sign in to comment.