cant get mycontroller app to open



  • Hello, first off noob-allert.

    I installed java 1.8 and unzipped the mycontroller download. I want to connect to a mysensors gateway 192.168.1.4:5003 so i made changes to mycontroller properties as follows:

    #
    # Copyright 2015-2018 Jeeva Kandasamy (jkandasa@gmail.com)
    # and other contributors as indicated by the @author tags.
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #    http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    
    #========================================================================
    # Mycontroller.org properties
    # If you change any settings in this file,
    # Mycontroller.org server restart is required, to apply new configuration
    #========================================================================
    
    #========================================================================
    # Application temporary location
    #========================================================================
    mcc.tmp.location=tmp/
    
    #========================================================================
    # Resources location
    #========================================================================
    mcc.resources.location=../conf/resources/
    
    #========================================================================
    # Database settings
    # It is highly recommended  to take a backup of this db on upgrade.
    # MyController only supports database backup for H2DB(only on same host)
    # For other databases users has to manage backup and restore of database
    # mcc.db.backup.include: Include database backup along with
    # MyController backup. Supports only for H2DB on same host.
    # If MyController is running on embedded database mode, this parameter
    # will be ignored and backup includes database also.
    # mcc.db.type: Select database types
    # Supported types: H2DB_EMBEDDED, H2DB, MYSQL, POSTGRESQL, MARIADB
    #========================================================================
    mcc.db.backup.include=true
    
    #H2DB Embedded settings
    mcc.db.type=H2DB_EMBEDDED
    mcc.db.url=jdbc:h2:file:../conf/mycontroller;MVCC=TRUE
    mcc.db.username=mycontroller
    mcc.db.password=mycontroller
    
    # H2DB on TCP settings - Sample
    #mcc.db.type=H2DB
    #mcc.db.url=jdbc:h2:tcp://localhost//tmp/mycontroller;MVCC=TRUE
    #mcc.db.username=mycontroller
    #mcc.db.password=mycontroller
    
    # MariaDB settings - Sample
    #mcc.db.type=MARIADB
    #mcc.db.url=jdbc:mariadb://127.0.0.1:3306/mycontroller
    #mcc.db.username=mycontroller
    #mcc.db.password=mycontroller
    
    # PostgreSQL settings - Sample
    #mcc.db.type=POSTGRESQL
    #mcc.db.url=jdbc:postgresql://localhost:5432/mycontroller
    #mcc.db.username=mycontroller
    #mcc.db.password=mycontroller
    
    # MySQL settings - Sample
    #mcc.db.type=MYSQL
    #mcc.db.url=jdbc:mysql://localhost:3306/mycontroller
    #mcc.db.username=mycontroller
    #mcc.db.password=mycontroller
    
    #========================================================================
    # Web Application server configuration
    # bind.address - interface to bind. 0.0.0.0 - all available interfaces
    # You can use either http or https, enable.https - https is enabled
    # if https is enabled specify keystore file details
    # It is highly recommended to use https also change default keystore file
    # Web files, will be located under ../www by default
    # For web used angularjs
    #========================================================================
    mcc.web.bind.address=192.168.1.4
    mcc.web.enable.https=true
    mcc.web.http.port=5003
    mcc.web.file.location=../www/
    mcc.web.ssl.keystore.file=../conf/keystore.jks
    mcc.web.ssl.keystore.password=mycontroller
    mcc.web.ssl.keystore.type=JKS
    
    
    #========================================================================
    # ** MQTT broker configuration **
    # broker.enabled - Enable/Disable MQTT broker from back-end
    # ** Other settings are available on the GUI **
    # ** If MQTT broker disabled here. Cannot enable it from GUI. **
    #========================================================================
    mcc.mqtt.broker.enabled=true
    
    #========================================================================
    # MyController persistent stores location.
    # This store used to keep off-heap data.
    # It keeps data like messages queue, MQTT broker data, etc.
    # If you want to keep execute old data that not processed on shutdown
    # set false on mcc.clear.message.queue.on.start
    # If you want to keep smart sleep messages on MyController reboot,
    # set false on mcc.clear.smart.sleep.msg.queue.on.start
    #========================================================================
    mcc.persistent.stores.location=../conf/persistent_stores/
    mcc.clear.message.queue.on.start=true
    mcc.clear.smart.sleep.msg.queue.on.start=true
    
    #========================================================================
    # MyController mDNS service settings
    # Enable or disable mDNS service
    #========================================================================
    mcc.mdns.service.enable=false
    
    #logger configuration - logback.xml
    

    when i double click /bin/start a console window opens and emediately closes. The app itself doesn't open at all. Is there something wrong with my configuration? I do have openhab connected to the same ethernet gateway, could this be the problem?

    Thanks



  • @aliasjim Thank you for your interest with MyController 🙂

    mysensors gateway 192.168.1.4:5003

    Gateway configurations should be configured on GUI. mycontroller.properties specifically for MyController server related configurations. You can use default settings,
    you can revert these settings,

    mcc.web.bind.address=0.0.0.0
    mcc.web.enable.https=true
    mcc.web.http.port=8443
    mcc.web.file.location=../www/
    mcc.web.ssl.keystore.file=../conf/keystore.jks
    mcc.web.ssl.keystore.password=mycontroller
    mcc.web.ssl.keystore.type=JKS
    

    Open you command line and cd to MyController unzipped location and execute bin/start.bat. will display if you face any error.
    After successful run you can open UI: https://localhost:8443 (accept self signed certificate) and default user name password admin / admin. To add new gateway kindly read user manual.



  • Thank you very much i got it running now. Is it possible to use mycontroller for updating firmware OTA while keeping the gateway connected to a homeautomation like openhab?
    I use openhab to read my sensordata but it would be nice if i can use FOTA to update the nodes at the same time.
    Thanks



  • @aliasjim I never tested with two kinds of a controller, May be possible. MQTT might fit for this requirement.
    Other users might experience this setup.


Log in to reply
 

Suggested Topics

2
Online

503
Users

421
Topics

2.6k
Posts