Skip to content

Commit

Permalink
Bump version to 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
salbahra committed Jun 7, 2020
1 parent 5fc3af6 commit 2185c6f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions config.xml
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="102" id="com.albahra.sprinklers" version="2.1.10" versionCode="102" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget android-versionCode="103" id="com.albahra.sprinklers" version="2.2.0" versionCode="103" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>OpenSprinkler</name>
<description>
Designed to allow intuitive control of the OpenSprinkler irrigation controller.
Expand Down Expand Up @@ -41,7 +41,7 @@
<string>Your camera is used to provide an image for your stations.</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="CFBundleShortVersionString">
<string>1893</string>
<string>18103</string>
</edit-config>
<splash height="480" src="res/ios/screens/startup.png" width="320" />
<splash height="960" src="res/ios/screens/startup-retina.png" width="640" />
Expand Down Expand Up @@ -120,7 +120,7 @@
<icon src="res/osx/icons/icon-32.png" width="32" />
<icon src="res/osx/icons/icon-16.png" width="16" />
<edit-config file="*-Info.plist" mode="merge" target="CFBundleVersion">
<string>1893</string>
<string>18103</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="CFBundleIdentifier">
<string>com.albahra.Sprinklers.osx</string>
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,7 +1,7 @@
{
"name": "OpenSprinkler",
"description": "Designed to allow intuitive control of the OpenSprinkler irrigation controller.",
"version": "2.1.10",
"version": "2.2.0",
"manifest_version": 2,
"app": {
"background": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"phonegap": {
"id": "1371093"
},
"version": "2.1.10",
"version": "2.2.0",
"description": "Designed to allow intuitive control of the OpenSprinkler irrigation controller.",
"main": "index.html",
"scripts": {
Expand Down
36 changes: 18 additions & 18 deletions www/js/main.js
Expand Up @@ -2575,7 +2575,7 @@ function showEToAdjustmentOptions( button, callback ) {
baseETo: 0,
elevation: 600
},
unescapeJSON(button.value)
unescapeJSON( button.value )
);

if ( isMetric ) {
Expand Down Expand Up @@ -3287,7 +3287,7 @@ function debugWU() {
popup += ( typeof controller.settings.wterr === "number" ? "<tr><td>" + _( "Last Response" ) + "</td><td>" + getWeatherError( controller.settings.wterr ) + "</td></tr>" : "" );
popup += "</table></div>";

if ( controller.settings.wtdata && (typeof controller.settings.wtdata.wp === "string" || typeof controller.settings.wtdata.weatherProvider === "string") ) {
if ( controller.settings.wtdata && ( typeof controller.settings.wtdata.wp === "string" || typeof controller.settings.wtdata.weatherProvider === "string" ) ) {
popup += "<hr>";
popup += makeAttribution( controller.settings.wtdata.wp || controller.settings.wtdata.weatherProvider );
}
Expand Down Expand Up @@ -4056,7 +4056,7 @@ function showOptions( expandItem ) {
"</label>";
}

if ( typeof controller.settings.ifkey !== "undefined" || typeof controller.settings.mqtt !== "undefined") {
if ( typeof controller.settings.ifkey !== "undefined" || typeof controller.settings.mqtt !== "undefined" ) {
list += "</fieldset><fieldset data-role='collapsible'" +
( typeof expandItem === "string" && expandItem === "integrations" ? " data-collapsed='false'" : "" ) + ">" +
"<legend>" + _( "Integrations" ) + "</legend>";
Expand Down Expand Up @@ -9669,7 +9669,7 @@ var showAbout = ( function() {
"</li>" +
"</ul>" +
"<p class='smaller'>" +
_( "App Version" ) + ": 2.1.10" +
_( "App Version" ) + ": 2.2.0" +
"<br>" + _( "Firmware" ) + ": <span class='firmware'></span>" +
"<br><span class='hardwareLabel'>" + _( "Hardware Version" ) + ":</span> <span class='hardware'></span>" +
"</p>" +
Expand Down Expand Up @@ -11414,40 +11414,40 @@ function showTimeInput( opt ) {
"<div class='ui-content'>" +
( opt.helptext ? "<p class='pad-top rain-desc center smaller'>" + opt.helptext + "</p>" : "" ) +
"<span>" +
"<fieldset class='ui-grid-" + (isMetric ? "a" : "b") + " incr'>" +
"<fieldset class='ui-grid-" + ( isMetric ? "a" : "b" ) + " incr'>" +
"<div class='ui-block-a'>" +
"<a href='#' data-role='button' data-mini='true' data-corners='true' data-icon='plus' data-iconpos='bottom'></a>" +
"</div>" +
"<div class='ui-block-b'>" +
"<a href='#' data-role='button' data-mini='true' data-corners='true' data-icon='plus' data-iconpos='bottom'></a>" +
"</div>" +
(isMetric ? "" : "<div class='ui-block-c'>" +
( isMetric ? "" : "<div class='ui-block-c'>" +
"<a href='#' data-role='button' data-mini='true' data-corners='true' data-icon='plus' data-iconpos='bottom'></a>" +
"</div>") +
"</div>" ) +
"</fieldset>" +
"<div class='ui-grid-" + (isMetric ? "a" : "b") + " inputs'>" +
"<div class='ui-grid-" + ( isMetric ? "a" : "b" ) + " inputs'>" +
"<div class='ui-block-a'>" +
"<input data-wrapper-class='pad_buttons' class='hour dontPad' type='number' pattern='[0-9]*' value='" +
(isMetric ? pad( (opt.minutes / 60 >> 0) % 24 ) + "'>" : ( parseInt( opt.minutes / 60 ) % 12 === 0 ? 12 : parseInt( opt.minutes / 60 ) % 12 ) + "'>") +
( isMetric ? pad( ( opt.minutes / 60 >> 0 ) % 24 ) + "'>" : ( parseInt( opt.minutes / 60 ) % 12 === 0 ? 12 : parseInt( opt.minutes / 60 ) % 12 ) + "'>" ) +
"</div>" +
"<div class='ui-block-b'>" +
"<input data-wrapper-class='pad_buttons' class='minute' type='number' pattern='[0-9]*' value='" +
pad( opt.minutes % 60 ) + "'>" +
"</div>" +
(isMetric ? "" : "<div class='ui-block-c'>" +
( isMetric ? "" : "<div class='ui-block-c'>" +
"<p class='center period'>" + getPeriod() + "</p>" +
"</div>") +
"</div>" ) +
"</div>" +
"<fieldset class='ui-grid-" + (isMetric ? "a" : "b") + " decr'>" +
"<fieldset class='ui-grid-" + ( isMetric ? "a" : "b" ) + " decr'>" +
"<div class='ui-block-a'>" +
"<a href='#' data-role='button' data-mini='true' data-corners='true' data-icon='minus' data-iconpos='bottom'></a>" +
"</div>" +
"<div class='ui-block-b'>" +
"<a href='#' data-role='button' data-mini='true' data-corners='true' data-icon='minus' data-iconpos='bottom'></a>" +
"</div>" +
(isMetric ? "" : "<div class='ui-block-c'>" +
( isMetric ? "" : "<div class='ui-block-c'>" +
"<a href='#' data-role='button' data-mini='true' data-corners='true' data-icon='minus' data-iconpos='bottom'></a>" +
"</div>") +
"</div>" ) +
"</fieldset>" +
"</span>" +
( opt.showSun ? "<div class='ui-grid-a useSun'>" +
Expand Down Expand Up @@ -11478,15 +11478,15 @@ function showTimeInput( opt ) {
val = parseInt( input.val() );

if ( dir === 1 ) {
if ( isHour && ((isMetric && val >= 24) || (!isMetric && val >= 12))) {
if ( isHour && ( ( isMetric && val >= 24 ) || ( !isMetric && val >= 12 ) ) ) {
val = 0;
}
if ( !isHour && val >= 59 ) {
val = -1;
var hour = popup.find( ".hour" ),
hourFixed = parseInt( hour.val() );

if (!isMetric) {
if ( !isMetric ) {
if ( hourFixed === 12 ) {
hourFixed = 0;
}
Expand Down Expand Up @@ -11550,7 +11550,7 @@ function showTimeInput( opt ) {
} else {
var hour = parseInt( popup.find( ".hour" ).val() );

if (!isMetric) {
if ( !isMetric ) {
if ( isPM && hour !== 12 ) {
hour = hour + 12;
}
Expand Down Expand Up @@ -12341,7 +12341,7 @@ function minutesToTime( minutes ) {
hour = 12;
}

return isMetric ? (pad( (minutes / 60 >> 0) % 24 ) + ":" + pad( minutes % 60 )) : (hour + ":" + pad( minutes % 60 ) + " " + period);
return isMetric ? ( pad( ( minutes / 60 >> 0 ) % 24 ) + ":" + pad( minutes % 60 ) ) : ( hour + ":" + pad( minutes % 60 ) + " " + period );
}

function getBitFromByte( byte, bit ) {
Expand Down

0 comments on commit 2185c6f

Please sign in to comment.