• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. jkandasa
    • Profile
    • Following 2
    • Followers 10
    • Topics 39
    • Posts 1187
    • Best 72
    • Controversial 0
    • Groups 1

    jkandasa

    @jkandasa

    ADMIN

    75
    Reputation
    3170
    Profile views
    1187
    Posts
    10
    Followers
    2
    Following
    Joined Last Online
    Website mycontroller.org

    jkandasa Unfollow Follow
    ADMIN

    Best posts made by 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
      jkandasa
      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
      jkandasa
      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
      jkandasa
      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
      jkandasa
      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
      jkandasa
      jkandasa
    • Your suggestions to choose naming for "sensor" and "variable"

      Hello,
      MyController 2.0 is in the development stage. I hope we can do a pre-release soon.
      I do not want to limit MyController usage not only to the sensors world. can be used for another use case too.

      Example:

      • monitor stock market and act based on that
      • monitor GitHub issues, JIRA issues act based on that
      • Monitor an application on a computer
      • We have many use cases...

      The names should be generic and can be adaptable for all use cases.
      So we need a better common name for the sensor and variable.

      Current approach (In Version 1.x): Gateway >> Node >> Sensor >> Variable

      Sensor:

      • The sensor will be renamed as element
      • I need better naming here if this is not looking good

      Variable:

      • We cannot use the name variable, it is more confusing.
      • The Variable will be renamed as field (inputs are welcome)

      Please respond back with your suggestions

      between, Current work of MyController 2.0 deployed at https://demo-v2.mycontroller.org (Username:admin Password: admin)

      posted in General Discussion 2.0 mycontroller naming
      jkandasa
      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
      jkandasa
      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
      jkandasa
      jkandasa
    • RE: Multiple NRF24L01+ gateways

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

      posted in General
      jkandasa
      jkandasa
    • RE: Mycontroller 2.x ideas

      @tag Thank you so much for your continued support!

      when you mention influx are you planning to use the complete "TICK" stack which influxDB is part off?

      Yes, I am planning to move the metrics completely to influxDB. RDBMS not good for time series data.

      posted in General Discussion
      jkandasa
      jkandasa

    Latest posts made by jkandasa

    • RE: Grafana install

      @JeeLet said in Grafana install:

      a new hardware base, maybe an Odroid-N2 !?

      I have not owned Odroid-N2. But it should work

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Grafana install

      @JeeLet I missed this thread somehow

      I don't understand the difference between StorageDB and MetricDB

      https://v2.mycontroller.org/docs/overview/architecture/#storage-database

      you say "You can also use influx 2.x. MyC supports influx 2.x"?

      Yes, influx 2.x supported, more configuration details on https://v2.mycontroller.org/docs/installation/advanced-installation/backend-configuration/#influxdb

      on a next new installation I switch to the influxDB-2 version I don't have anything to modify in mycontroller ?? .... I may try ??

      You have to update the configuration file as mentioned on the above link

      For the last test with grafana, the "mc_gauge_float_data" values work but not the "mc_binary_data" numbers
      (maybe I'm wrong in the config)

      binary data is in the form of true or false.

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Grafana install

      @JeeLet You can go with influx 2.x as well. MyC supports for influx 2.x 🙂

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Grafana install

      @JeeLet for now MyC do not delete influx data, when you remove your sensors from MyC. But it is required. I will add this feature soon if possible.

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: MQTT Gateway USB

      @JeeLet some special cases you need 2mqtt. For example you want to share your USB GW for MyC and other software (via mqtt). If you are using your USB GW only with MyC. 2mqtt is not required.

      2mqtt creates a mqtt communication to your USB GW

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: MQTT Gateway USB

      @JeeLet can you please explain the requirement? It will be easier to guide.

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Grafana install

      @JeeLet Happy New Year!!
      Great! Finally you got it.

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Ghost Value

      @JeeLet

      Gw and stick to the controller, it does not do much, it relays, it is an intermediary.
      Couldn't we use the Gateway-Usb to monitor the nodes ?
      of their values ? of their states ?

      It is possible to fetch node/sensor values. But it is ok when you have few nodes. If your node network grows, this eats lots of your RF bandwidth. IMO, it is unnecessary to poll the values. We have a push mechanism (node sends data to MyC) and in this situation, It is not a good idea to implement pull mechanism as well (MyC asks data from from each node).

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Ghost Value

      @JeeLet MyController v2 operates like event based. It means it receives the data from the node or whatever and updates into the database with the timestamp of the data. On a restart of MyC server the data will be loaded again from database. So no change on the data/value, until it receives new value from that node.

      The node down status maintained by MyC. If there is no data/heartbeat received from a node for a specified time. MyC assumes that the node is down and marked as down.

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Ghost Value

      @JeeLet It is not a ghost value. You can note the timestamp (Last Seen) the value received 20 hours ago after that data not received. So it is a 20 hours ago data.
      Please let me know if it is not clear

      posted in General Discussion
      jkandasa
      jkandasa