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

    jkandasa

    @jkandasa

    ADMIN

    75
    Reputation
    3172
    Profile views
    1193
    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
      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: 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
    • 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
      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
    • 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: 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
      jkandasaJ
      jkandasa

    Latest posts made by jkandasa

    • RE: Armbian - MyC V2 - install

      @JeeLet

      I gave this as sample: organization_name: myc_org
      update to your organization, when you setup indluxdb 2

      Yes also the deletion of fields/nodes/gateway are not possible with the interface, it remains in memory, I am obliged to go in the yaml file and delete them

      I will check this

      I'm going to take a little vacation.

      Enjoy your vacation 🙂

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Armbian - MyC V2 - install

      @JeeLet can you share your database configuration?

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Armbian - MyC V2 - install

      @JeeLet I tried influxdb2 locally and work ok.

      once you setup influxdb2 in your host, setup a API TOKEN for mycontroller.
      Details are in https://docs.influxdata.com/influxdb/cloud/security/tokens/create-token/#manage-tokens-in-the-influxdb-ui

      metric database configuration will be looking like this,

      metric:
        disabled: false
        type: influxdb
        uri: http://192.168.122.1:8086
        token: uBykOQ_17_m-KMdBkWa_UiTNpBViQH***akY_Rec_49kV0gLg_zZZw==
        username:
        password:
        organization_name: myc_org
        bucket_name: myc
        batch_size:
        flush_interval: 5s
      
      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Armbian - MyC V2 - install

      @JeeLet can you show your metric configuration? hide credentials
      sample configuration: https://v2.mycontroller.org/docs/installation/advanced-installation/backend-configuration/#sample-of-cloud-influxdb-configuration

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Installation error for ver 2.0

      @NielBierman My guess you have downloaded wrong arch executable.
      if your OS is x86_64 download mycontroller-server-*-linux-amd64.tar.gz

      To know OS arch run the command: uname -m

      posted in Troubleshooting
      jkandasaJ
      jkandasa
    • RE: MyController V2.0 no metrics on the Dashboard

      @vidpix welcome to MyController 🙂
      if you use labels as filter append labels. as prefix of the key.
      samples: labels.ms_node_id, labels.ms_sensor_id

      in the filter key you can choose anything. you can easily understand if you see yaml view of a field.

      posted in Troubleshooting
      jkandasaJ
      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
      jkandasaJ
      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
      jkandasaJ
      jkandasa
    • RE: Grafana install

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

      posted in General Discussion
      jkandasaJ
      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
      jkandasaJ
      jkandasa