• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. jkandasa
    3. Best
    Offline
    • Profile
    • Following 2
    • Followers 11
    • Topics 40
    • Posts 1,221
    • Groups 1

    Posts

    Recent Best Controversial
    • MyController 2.0.0 released

      MyController v2.0.0 released 🎉

      https://www.mycontroller.org/docs/

      posted in Announcements
      jkandasaJ
      jkandasa
    • Mycontroller 2.x ideas

      Hello everyone,

      MyController was born around August 2015. Currently, version 1.0.0 available for public and before 25, December 2017, version 1.1.0 will be available for the public.

      • I see some performance issues with MyController when we have a number of sensors grow.
      • We need end user-friendly GUI. I believe for now we have only admin friendly GUI.
      • There is no mobile application.
      • Supports more databases. H2DB, MySQL, MariaDB, PostgresSQL. To reduce complexity support only for one DB or maximum two databases.
      • and more

      To rectify all these issues, I am planning to build MyController 2.x from scratch. With the following technologies.

      • Spring boot with Undertow GoLang
      • Angular 4 front end ReactJS
      • Ionic mobile application Reactive native
      • Two type databases
        • RDBMS for sensor metadata In-Memory and MongoDB for data
        • InfluxDB for metrics
      • backup/restore as CSV YAML or JSON file(except metrics data)

      Still, I want to keep MyController's primary platform as Rasberry PI.

      Kindly share your experience with influxDB and raspberry PI in the long run. Also, share your thoughts on this big move.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: How to set sensor value with javascript

      @seant

      var pingDistance = tankDistanceSensor.value; //Water tank level percent

      You have to use parseInt(tankDistanceSensor.value), Sensor variable always have String value.
      var pingDistance = parseInt(tankDistanceSensor.value); //Water tank level percent

      //THESE 2 LINES DO NOT SEEM TO SET THE VALUES
      tankLitresSensor.setValue(litres);
      tankPercentageSensor.setValue(percentage);

      After these two lines add the following lines,

        mcApi.sensor().sendPayload(tankLitresSensor); 
        mcApi.sensor().sendPayload(tankPercentageSensor); 
      
      posted in Developers Zone
      jkandasaJ
      jkandasa
    • MyController 2.x development work started

      I started working on MyController version 2.x.
      Existing repository renamed to mycontroller-v1-legacy.

      Version 1.x: https://github.com/mycontroller-org/mycontroller-v1-legacy

      Version 2.x: https://github.com/mycontroller-org/backend and https://github.com/mycontroller-org/console-web

      posted in Announcements
      jkandasaJ
      jkandasa
    • RE: Forum logo transparency

      @Avamander Thanks for the pointer. Discourse needs more resources than NodeBB. We do not have that much budget.
      So, for now, we do not have any plans to upgrade.

      posted in Developers Zone
      jkandasaJ
      jkandasa
    • RE: Battery level in rules or chart? [Script Rule to check battery level]

      @DaTTcz For now direct battery support not available on Rules. However you can do it from script. I will update how to handle with script.

      Kindly create a request on github page to support battery level on rules.

      ALL these features are available on SNAPSHOT build

      Enter your condition via script,

      Steps:

      • Create UID Tag for your node,
      • Create script to check node battery level (script type: Condition)
      • Create rule with this condition script
      • Enjoy 🙂
      Create UID Tag:

      0_1479454456642_upload-6bd6f2c1-24c2-431c-b97e-6ae08892003c

      Add script:

      0_1479454321011_upload-df8f276c-45cd-4c6c-9ef2-1de1c50f4445
      Java Script to check battery level,

      var myImports = new JavaImporter(java.io, java.lang, java.util, java.text);
      
      with(myImports) {
        var mcResult = false; //By default this is false. When your condition meets change this to true
        var batteryLevel = mcApi.uidTag().getByUid("node1").resource.batteryLevel;
        if(batteryLevel >= 50){ // Your condition
           mcResult = true;
        }
      }
      
      Add rule:

      0_1479454517098_upload-ec78f98b-ead9-442b-80aa-28eda4e10dd4

      posted in Scripts
      jkandasaJ
      jkandasa
    • RE: Multiple NRF24L01+ gateways

      @skywatch Thanks for the logs. Can you edit and save again gateway2 and see the behavior?

      posted in General
      jkandasaJ
      jkandasa
    • RE: 0.0.3.Final pre-release - volunteers required to test

      @Tetnobic

      Data retore complete log message is show 7 seconds after shutdown message log, but it works

      Looks like taking some time to restore on your machine.
      However, the following message says shutdown complete. Which leads confusion for you. I will sync these messages. Thank you! No worries 😄

      2017-01-17 11:21:28,290 INFO [MyController.org Shutdown-Hook] [org.mycontroller.standalone.AppShutdownHook:36] Bye, Have a nice day! See you soon
      
      
      posted in Announcements
      jkandasaJ
      jkandasa
    • RE: Integrate Blockly

      @blacksheepinc Hi, Yes, I had a look. And looks like we can implement with MyController with some new implementation to support for JSR223 standard(which is used in Java). Kindly create a request on github.com/mycontroller-org/mycontroller/issues When I get time I will work on this. Thank you!

      posted in Developers Zone
      jkandasaJ
      jkandasa
    • How to delete a sensor variable from script

      For now, there is no option to delete a sensor variable alone from the GUI. So I'm providing an option to delete a sensor variable from a script.

      Note: This API available from 1.4.0.Final version.

      • Now get SensorVariable id from Sensors page. Resources >> Sensors >> Click on view details,
        0_1482765833386_upload-d79d7e6b-d0f6-4bc6-b6b6-0366b8968b09
        Now click on edit of sensor variable
        0_1482765892413_upload-5797ae73-a6ee-4dec-b810-928013f4c2d3

      On the URL you can see sensor variable id, This is id is important note it for your target sensor variable
      0_1482765974523_upload-1240a386-2016-4a96-b144-d2444df9fc73

      Add the following script on your controller,
      Extension: JavaScript
      Type: Operation

      var myImports = new JavaImporter(java.io, java.lang, java.util);
      
      with(myImports) {
        // pass sensor variable as bindings, example: { id: 99 }
        mcApi.sensor().deleteSensorVariable(id);
      }
      

      Execute the script as Run now (select the script and in Actions you can see Run now),
      Pass the sensor variable id as bindings, here it is { id: 99 },
      0_1539689727209_cb4a5f9a-3264-4844-9f1f-920f7c76d063-image.png

      Click on Run. All done. Now your Sensor variable removed from MyController.

      posted in Scripts sensor variable sensorvariable script javascript
      jkandasaJ
      jkandasa
    • RE: Multiple NRF24L01+ gateways

      @skywatch The error shown here is not related to the issue you are facing. This is error is not harmful.

      posted in General
      jkandasaJ
      jkandasa
    • RE: 0.0.3.Final pre-release - volunteers required to test

      @Tetnobic fixed this restore issue on the slow environment too. Thanks to reporting this issue. This is a nice catch! Updated changes on SNAPSHOT build.

      https://github.com/mycontroller-org/mycontroller/commit/14c791726b833905ce5ecc69853e2fca1b33b361

      posted in Announcements
      jkandasaJ
      jkandasa
    • RE: Batch push sensor data once network is available

      @ncollins Really this is an excellent feature request. At the same time, we need to implement a big logic to sync. Kindly create a request on GitHub page. I will start looking possible ways.

      Thank you for the great idea!

      posted in Developers Zone
      jkandasaJ
      jkandasa
    • RE: Cannot upload new image.

      @skywatch Thanks to reporting this problem. I will check it in a few days and let you know.

      posted in Comments & Feedback
      jkandasaJ
      jkandasa
    • MyController 1.0.0.Final version released

      Build download location

      RELEASE NOTES AND USER DOCUMENT NEEDS TO BE UPDATED. STAY TUNED!

      posted in Announcements 1.0.0.final release mycontroller
      jkandasaJ
      jkandasa
    • RE: Node EUI on Topology chart

      @boggie Passing empty string from your sketch will not replace with yours(in MyController).
      The actual code to update node name in MyController, https://github.com/mycontroller-org/mycontroller/blob/development/modules/core/src/main/java/org/mycontroller/standalone/provider/ExecuterAbstract.java#L198~L202

      It is a good idea to show Node EUI and sensor Id, I guess a good place to show this is on a tooltip. What do you think?

      posted in Developers Zone
      jkandasaJ
      jkandasa
    • RE: Time change

      @skywatch MyController does not have any specific control on DST changes. It is all about JVM capabilities in DST changes. AFAIK, JVM supports DST. MyController will overwrite your data for that hour. I do not have any idea about timers, alerts, or other scheduled operations on this duration?

      posted in Comments & Feedback
      jkandasaJ
      jkandasa
    • RE: MyController 1.0.0.Final version released

      @skywatch You can see version 2 beta soon 😉

      posted in Announcements
      jkandasaJ
      jkandasa