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

    jkandasa

    @jkandasa

    ADMIN

    75
    Reputation
    3168
    Profile views
    1165
    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
      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
      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

      @skywatch Thank you for the excellent feedback on 2.x release.

      Just now release 1.1.0.Final 😉

      posted in General Discussion
      jkandasa
      jkandasa

    Latest posts made by jkandasa

    • RE: Backup Config

      @JeeLet , what @skywatch is explained exactly.
      In addition to that,

      • MC v2 never take backup of your metrics database, here it is influxdb
      • Retention count - controls only that particular backup schedule, example: if you run a backup manually, it will not be included in the count and it never deleted. also it will not count backup from another schedule. in MC v2 it is possible to schedule multiple backups. I have like weekly and hourly.
      posted in General Discussion
      jkandasa
      jkandasa
    • RE: miscellaneous question

      @JeeLet I will check the possibilities on the chart. to track this I have added GH issue: https://github.com/mycontroller-org/console-web/issues/15

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Webcam and MyController

      @skywatch good one. I have added GH issue to track this https://github.com/mycontroller-org/console-web/issues/14

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Webcam and MyController

      @JeeLet said in Webcam and MyController:

      but I did not succeed, the world becomes more and more complicated, I tested with 4 different tutorials, even installs with compilation, there is always a file or a version which is not with the appointment

      We will get a great solution at the end of your research 🙂

      but the Nginx server is cool, I will be able to use Hugo for my personal pages.

      true, mycontroller v2 documentation is based on hugo and running with nginx. https://github.com/mycontroller-org/documentation

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Webcam and MyController

      @JeeLet can you display the video via your nginx server?

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Create widget: value a node

      @Yourry looks like you have problem with your influxdb configuration or setup.

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Webcam and MyController

      @JeeLet said in Webcam and MyController:

      1st : Can MyController display a video ?
      (in the widget the unrecognised formats
      .mov and .mp4 .avi )

      For now we do not have that option. it is a good requirement, I will work on it. GH issue: https://github.com/mycontroller-org/console-web/issues/12

      2nd : Can MyController turn on the Webcam when you go to the Widgets page, and turn it off when you leave ?

      This looks again a good idea. GH issue: https://github.com/mycontroller-org/console-web/issues/13

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Create widget: value a node

      @Yourry welcome to MyController world 🙂
      you can display your freezer temperature different way.
      I have given an example here. if you want different graph let me know, I can try to provide an example.

      Type: Utilization Panel >> Spark Area

      id: af92bd3c-456a-4f0b-9a9c-1135a523010e
      title: Freezer Temperature
      showTitle: true
      type: widget_utilization_panel
      static: false
      layout:
        w: 20
        h: 30
        x: 0
        'y': 160
      config:
        type: spark_area
        resource:
          isMixedResources: false
          resources: []
          type: field
          filterType: quick_id
          quickId: Gateway_MySensors_v2.180.1.V_TEMP
          filter: {}
          displayName: true
          nameKey: name
          timestampKey: current.timestamp
          valueKey: current.value
          roundDecimal: 1
          unit: °C
        table: {}
        metric:
          duration: '-6h'
          interval: 3m
          refreshInterval: '300000'
          metricFunction: percentile_99
        chart:
          interpolation: basis
          height: 70
          color: '#0066cc'
          fillOpacity: 15
          strokeWidth: 1.5
          thickness: 20
          yAxisMinValue: ''
          yAxisMaxValue: ''
      scrollbarDisabled: false
      

      52ed0c0a-9716-408b-8f0e-279051008252-image.png

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Send Telegram bot message

      @fsgrazzutti with the help of GitHub action I built the bundle and pushed it in to SNAPSHOT location. Have not tested yet. Let me know if you face a difficulty.

      posted in Operations
      jkandasa
      jkandasa
    • RE: Armbian - MyC V2 - install

      Thanks @JeeLet !

      posted in General Discussion
      jkandasa
      jkandasa