Navigation

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

    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
    • RE: change telegram id?

      @skywatch Yes, you have to enter only the token. all other fields are autogenerated (communicate with telegram service and get the data).

      I am seeing the user-id in the part of the token. 5508*****:AAH***** and showing the same id for me.

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

      @skywatch you can edit only the token field. Other fields are auto-generated.
      I do not see an option to delete the existing token. As a workaround, If you want to delete your token, simply enter some junk values and click on the Save button.

      posted in Troubleshooting
      jkandasa
      jkandasa
    • RE: Merry Christmas and a Happy New Year!

      Happy holidays and happy new year!!
      I hope I get some time to get the 2.0 tech preview release by this year. (With minimal usable level). You can download and try the container version now, you cannot do anything now, since input pages are yet to develop, but you can see the high-level view 🙂 or you can have a look at the demo page.

      Source code and Readme file: https://github.com/mycontroller-org/backend
      Demo page: https://demo-v2.mycontroller.org/

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: How to build a new gateway adapter to accept REST request?

      @xuch74 you have to create your own REST API server, that server should act as a REST-MQTT adapter.
      On MyController create a mycontroller device type gateway with mqtt and add topic details from your adapter.

      posted in Developers Zone
      jkandasa
      jkandasa
    • RE: How to build a new gateway adapter to accept REST request?

      @xuch74 build adapter to get data from REST API and post it to MQTT.

      posted in Developers Zone
      jkandasa
      jkandasa
    • RE: missing tag error on influxdb

      @fsgrazzutti I think when I design I might thought tag is a mandatory field. But looks like it is not.

      https://github.com/mycontroller-org/mycontroller-v1-legacy/blob/development/modules/core/src/main/java/org/mycontroller/standalone/externalserver/driver/DriverInfluxDB.java#L51

      data
                          .append(getVariableKey(sensorVariable, _config.getKeyFormat()))
                          .append(",").append(getVariableKey(sensorVariable, _config.getTags()))
                          .append(" value=").append(getValue(sensorVariable))
                          .append(" ").append(sensorVariable.getTimestamp()).append("000000");
      
      posted in Troubleshooting
      jkandasa
      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
      jkandasa
      jkandasa
    • RE: user dashboard (without logging in)

      @wkwj00 There is no way to show dashboard without login. Sure, I will take a note of this request for v2.x.
      Thanks for your support!

      posted in Troubleshooting
      jkandasa
      jkandasa
    • RE: The question is about groups scenarios

      @Clone-Tv looks like there is bug. Group will not support for Script

      posted in General Discussion
      jkandasa
      jkandasa
    • RE: Rule status in dashboard

      @Daniele I do not think we have a direct option to control rules from dashboard.

      posted in Dashboard
      jkandasa
      jkandasa