Skip to content

Commit 2bd9381

Browse files
authored
Merge pull request #432 from mycontroller-org/development
Version 1.1.0 merge from development branch
2 parents 07c3a22 + 0a418c8 commit 2bd9381

File tree

104 files changed

+2550
-1158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+2550
-1158
lines changed

README.adoc

+18-18
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ Development: image:https://travis-ci.org/mycontroller-org/mycontroller.svg?branc
1919

2020
== About
2121

22-
*MyController.org* is automation controller for home, office or any place.
23-
Primarly this project started to support http://www.mysensors.org/[MySensors]. But later it expands support to other network also. Considered system resources in mind on development, as a outcome even we can run it on Raspberry PI (256 MB) very first model.
22+
*MyController.org* is an IoT automation controller for home, office or any place.
23+
Primarly this project was started to support http://www.mysensors.org/[MySensors]. Later it was expanded to support other networks also. MyController.org was designed to run with limited resources. For instance, it can run on the first generation Raspberry Pi.
2424

2525
== Localization
26-
MyController.org supports multiple languages. If you have interest to add/translate your native language for MyController.org send a request on https://www.transifex.com/mycontrollerorg/multi-locale/[Transifex MyController.org locale project]
26+
MyController.org supports multiple languages. If you are interested in providing a translation for your native language, send a request via https://www.transifex.com/mycontrollerorg/multi-locale/[Transifex MyController.org locale project]
2727

28-
== System Requirement
28+
== System Requirements
2929

30-
MyController.org is a very lightweight server, It required very less resource, believe me ;)
30+
MyController.org is a very lightweight server. Its resource requirements are modest:
3131

3232
* Disk : ~100 MB (may require more space, when we store metrics data for long time)
3333
* Memory(RAM) : 256 MB
3434
* Java : 1.8 or later
3535

3636
===== Supported Platforms (tested)
37-
MyController.org is java based application server. We can run it in any platform where Java support is available.
37+
MyController.org is a Java-based application server. It can run on any platform where Java support is available.
3838

3939
- Linux
4040
- Windows
4141
- Orange PI
42-
- Raspberry PI (Oracle Java recommend)
42+
- Raspberry PI (Oracle Java recommended)
4343

4444
== MyController and MySensors Setup
4545

@@ -53,21 +53,21 @@ image::extra/images/MyController-MySensors-RF.png[MyController and MySensors se
5353

5454
====== Configuration
5555

56-
Extract downloaded bundle where exactly do you want to run. Configuration files located in `mycontroller/conf`
56+
Extract the downloaded bundle in the directory where you want it to run. The configuration files are located in `mycontroller/conf`
5757

5858
File: `mycontroller.properties`
5959

60-
*Temporary file*
60+
*Temporary files*
6161
----
6262
mcc.tmp.location=tmp/ # <1>
6363
----
64-
<1> You can change default location and file name. This file used as server temporery location. Used for the operation such as backup, restore, etc.,
64+
<1> You can change the default location and file name. This directory is used as a temporary location for operations such as backup, restore, etc.
6565

6666
*Database Configuration*
6767
----
6868
mcc.db.h2db.location=../conf/mycontroller # <1>
6969
----
70-
<1> You can change default location and file name. File will be stored with the file extension `.h2.db`. Do not add file extension.
70+
<1> You can change the default location and file name. The database file will be stored with the extension `.h2.db`. Do not add file extension to this property.
7171

7272
*Web server configuration*
7373
----
@@ -80,10 +80,10 @@ mcc.web.ssl.keystore.password=mycontroller # <5>
8080
mcc.web.ssl.keystore.type=JKS # <5>
8181
----
8282

83-
<1> bind interface address. by default it will bind with all the available interface.
84-
<2> Enable/disable https. Only one protocol supported at a time. true - `https`, false - `http`.
83+
<1> Bind interface address. 0.0.0.0 means it will bind to all available interfaces.
84+
<2> Enable/disable https. Only one protocol is supported at a time. true - `https`, false - `http`.
8585
<3> Port number of `http/https` to access MyController.org server.
86-
<4> web files location, no need to touch this one.
86+
<4> Web files location, no need to touch this one.
8787
<5> If `https` is enabled these fields are mandatory.
8888

8989
Default URL: `https://<ip>:8443` (ex: `https://localhost:8443`)
@@ -102,11 +102,11 @@ mcc.mqtt.broker.websocket.port=7080 # <4>
102102
mcc.mqtt.broker.persistent.store=../conf/moquette/moquette_store.mapdb # <5>
103103
----
104104

105-
<1> Enable/disable inbuilt MQTT broker. by default it will be enabled. `true`- enabled, `false` - disabled
106-
<2> bind interface address. by default it will bind with all the available interface.
105+
<1> Enable/disable builtin MQTT broker. By default it is enabled. `true`- enabled, `false` - disabled
106+
<2> Bind interface address for the MQTT broker. By default it will bind to all available interfaces.
107107
<3> MQTT broker port
108-
<4> websoicket port
109-
<5> internal use. no need to touch this one.
108+
<4> Websoicket port
109+
<5> Internal use. no need to touch this one.
110110

111111

112112
*Logger configuration*

dist/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.mycontroller.standalone</groupId>
2323
<artifactId>mycontroller-standalone-parent</artifactId>
24-
<version>1.0.0.Final</version>
24+
<version>1.1.0.Final</version>
2525
</parent>
2626

2727
<artifactId>mycontroller-dist</artifactId>
@@ -32,7 +32,7 @@
3232
<properties>
3333
<mc.dist.finalName>${project.artifactId}-standalone-${project.version}</mc.dist.finalName>
3434
<mc.dist.jar.finalName>${mc.dist.finalName}-single</mc.dist.jar.finalName>
35-
<mc.gui.version>6</mc.gui.version>
35+
<mc.gui.version>9</mc.gui.version>
3636
</properties>
3737

3838
<dependencies>

dist/src/main/package/www/app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,8 @@ myControllerModule.filter('mcResourceRepresentation', function() {
768768
if(text === undefined){
769769
return undefined;
770770
}
771-
return text.replace(/>>/g, '<i class="fa fa-chevron-right"></i>')
771+
return text.replace(/>>>/g, '<i class="fa fa-forward"></i>')
772+
.replace(/>>/g, '<i class="fa fa-chevron-right"></i>')
772773
.replace(/\[RG\]:/g, '<i class="pficon pficon-replicator fa-lg mc-margin-icon"></i> ')
773774
.replace(/\[G\]:/g, '<i class="fa fa-plug"></i> ')
774775
.replace(/\[N\]:/g, '<i class="fa fa-sitemap"></i> ')

dist/src/main/package/www/controllers/adf-widgets/adf-myc-sunrisetime/adf-myc-sunrise.js

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ angular.module('adf.widget.myc-sunrisetime', [])
5353
mycSunriseTime.sunsetTime = $filter('date')(response.sunsetTime, mchelper.cfg.timeFormatWithoutSeconds, mchelper.cfg.timezone);
5454
mycSunriseTime.latitude = response.latitude;
5555
mycSunriseTime.longitude = response.longitude;
56+
mycSunriseTime.name = response.name;
5657
mycSunriseTime.isSyncing = false;
5758
if(mycSunriseTime.showLoading){
5859
mycSunriseTime.showLoading = false;

dist/src/main/package/www/controllers/adf-widgets/adf-myc-sunrisetime/view.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
<div ng-hide="mycSunriseTime.showLoading">
2424
<div class="adf-mycsr">
2525
<div class="adf-mycsr-time"><i class="wi wi-sunrise"></i>{{mycSunriseTime.sunriseTime}}<i class="wi wi-sunset"></i>{{mycSunriseTime.sunsetTime}}</div>
26-
<div class="adf-mycsr-location"><i class="fa fa-map-marker"></i>{{mycSunriseTime.latitude}}, {{mycSunriseTime.longitude}}</div>
26+
<div class="adf-mycsr-location"><i class="fa fa-map-marker"></i>{{mycSunriseTime.name}}</div>
2727
</div>
2828
</div>

dist/src/main/package/www/controllers/gateways.js

+4
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,10 @@ myControllerModule.controller('GatewaysControllerAddEdit', function ($scope, Typ
296296
$scope.gateway.url='';
297297
$scope.gateway.authorizedUser='';
298298
$scope.gateway.pollFrequency='5';
299+
}else if($scope.gateway.type === 'Weather Underground'){
300+
$scope.gateway.apiKey='';
301+
$scope.gateway.location='autoip';
302+
$scope.gateway.pollFrequency='15';
299303
}
300304
};
301305

dist/src/main/package/www/controllers/operations.js

+2
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ myControllerModule.controller('OperationsControllerAddEdit', function ($scope, $
242242
return TypesFactory.getRuleDefinitions();
243243
}else if(resourceType === 'Timer'){
244244
return TypesFactory.getTimers();
245+
}else if(resourceType === 'Forward payload'){
246+
return TypesFactory.getForwardPayloads();
245247
}else if(resourceType === 'Value'){
246248
$scope.updateThresholdValueTypes($scope.item.resourceType);
247249
return null;

dist/src/main/package/www/languages/mc_locale_gui-ca_es.json

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"ACTIONS": "Accions",
1212
"ACTION_BOARD": "Tauler d'accions",
1313
"ACTIVE": "Actiu",
14+
"ADD": "Add",
1415
"ADD_AN_ENTRY": "Afegir entrada",
1516
"ADD_EXTERNAL_SERVER": "Add external server",
1617
"ADD_FIRMWARE": "Agefir firmware",
@@ -320,6 +321,7 @@
320321
"LOADED": "Carregat",
321322
"LOADING": "Carregant...",
322323
"LOCATION": "Localització",
324+
"LOCATION_IP": "Location IP",
323325
"LOCATION_NAME": "Location name",
324326
"LOGIN_MESSAGE": "Missatge de Login",
325327
"LOGS": "Logs",
@@ -334,6 +336,7 @@
334336
"MAX": "Max",
335337
"MAXIMUM_BLOCK_SIZE": "Mida màxima de bloc",
336338
"MEASUREMENT": "Measurement",
339+
"MERGE_STATIONS": "Merge stations",
337340
"MESSAGE": "Misatge",
338341
"MESSAGE_CONTAINS": "Contingut del missatge",
339342
"MESSAGE_TYPE": "Tipus de missatge",
@@ -363,6 +366,7 @@
363366
"NETWORK": "Xarxa",
364367
"NETWORK_TYPE": "Tipus de xarxa",
365368
"NEVER": "Mai",
369+
"NEW": "New",
366370
"NEW_DASHBOARD": "Nova dashboard",
367371
"NEW_PASSWORD": "Nou password",
368372
"NO": "No",

dist/src/main/package/www/languages/mc_locale_gui-cs_cz.json

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"ACTIONS": "Akce",
1212
"ACTION_BOARD": "Panel akcí",
1313
"ACTIVE": "Aktivní",
14+
"ADD": "Add",
1415
"ADD_AN_ENTRY": "Přidat záznam",
1516
"ADD_EXTERNAL_SERVER": "Přidat externí server",
1617
"ADD_FIRMWARE": "Přidat firmware",
@@ -320,6 +321,7 @@
320321
"LOADED": "Nahráno",
321322
"LOADING": "Nahrávám...",
322323
"LOCATION": "Umístění",
324+
"LOCATION_IP": "Location IP",
323325
"LOCATION_NAME": "Location name",
324326
"LOGIN_MESSAGE": "Přihlašovací zpráva",
325327
"LOGS": "Logy",
@@ -334,6 +336,7 @@
334336
"MAX": "Max",
335337
"MAXIMUM_BLOCK_SIZE": "Maximální velikost bloku",
336338
"MEASUREMENT": "Measurement",
339+
"MERGE_STATIONS": "Merge stations",
337340
"MESSAGE": "Zpráva",
338341
"MESSAGE_CONTAINS": "Zpráva obsahuje",
339342
"MESSAGE_TYPE": "Typ zprávy",
@@ -363,6 +366,7 @@
363366
"NETWORK": "Síť",
364367
"NETWORK_TYPE": "Typ sítě",
365368
"NEVER": "Nikdy",
369+
"NEW": "New",
366370
"NEW_DASHBOARD": "Nový panel",
367371
"NEW_PASSWORD": "Nové heslo",
368372
"NO": "Ne",

0 commit comments

Comments
 (0)