Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. jkandasa
    • Profile
    • Following 2
    • Followers 10
    • Topics 36
    • Posts 1027
    • Best 66
    • Groups 1

    jkandasa

    @jkandasa

    ADMIN

    69
    Reputation
    3162
    Profile views
    1027
    Posts
    10
    Followers
    2
    Following
    Joined Last Online
    Website mycontroller.org

    jkandasa 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: 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
    • RE: Sleep and wakeup with loop?

      @njbuch I never tested sleep and wake up. Let me try and update, when I get time.

      posted in MyControllerDevice (ESP8266)
      jkandasa
      jkandasa
    • RE: OTA firmware update with external MQTT broker

      @yd I forget to mention a thing. You have to map your firmware with your node. If there is a reboot, your node will check with controller this is my firmware. Controller will respond as we have new firmware use this, Then node will request each block. This is how firmware update works. So you have to map your frimware with your node on MyController node page.

      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
    • 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: RSSI data

      @BenCranston For now MyController will not support for MySensors RSSI. I have to check development version of MySensors to support this feature for MySensors.
      RSSI created for future use. Have plan to support LoRa (TheThingsNetwork.org), there we have RSSI.

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

    Latest posts made by jkandasa

    • RE: MyController wont load sensors page. Log reports DB error

      @pillarama I have added a fix to remove the corrupted resources
      I have published it on the SNAPSHOT version, can you please verify?

      posted in Troubleshooting
      jkandasa
      jkandasa
    • RE: MyController wont load sensors page. Log reports DB error

      @pillarama the same issue has been reported by @skywatch too. I am going to work on this soon. For some reason, corruption happened on the sensor table, which leads a null issue.
      I will keep update you the status.

      posted in Troubleshooting
      jkandasa
      jkandasa
    • RE: Your suggestions to choose naming for "sensor" and "variable"

      Thanks, @skywatch, and @Daniele
      source looks ok.
      But we may not use value. It may lead to confusion.

      Here is the sensor and field (current names) for a better understanding

      Reference: sensor

      // Sensor model
      type Sensor struct {
      	ID             string               `json:"id"`
      	GatewayID      string               `json:"gatewayId"`
      	NodeID         string               `json:"nodeId"`
      	SensorID       string               `json:"sensorId"`
      	Name           string               `json:"name"`
      	Labels         cmap.CustomStringMap `json:"labels"`
      	Others         cmap.CustomMap       `json:"others"`
      	LastSeen       time.Time            `json:"lastSeen"`
      	LastModifiedOn time.Time            `json:"lastModifiedOn"`
      }
      

      Reference: field

      // Field model
      type Field struct {
      	ID               string               `json:"id"`
      	GatewayID        string               `json:"gatewayId"`
      	NodeID           string               `json:"nodeId"`
      	SensorID         string               `json:"sensorId"`
      	FieldID          string               `json:"fieldId"`
      	Name             string               `json:"name"`
      	MetricType       string               `json:"metricType"`
      	Payload          Payload              `json:"payload"`
      	PreviousPayload  Payload              `json:"previousPayload"`
      	Unit             string               `json:"unit"`
      	Labels           cmap.CustomStringMap `json:"labels"`
      	Others           cmap.CustomMap       `json:"others"`
      	NoChangeSince    time.Time            `json:"noChangeSince"`
      	PayloadFormatter PayloadFormatter     `json:"payloadFormatter"`
      	LastSeen         time.Time            `json:"lastSeen"`
      	LastModifiedOn   time.Time            `json:"lastModifiedOn"`
      }
      
      // Payload model
      type Payload struct {
      	Value      interface{} `json:"value"`
      	IsReceived bool        `json:"isReceived"`
      	Timestamp  time.Time   `json:"timestamp"`
      }
      
      // PayloadFormatter model
      type PayloadFormatter struct {
      	OnReceive string `json:"onReceive"`
      }
      

      in the field, we call field.payload.value and field.previousPayload.value.
      if we change it to value, it will be like value.payload.value and value.previousPayload.value.

      I feel field is ok, we need better naming for sensor

      posted in General Discussion
      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: Need Help with DualOptiboot Fota

      @superninja you can see some staus on the node page. also on the Status >> Resource logs, you can see some messages. Enable Settings >> System >> MyController >> Resources logs level to notice or debug.

      also try #define MY_OTA_FLASH_JDECID 0x00, which works for me.

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Need Help with DualOptiboot Fota

      @superninja Welcome to MyController 🙂
      I usually go with Sensebender bootloader.
      Steps :

      • setup Arduino IDE for Sensebender - https://github.com/mysensors/ArduinoBoards
      • Select your hardware details. from your input, the board: sensbender, 328 + 8 Mhz
      • Burn bootloader from IDE (it should be DualOptiboot)
      • add a sketch with #define MY_OTA_FIRMWARE_FEATURE - https://github.com/mysensors/MySensors/blob/2.3.2/MyConfig.h#L1222~L1253

      Afterburn DualOptiboot, you should add a MySensors sketch via serial (OTA feature should be enabled on your sketch). From this point, OTA works with DualOptiboot

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Error in log - The connection was broken by the other side

      @sandr I believe netty dependent package upgrade might resolve this warning. But I am not sure at this point.

      posted in Troubleshooting
      jkandasa
      jkandasa
    • RE: Error in log - The connection was broken by the other side

      @sandr Looks like your ethernet shield is not stable. After a while failed to write on the socket. So MyContorller closing and reopening the connection.
      If you have different ENC28J60 hardware, can you try with that?

      posted in Troubleshooting
      jkandasa
      jkandasa
    • RE: change telegram id?

      @skywatch It is chat_id. I do not remember why I have named as Channel username.

      To get chat_id in two ways,

      1. By API:

      • Open your telegram bot (newly created bot), send hi to that bot
      • on your browser, https://api.telegram.org/botXXX:YYYYY/getUpdates (replace your token with XXX:YYYYY, note the bot string before your token)
      • you can see your name and chat_id, use that chat_id in MyController Channel username field.

      2. By userinfobot

      • On your telegream app, search userinfobot and send hi, you will receive your user details with chat_id
      posted in Troubleshooting
      jkandasa
      jkandasa
    • RE: change telegram id?

      @skywatch Can you follow this post, you should get the telegram message
      https://forum.mycontroller.org/topic/312/send-telegram-bot-message

      AFAIK, there is no free SMS service. Maybe with 2.x version, we can deploy a GSM gateway to send SMS.

      posted in Troubleshooting
      jkandasa
      jkandasa