MyController v2.0.0 released
Posts
-
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 UndertowGoLangAngular 4 front endReactJSIonic mobile applicationReactive native- Two type databases
RDBMS for sensor metadataIn-Memory and MongoDB for data- InfluxDB for metrics
- backup/restore as
CSVYAML 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.
-
RE: How to set sensor value with javascript
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);
-
MyController 2.x development work started
I started working on MyController version 2.x.
Existing repository renamed tomycontroller-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
-
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. -
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:
Add script:
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:
-
RE: Multiple NRF24L01+ gateways
@skywatch The error shown here is not related to the issue you are facing. This is error is not harmful.
-
RE: 0.0.3.Final pre-release - volunteers required to test
Data retore complete log message is show 7 seconds after shutdown message log, but it works
Looks like taking some time to restore on your machine.
However, the following message says shutdown complete. Which leads confusion for you. I will sync these messages. Thank you! No worries2017-01-17 11:21:28,290 INFO [MyController.org Shutdown-Hook] [org.mycontroller.standalone.AppShutdownHook:36] Bye, Have a nice day! See you soon
-
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!
-
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
,
Now click on edit ofsensor variable
On the URL you can see sensor variable id, This is id is important note it for your target
sensor variable
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 inActions
you can seeRun now
),
Pass the sensor variable id as bindings, here it is{ id: 99 }
,
Click on
Run
. All done. Now yourSensor variable
removed from MyController. - Now get
-
RE: Multiple NRF24L01+ gateways
@skywatch Thanks for the logs. Can you edit and save again gateway2 and see the behavior?
-
RE: 0.0.3.Final pre-release - volunteers required to test
@Tetnobic fixed this restore issue on the slow environment too. Thanks to reporting this issue. This is a nice catch! Updated changes on SNAPSHOT build.
https://github.com/mycontroller-org/mycontroller/commit/14c791726b833905ce5ecc69853e2fca1b33b361
-
RE: Batch push sensor data once network is available
@ncollins Really this is an excellent feature request. At the same time, we need to implement a big logic to sync. Kindly create a request on GitHub page. I will start looking possible ways.
Thank you for the great idea!
-
RE: Cannot upload new image.
@skywatch Thanks to reporting this problem. I will check it in a few days and let you know.
-
MyController 1.0.0.Final version released
Build download location
RELEASE NOTES AND USER DOCUMENT NEEDS TO BE UPDATED. STAY TUNED!
-
RE: Node EUI on Topology chart
@boggie Passing empty string from your sketch will not replace with yours(in MyController).
The actual code to update node name in MyController, https://github.com/mycontroller-org/mycontroller/blob/development/modules/core/src/main/java/org/mycontroller/standalone/provider/ExecuterAbstract.java#L198~L202It is a good idea to show Node EUI and sensor Id, I guess a good place to show this is on a tooltip. What do you think?
-
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?
-
MyController 1.2.0.Final version released
- Download page
- Release notes
- Kindly report issues on GitHub issues page
- If you have question post it on this forum