@pillarama I have added a fix to remove the corrupted resources
I have published it on the SNAPSHOT version, can you please verify?
Posts made by jkandasa
-
RE: MyController wont load sensors page. Log reports DB error
-
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. -
RE: Your suggestions to choose naming for "sensor" and "variable"
Thanks, @skywatch, and @Daniele
source
looks ok.
But we may not usevalue
. It may lead to confusion.Here is the
sensor
andfield
(current names) for a better understandingReference: 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
andfield.previousPayload.value
.
if we change it tovalue
, it will be likevalue.payload.value
andvalue.previousPayload.value
.I feel
field
is ok, we need better naming forsensor
-
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 thesensor
andvariable
.Current approach (In Version 1.x):
Gateway >> Node >> Sensor >> Variable
Sensor:
- The
sensor
will be renamed aselement
- 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 asfield
(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
) -
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. EnableSettings >> System >> MyController >> Resources logs level
to notice or debug.also try
#define MY_OTA_FLASH_JDECID 0x00
, which works for me. -
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
-
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.
-
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? -
RE: change telegram id?
@skywatch It is
chat_id
. I do not remember why I have named asChannel 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 withXXX:YYYYY
, note thebot
string before your token) - you can see your name and
chat_id
, use thatchat_id
in MyControllerChannel username
field.
2. By userinfobot
- On your telegream app, search
userinfobot
and sendhi
, you will receive your user details withchat_id
-
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-messageAFAIK, there is no free SMS service. Maybe with 2.x version, we can deploy a GSM gateway to send SMS.
-
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. -
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. -
RE: Merry Christmas and a Happy New Year!
Happy holidays and happy new year!!
I hope I get some time to get the2.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 viewor 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/ -
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. -
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.
-
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.
data .append(getVariableKey(sensorVariable, _config.getKeyFormat())) .append(",").append(getVariableKey(sensorVariable, _config.getTags())) .append(" value=").append(getValue(sensorVariable)) .append(" ").append(sensorVariable.getTimestamp()).append("000000");
-
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?
-
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! -
RE: The question is about groups scenarios
@Clone-Tv looks like there is bug. Group will not support for
Script
-
RE: Rule status in dashboard
@Daniele I do not think we have a direct option to control rules from dashboard.