• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. cslauritsen
    3. Posts
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 6
    • Groups 0

    Posts

    Recent Best Controversial
    • serial mqtt adapter

      Just wondering, can https://github.com/mycontroller-org/serial2mqtt be used with mycontroller on the same my-sensors gateway? I presume only one thread can read the serial data--but would mycontroller be able to accept the serial data published to mqtt by the serial2mqtt adapter?

      On the other hand, would mycontroller be able to use mqtt to send messages (including firmware updates) via mqtt via serial2mqtt to the serial gateway?

      posted in Developers Zone
      C
      cslauritsen
    • RE: Can't find mc_local when Debugging in Eclipse

      it seems that adding the dist project to the list of project dependencies cleared the problem with loading mc_locale:
      0_1484935965669_upload-fe6ddc99-c493-42ca-862a-a0572bda7774

      posted in Developers Zone
      C
      cslauritsen
    • Can't find mc_local when Debugging in Eclipse

      I'm trying to debug StartApp in eclipse. Here's a snap of the config
      0_1484933540878_upload-e65ffad4-ff5b-47dd-ae3b-7acb47841c71

      Cannot find mc_locale stuff. If I build a distribution and run from there, it works OK. Where are the mc_locale items? Can I add a configuration property to point to them?

      It fails with

      12:25:58.669 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.tmp.location-->c:/tmp/
      12:25:58.674 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.resources.location-->../conf/resources/
      12:25:58.674 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.type-->H2DB_EMBEDDED
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.backup.include-->true
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.url-->jdbc:h2:file:../conf/mycontroller;MVCC=TRUE
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.username-->mycontroller
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.password-->mycontroller
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.file.location-->../www/
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.http.port-->9080
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.enable.https-->false
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.bind.address-->0.0.0.0
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.persistent.stores.location-->../conf/persistent_stores/
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.clear.message.queue.on.start-->true
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.clear.smart.sleep.msg.queue.on.start-->true
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.mdns.service.enable-->false
      12:25:58.676 [main] DEBUG org.mycontroller.standalone.StartApp - Properties are loaded successfuly...
      12:25:58.677 [main] DEBUG org.mycontroller.standalone.StartApp - App Properties: AppProperties(tmpLocation=c:/tmp/, resourcesLocation=../conf/resources/, appDirectory=C:\Users\csl04r\git\mycontroller\modules, dbType=H2DB_EMBEDDED, dbBackupInclude=true, dbUrl=jdbc:h2:file:../conf/mycontroller;MVCC=TRUE, dbUsername=mycontroller, dbPassword=mycontroller, webFileLocation=../www/, isWebHttpsEnabled=false, webHttpPort=9080, webSslKeystoreFile=null, webSslKeystorePassword=null, webSslKeystoreType=null, webBindAddress=0.0.0.0, mqttBrokerPersistentStore=../conf/persistent_stores//moquette/moquette_store.mapdb, mcPersistentStoresLocation=../conf/persistent_stores/, clearMessagesQueueOnStart=true, clearSmartSleepMsgQueueOnStart=true, mDNSserviceEnabled=false, controllerSettings=null, emailSettings=null, mySensorsSettings=null, smsSettings=null, pushbulletSettings=null, locationSettings=null, metricsGraphSettings=null, metricsDataRetentionSettings=null, backupSettings=null, mqttBrokerSettings=null, mqttRepublisherSettings=null)
      12:25:58.677 [main] DEBUG org.mycontroller.standalone.StartApp - Operating System detail:[os:Windows 7,arch:amd64,version:6.1]
      12:25:58.681 [main] ERROR org.mycontroller.standalone.StartApp - Unable to start application, refer error log,
      java.util.MissingResourceException: Can't find bundle for base name mc_locale/mc_locale_java, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
      at java.util.ResourceBundle.getBundleImpl(Unknown Source)
      at java.util.ResourceBundle.getBundle(Unknown Source)
      at org.mycontroller.standalone.utils.McUtils.updateLocale(McUtils.java:291)
      at org.mycontroller.standalone.StartApp.startServices(StartApp.java:246)
      at org.mycontroller.standalone.StartApp.startMycontroller(StartApp.java:109)
      at org.mycontroller.standalone.StartApp.main(StartApp.java:96)
      Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="New Oracle"

      posted in Developers Zone
      C
      cslauritsen
    • RE: Republish MySensors Messages via MQTT

      @jkandasa is there a way in myc to connect a serial gateway to an mqtt gateway, such that a message arriving on the serial interface could be republished to the mqtt interface?

      posted in General Discussion
      C
      cslauritsen
    • RE: Republish MySensors Messages via MQTT

      Yes. I currently have a serial gateway.
      I like the functionality of mycontroller.org, but I like the automation/rules engine/extensibility of openhab.

      I'd like to expose the mysensors data to other systems like openhab using mqtt.

      I'm open to other ways of doing it, this is just what occurred to me first.

      posted in General Discussion
      C
      cslauritsen
    • Republish MySensors Messages via MQTT

      Please correct me if I'm wrong...
      I assume that currently mycontroller.org does not support publishing mysensors messages to mqtt.

      I would be willing to contribute code to provide this functionality. I was reading thru and wondered if adding a new Operation would be the best way.

      If you have any pointers, I'd be glad to hear them.
      Thanks

      posted in General Discussion
      C
      cslauritsen