@jkandasa Thanx!
I checked this widget in Chrome and Firefox, it works great.
Posts made by wanvo
-
RE: custom widget: send command to node
-
RE: custom widget: send command to node
How can I download the latest SNAPSHOT with this PR?
Is this it? Https: //travis-ci.org/mycontroller-org/mycontroller/builds/472109919 -
MyController on OrangePiZero after some reboots not working
Hi Jeeva.
MyController installed on OrangePiZero.
After some reboots, I can not access the frontend MyController.
I tried different boards OrangePiZero, different SD Cards, different version Linux(Debian and Ubuntu), different version MyController(1.2.0 Final and 1.3.0 SNAPSHOT).
When I start ./start.sh I get a normal response about starting.
But at https:\MyControllerIP:8443 I do not get any reaction.
Reinstalling Java and MyController do not eliminate the problem.
Only the complete reinstallation of Linux solves the problem,but only for a while.
Attaching a file mycontroller.log.[0_1525004126630_mycontroller.zip](Загрузка 100%)
I don't have enough rights to attach the log file, I opened an issue on github -
RE: MyController 1.2.0-SNAPSHOT version with major provider changes and supports for ack
@jkandasa said in MyController 1.2.0-SNAPSHOT version with major provider changes and supports for ack:
I guess the problem will be your node sketch presentation code?
This my presentation codevoid presentation() { sendSketchInfo(SKETCH_NAME, SKETCH_VERSION,true); present(ID_S_MOTION, S_MOTION, "Motion Sensor",true); present(ID_TIME_SLEEP, S_CUSTOM, "Time sleep",true); } void loop() { if(first_start){ first_start = false; DEBUG_PRINTLN("Start"); send(msg_S_MOTION.set(false),true); send(msg_S_MOTION_ARM.set(s_armed),true); //send(msg_TIME_SLEEP.set(time_sleep)); //sendRSSIReport(); //sendBatteryReport(); request(ID_TIME_SLEEP, V_VAR5); //запрос значения time_sleep```
This all sketch
/******************************************************************* * DEFINE SECTION ********************************************************************/ // Enable debug prints //#define MY_DEBUG #define SER_DEBUG #ifdef SER_DEBUG #define DEBUG_SERIAL(x) Serial.begin(x) #define DEBUG_PRINT(x) Serial.print(x) #define DEBUG_PRINTLN(x) Serial.println(x) #else #define DEBUG_SERIAL(x) #define DEBUG_PRINT(x) #define DEBUG_PRINTLN(x) #endif #define ONE_DAY_TIME 86400000 //24 часа #define ONE_HOUR_TIME 3600000 //1 час #define MY_SMART_SLEEP_WAIT_DURATION_MS (30000ul) //время прослушки эфира до ухода в сон #define TIME_SLEEP_INIT 60000 #define RSSI_REPORT_INTERVAL 180000 #define BATTERY_REPORT_INTERVAL 600000 //#define BATTERY_REPORT_INTERVAL ONE_DAY_TIME //#define MY_INDICATION_HANDLER // Enable and select radio type attached //#define MY_RADIO_NRF24 #define MY_RADIO_RFM69 //#define MY_RADIO_RFM95 //#define MY_RADIO_NRF5_ESB #ifdef MY_RADIO_NRF24 //#define SKETCH_NAME "nrf24 gate" #define MY_RF24_PA_LEVEL (RF24_PA_MAX) #define MY_RF24_CHANNEL (124) //#define MY_RF24_CHANNEL (125) #endif #ifdef MY_RADIO_RFM69 //#define SKETCH_NAME "rfm69 gate" #define MY_IS_RFM69HW #define MY_RFM69_NEW_DRIVER // ATC on RFM69 works only with the new driver (not compatible with old=default driver) #define MY_RFM69_ATC_MODE_ENABLED #define MY_RFM69_ATC_TARGET_RSSI_DBM (-70) // target RSSI -70dBm #define MY_RFM69_MAX_POWER_LEVEL_DBM (20) // max. TX power 10dBm = 10mW //#define MY_DEBUG_VERBOSE_RFM69 //#define MY_RFM69_ENABLE_ENCRYPTION #endif //**** Message signing settings /*#define MY_SIGNING_SOFT #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7 #define MY_SIGNING_REQUEST_SIGNATURES*/ #ifdef MY_RADIO_RFM95 //#define SKETCH_NAME "rfm95 gate" #define MY_RFM95_FREQUENCY RFM95_434MHZ //#define MY_TRANSPORT_STATE_TIMEOUT_MS (3*1000ul) //#define RFM95_RETRY_TIMEOUT_MS (3000ul) //#define MY_RFM95_MODEM_CONFIGRUATION RFM95_BW125CR48SF4096 #define MY_RFM95_MODEM_CONFIGRUATION RFM95_BW125CR45SF128 #define MY_RFM95_ATC_TARGET_RSSI_DBM (-70) // target RSSI -70dBm #define MY_RFM95_MAX_POWER_LEVEL_DBM (30) // max. TX power 30dBm = 1000mW #endif #ifdef MY_RADIO_NRF5_ESB //#define SKETCH_NAME "nrf5 gate" #endif #if defined(MY_RADIO_RFM69) || defined(MY_RADIO_RFM95) #define MY_SIGNAL_REPORT_ENABLED #define MY_DEFAULT_RX_LED_PIN LED_BUILTIN #endif // Set baud rate to same as optibot #define MY_BAUD_RATE 9600 #define MY_NODE_ID 3 #define SKETCH_NAME "Motion Sensor" #define SKETCH_VERSION "1.0" #define ID_S_MOTION 1 // Id of the sensor child #define ID_TIME_SLEEP 2 #define ID_RSSI 3 #define PIN_S_MOTION 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define PIN_PWR 4 // Pin for power sensors in sleep. #define VCC_MIN 2.7 #define VCC_MAX 3.9 #include <MySensors.h> #include <Vcc.h> Vcc vcc; /* //Отправить уровень батареи после стольких циклов передач.Максимальный интервал отчета также будет равен этому количеству дней. int BATTERY_REPORT_BY_IRT_CYCLE = 10; // "false" will make the first loop disregard high output from HV-505 (from start-up) and make a battery report instead. bool interruptReturn = false; */ #if defined(MY_RADIO_RFM69) || defined(MY_RADIO_RFM95) MyMessage msg_RSSI(ID_RSSI,V_VAR5);//Создаем контейнер для измерителя RSSI #endif MyMessage msg_S_MOTION(ID_S_MOTION, V_TRIPPED);// Создаем контейнер для датчика MyMessage msg_S_MOTION_ARM(ID_S_MOTION, V_ARMED);// Создаем контейнер для датчика MyMessage msg_TIME_SLEEP(ID_TIME_SLEEP, V_VAR5); bool first_start; bool s_armed; //режим работы сенсора - armed, bypassed unsigned long time_sleep; unsigned long lastSendRSSI = 0; unsigned long lastSendBattery = 0; unsigned long millis_in_sleep = 0; unsigned long millis_total = 0; int sleep_returt; void setup() { DEBUG_PRINTLN("Setup"); first_start = true; s_armed = true; time_sleep = TIME_SLEEP_INIT; pinMode(PIN_PWR, OUTPUT);//Пин питающий датчики digitalWrite(PIN_PWR, HIGH); pinMode(PIN_S_MOTION, INPUT); // Вход датчика //digitalWrite(PIN_S_DOOR, HIGH); //подтяжка к плюсу для отладки } void presentation() { sendSketchInfo(SKETCH_NAME, SKETCH_VERSION,true); present(ID_S_MOTION, S_MOTION, "Motion Sensor",true); present(ID_TIME_SLEEP, S_CUSTOM, "Time sleep",true); } void loop() { if(first_start){ first_start = false; DEBUG_PRINTLN("Start"); send(msg_S_MOTION.set(false),true); send(msg_S_MOTION_ARM.set(s_armed),true); //send(msg_TIME_SLEEP.set(time_sleep)); //sendRSSIReport(); //sendBatteryReport(); request(ID_TIME_SLEEP, V_VAR5); //запрос значения time_sleep } millis_total = millis() + millis_in_sleep + MY_SMART_SLEEP_WAIT_DURATION_MS; #if defined(MY_RADIO_RFM69) || defined(MY_RADIO_RFM95) if (millis_total - lastSendRSSI > RSSI_REPORT_INTERVAL) { lastSendRSSI = millis_total; sendRSSIReport(); } #endif if (millis_total - lastSendBattery > BATTERY_REPORT_INTERVAL) { lastSendBattery = millis_total; sendBatteryReport(); } //sendHeartbeat(); sleep_returt = sleep(digitalPinToInterrupt(PIN_S_MOTION),CHANGE,time_sleep,true); if(sleep_returt != MY_WAKE_UP_BY_TIMER){ // проснулись по тревоге send(msg_S_MOTION.set(true),true); DEBUG_PRINTLN("ТРЕВОГА!!!"); } else{ millis_in_sleep = millis_in_sleep + time_sleep; } DEBUG_PRINT("ts = ");DEBUG_PRINTLN(time_sleep); } /*********************FUNCTIONS**********************************/ //функция обработки входящих сообщений void receive(const MyMessage &message) { if (message.sensor == ID_S_MOTION) { //проверяем, что именно этому сенсору if (message.type == V_ARMED) { //проверяем тип переменной s_armed = message.getBool(); //получаем значение V_ARMED DEBUG_PRINT("V_ARMED received: ");DEBUG_PRINTLN(s_armed); if(s_armed){ DEBUG_PRINTLN("Power On"); digitalWrite(PIN_PWR, HIGH); //включаем питание //digitalWrite(PIN_PWR, LOW); //для отладки } else{ DEBUG_PRINTLN("Power Off"); digitalWrite(PIN_PWR, LOW); //отключаем питание //digitalWrite(PIN_PWR, HIGH); //для отладки } } } else if (message.sensor == ID_TIME_SLEEP){ if (message.type == V_VAR5) { time_sleep = message.getULong(); //получаем значение sleep_time DEBUG_PRINT("time_sleep = ");DEBUG_PRINTLN(time_sleep); } } } //функция отправки RSSI если используем RFM69 радио #if defined(MY_RADIO_RFM69) || defined(MY_RADIO_RFM95) void sendRSSIReport() { int16_t rssiVal; char rssiStr[14]; rssiVal = transportGetSignalReport(SR_RX_RSSI); // snprintf(rssiStr,10,"rssi: %d%",rssiVal,"dBm"); sprintf (rssiStr, "rssi:%d dBm", rssiVal); send(msg_RSSI.set(rssiStr),true); DEBUG_PRINTLN(rssiStr); //DEBUG_PRINT("TxRssi = ");DEBUG_PRINTLN(transportGetSignalReport(SR_TX_RSSI)); } #endif //функция отправки отчета состояния батареи void sendBatteryReport() { float p = vcc.Read_Perc(VCC_MIN, VCC_MAX, true); int batteryPcnt = static_cast<int>(p); sendBatteryLevel(batteryPcnt,true); DEBUG_PRINT("Battery is: ");DEBUG_PRINTLN(batteryPcnt); }
I can not find an error yet. I'll look further.
-
RE: MyController 1.2.0-SNAPSHOT version with major provider changes and supports for ack
Earlier, when I changed the variable "Armed" on a sleeping node
MyController waited until the node came out of sleep and sent it the right message.
Now when I try to change this variable, I get the following warning
-
RE: MyController 1.2.0-SNAPSHOT version with major provider changes and supports for ack
When registering nodes with a sensor of the "Motion" type in the old version of MyController, I created two variables "V_ARMED" and "V_TRIPPED". In the new version, only a variable of the type "V_TRIPPED" is created
I'm still looking error in my sketch -
RE: Variable not update in sleep node
@jkandasa said in Variable not update in sleep node:
- Whether it is possible to make so that on a command from a node
Yes, it is possible. I see some error in your request command, should be as, for more information refer this, you h
request (ID_TIME_SLEEP, V_VAR5);
- How it is possible from the side of a node to inform in MуController, that it sleeping?
And how to process this message in MyController for the automatic check box "Node Slepping" in the node properties?
For now, it is not possible to mention it as a sleeping node. Please add a request on GitHub.
-
Really everything works great! The variable of the required type is created.
I inattentively read the documentation and added an extra parameter "S_CUSTOM".
Many thanks for the advice! -
This request created. I will be very grateful if you can add this feature.
-
RE: Batch push sensor data once network is available
Excellent feature!
+1 -
RE: Variable not update in sleep node
I found the reason that the variable is not updated.
In MyController, the node is added by default as not sleeping. It should be noted chek box with the name "Slepeeng" in the properties of the node.There were two questions:
- Whether it is possible to make so that on a command from a node
request (ID_TIME_SLEEP, S_CUSTOM, V_VAR5);
in MyController created a variable of the desired type?
- How it is possible from the side of a node to inform in MуController, that it sleeping?
And how to process this message in MyController for the automatic check box "Node Slepping" in the node properties?
-
Variable not update in sleep node
Hi!
I'm trying to make automatic loading of variables in new nodes.
I have a variable called time_sleep. TypeSensor = Custom, TypeVariable = V_VAR5.
When I connect a new node, I need to send the variable type to the MyController.
If I give the commandrequest (ID_TIME_SLEEP, S_CUSTOM, V_VAR5);
In MyController, a new sensor with an undefined variable is created.
In order to determine the type of the variable, I have to give a commandsend (msg_TIME_SLEEP.set (time_sleep)
After that, even if I change the value of the time_sleep variable of type V_VAR5
in MyController, a new value is not sent to my node.
This does not happen, and the sketch works correctly if I do not first give the commandrequest (ID_TIME_SLEEP, S_CUSTOM, V_VAR5);
Here's my sketch
/******************************************************************* * DEFINE SECTION ********************************************************************/ // Enable debug prints //#define MY_DEBUG #define SER_DEBUG #ifdef SER_DEBUG #define DEBUG_SERIAL(x) Serial.begin(x) #define DEBUG_PRINT(x) Serial.print(x) #define DEBUG_PRINTLN(x) Serial.println(x) #else #define DEBUG_SERIAL(x) #define DEBUG_PRINT(x) #define DEBUG_PRINTLN(x) #endif #define ONE_DAY_TIME 86400000 //24 часа #define ONE_HOUR_TIME 3600000 //1 час #define MY_SMART_SLEEP_WAIT_DURATION_MS (30000ul) //время прослушки эфира до ухода в сон #define TIME_SLEEP_INIT 123456 #define RSSI_REPORT_INTERVAL 180000 #define BATTERY_REPORT_INTERVAL 600000 //#define BATTERY_REPORT_INTERVAL ONE_DAY_TIME //#define MY_INDICATION_HANDLER // Enable and select radio type attached //#define MY_RADIO_NRF24 //#define MY_RF24_PA_LEVEL (RF24_PA_MAX) //#define MY_RF24_CHANNEL (124) //#define MY_RF24_CHANNEL (125) #define MY_RADIO_RFM69 #define MY_IS_RFM69HW #define MY_RFM69_NEW_DRIVER // ATC on RFM69 works only with the new driver (not compatible with old=default driver) #define MY_RFM69_ATC_MODE_ENABLED #define MY_RFM69_ATC_TARGET_RSSI_DBM (-70) // target RSSI -70dBm #define MY_RFM69_MAX_POWER_LEVEL_DBM (20) // max. TX power 10dBm = 10mW //#define MY_DEBUG_VERBOSE_RFM69 //**** Message signing settings //#define MY_RFM69_ENABLE_ENCRYPTION /*#define MY_SIGNING_SOFT #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7 #define MY_SIGNING_REQUEST_SIGNATURES*/ #ifdef MY_RADIO_RFM69 #define MY_SIGNAL_REPORT_ENABLED #endif // Set baud rate to same as optibot #define MY_BAUD_RATE 9600 #define MY_NODE_ID 1 #define SKETCH_NAME "Door Sensor" #define SKETCH_VERSION "1.0" #define ID_S_DOOR 1 // Id of the sensor child #define ID_TIME_SLEEP 2 #define ID_RSSI 3 #define PIN_S_DOOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define PIN_PWR 8 // Pin for power sensors in sleep. #define VCC_MIN 1.8 #define VCC_MAX 2.8 #include <MySensors.h> #include <Vcc.h> Vcc vcc; /* //Отправить уровень батареи после стольких циклов передач.Максимальный интервал отчета также будет равен этому количеству дней. int BATTERY_REPORT_BY_IRT_CYCLE = 10; // "false" will make the first loop disregard high output from HV-505 (from start-up) and make a battery report instead. bool interruptReturn = false; */ #ifdef MY_RADIO_RFM69 MyMessage msg_RSSI(ID_RSSI,V_VAR5);//Создаем контейнер для измерителя RSSI #endif MyMessage msg_S_DOOR(ID_S_DOOR, V_TRIPPED);// Создаем контейнер для датчика MyMessage msg_S_DOOR_ARM(ID_S_DOOR, V_ARMED);// Создаем контейнер для датчика MyMessage msg_TIME_SLEEP(ID_TIME_SLEEP, V_VAR5); bool first_start; bool s_armed; //режим работы сенсора - armed, bypassed unsigned long time_sleep; unsigned long lastSendRSSI = 0; unsigned long lastSendBattery = 0; unsigned long millis_in_sleep = 0; unsigned long millis_total = 0; int sleep_returt; void setup() { DEBUG_PRINTLN("Setup"); first_start = true; s_armed = true; time_sleep = TIME_SLEEP_INIT; pinMode(PIN_PWR, OUTPUT);//Пин питающий датчики digitalWrite(PIN_PWR, HIGH); pinMode(PIN_S_DOOR, INPUT); // Вход датчика digitalWrite(PIN_S_DOOR, HIGH); //подтяжка к плюсу для отладки } void presentation() { sendSketchInfo(SKETCH_NAME, SKETCH_VERSION); present(ID_S_DOOR, S_DOOR, "Door Sensor"); present(ID_TIME_SLEEP, S_CUSTOM, "Time sleep"); } void loop() { if(first_start){ first_start = false; DEBUG_PRINTLN("Start"); send(msg_S_DOOR.set(false)); send(msg_S_DOOR_ARM.set(s_armed)); //send(msg_TIME_SLEEP.set(time_sleep)); //sendRSSIReport(); //sendBatteryReport(); request(ID_TIME_SLEEP, S_CUSTOM, V_VAR5); //запрос значения time_sleep } millis_total = millis() + millis_in_sleep + MY_SMART_SLEEP_WAIT_DURATION_MS; #ifdef MY_RADIO_RFM69 if (millis_total - lastSendRSSI > RSSI_REPORT_INTERVAL) { lastSendRSSI = millis_total; sendRSSIReport(); } #endif if (millis_total - lastSendBattery > BATTERY_REPORT_INTERVAL) { lastSendBattery = millis_total; sendBatteryReport(); } //sendHeartbeat(); sleep_returt = sleep(digitalPinToInterrupt(PIN_S_DOOR),CHANGE,time_sleep,true); if(sleep_returt != MY_WAKE_UP_BY_TIMER){ // проснулись по тревоге send(msg_S_DOOR.set(true)); DEBUG_PRINTLN("ТРЕВОГА!!!"); } else{ millis_in_sleep = millis_in_sleep + time_sleep; } DEBUG_PRINT("ts = ");DEBUG_PRINTLN(time_sleep); if(time_sleep == 123456) send(msg_TIME_SLEEP.set(time_sleep) } /*********************FUNCTIONS**********************************/ /* void receive(const MyMessage &message) { if (message.sensor == YOUR_SENSOR_ID) { if (message.type == V_TRIPPED) { //Do somthing here } else if (message.type == V_ARMED) { //Do somthing here } } } */ //функция обработки входящих сообщений void receive(const MyMessage &message) { if (message.sensor == ID_S_DOOR) { //проверяем, что именно этому сенсору if (message.type == V_ARMED) { //проверяем тип переменной s_armed = message.getBool(); //получаем значение V_ARMED DEBUG_PRINT("V_ARMED received: ");DEBUG_PRINTLN(s_armed); if(s_armed){ DEBUG_PRINTLN("Power On"); //digitalWrite(PIN_PWR, HIGH); //включаем питание digitalWrite(PIN_PWR, LOW); //для отладки } else{ DEBUG_PRINTLN("Power Off"); //digitalWrite(PIN_PWR, LOW); //отключаем питание digitalWrite(PIN_PWR, HIGH); //для отладки } } } else if (message.sensor == ID_TIME_SLEEP){ DEBUG_PRINT("reseived ID_TIME_SLEEP type var =");DEBUG_PRINTLN(message.type); if (message.type == V_VAR5) { time_sleep = message.getULong(); //получаем значение sleep_time DEBUG_PRINT("time_sleep = ");DEBUG_PRINTLN(time_sleep); } } } //функция отправки RSSI если используем RFM69 радио #ifdef MY_RADIO_RFM69 void sendRSSIReport() { int16_t rssiVal; char rssiStr[14]; rssiVal = transportGetSignalReport(SR_RX_RSSI); // snprintf(rssiStr,10,"rssi: %d%",rssiVal,"dBm"); sprintf (rssiStr, "rssi:%d dBm", rssiVal); send(msg_RSSI.set(rssiStr)); DEBUG_PRINTLN(rssiStr); //DEBUG_PRINT("TxRssi = ");DEBUG_PRINTLN(transportGetSignalReport(SR_TX_RSSI)); } #endif //функция отправки отчета состояния батареи void sendBatteryReport() { float p = vcc.Read_Perc(VCC_MIN, VCC_MAX, true); int batteryPcnt = static_cast<int>(p); sendBatteryLevel(batteryPcnt); DEBUG_PRINT("Battery is: ");DEBUG_PRINTLN(batteryPcnt); }
Help me figure out what I'm doing wrong? Why is not sending a new value to my node variable?
And why initially from the commandrequest (ID_TIME_SLEEP, S_CUSTOM, V_VAR5);
in the MyController does not create a variable of type V_VAR5?
Thanx!
-
RE: Virtual MQTT node.
I need to create a gateway, not a node, for sure! I did not guess.
Thanks for the advice, Jeeva! -
Virtual MQTT node.
Hi @jkandasa.
Now I use dashboard node-red as the control panel. I want to send and receive some variables to MyController. I'm going to do this through the built-in MQTT broker. How to read or write to a topic that does not belong to any existing node?
I thought, if I create a virtual node, it will be quite simple and understandable. How can I create a virtual MQTT node in MyController? -
VariableName to InfluxDB
Hi there.
It is possible to assign a unique name for each variable here
I want to transfer this unique name to InfluxDB as "Measurment" or "Tag". Tell me, please, how can I do this?
-
RE: Howto make Mycontroller sd-card friendly? (Highly experimental!!)
Hi @tag!
Is it possible to move the RAM also to the InfluxDB database?
-
RE: InfluxDB connection error
After I changed URL
https:\\localhost:8083
to
http:\\localhost:8086
everything worked well.
I entered the URL as shown in "1.1.0.Final.pdf"
-
InfluxDB connection error
I installed InfluxDB on Orange Pi Zero on this manual.
Connect it as an external server
Connect a variable as a resource
MyController does not write the value of the variable in InfluxDB. Manually I wrote down the values in the mysensors database and saw them. Looking at the log file, it appears that there is a connect error to port 8083Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8083 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
I can not understand what I'm doing wrong.
Just in case a detailed log.ProcessingException: RESTEASY004655: Unable to invoke request at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287) at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:436) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) at com.sun.proxy.$Proxy45.write(Unknown Source) at org.mycontroller.restclient.influxdb.InfluxDBClientImpl.write(InfluxDBClientImpl.java:94) at org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb.send(ExternalServerInfluxdb.java:112) at org.mycontroller.standalone.externalserver.ExternalServerEngine.executeSendPayload(ExternalServerEngine.java:72) at org.mycontroller.standalone.externalserver.ExternalServerEngine.selectServers(ExternalServerEngine.java:46) at org.mycontroller.standalone.externalserver.ExternalServerEngine.run(ExternalServerEngine.java:86) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8083 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283) ... 10 common frames omitted Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 20 common frames omitted 2018-01-01 19:13:10,808 ERROR [Thread-1398] [org.mycontroller.standalone.externalserver.ExternalServerEngine:75] Exception when sending data to server: ExternalServerInfluxdb(url=https://localhost:8083, trustHostType=ANY, database=mysensors, username=mycontroller, tags=host=mycontroller,location=skur), javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287) at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:436) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) at com.sun.proxy.$Proxy45.write(Unknown Source) at org.mycontroller.restclient.influxdb.InfluxDBClientImpl.write(InfluxDBClientImpl.java:94) at org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb.send(ExternalServerInfluxdb.java:112) at org.mycontroller.standalone.externalserver.ExternalServerEngine.executeSendPayload(ExternalServerEngine.java:72) at org.mycontroller.standalone.externalserver.ExternalServerEngine.selectServers(ExternalServerEngine.java:46) at org.mycontroller.standalone.externalserver.ExternalServerEngine.run(ExternalServerEngine.java:86) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8083 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283) ... 10 common frames omitted Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 20 common frames omitted 2018-01-01 19:13:11,992 ERROR [Thread-1399] [org.mycontroller.standalone.externalserver.ExternalServerEngine:75] Exception when sending data to server: ExternalServerInfluxdb(url=https://localhost:8083, trustHostType=ANY, database=mysensors, username=mycontroller, tags=host=mycontroller,location=skur), javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287) at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:436) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) at com.sun.proxy.$Proxy45.write(Unknown Source) at org.mycontroller.restclient.influxdb.InfluxDBClientImpl.write(InfluxDBClientImpl.java:94) at org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb.send(ExternalServerInfluxdb.java:112) at org.mycontroller.standalone.externalserver.ExternalServerEngine.executeSendPayload(ExternalServerEngine.java:72) at org.mycontroller.standalone.externalserver.ExternalServerEngine.selectServers(ExternalServerEngine.java:46) at org.mycontroller.standalone.externalserver.ExternalServerEngine.run(ExternalServerEngine.java:86) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8083 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283) ... 10 common frames omitted Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 20 common frames omitted 2018-01-01 19:13:27,121 ERROR [Thread-1400] [org.mycontroller.standalone.externalserver.ExternalServerEngine:75] Exception when sending data to server: ExternalServerInfluxdb(url=https://localhost:8083, trustHostType=ANY, database=mysensors, username=mycontroller, tags=host=mycontroller,location=skur), javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287) at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:436) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) at com.sun.proxy.$Proxy45.write(Unknown Source) at org.mycontroller.restclient.influxdb.InfluxDBClientImpl.write(InfluxDBClientImpl.java:94) at org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb.send(ExternalServerInfluxdb.java:112) at org.mycontroller.standalone.externalserver.ExternalServerEngine.executeSendPayload(ExternalServerEngine.java:72) at org.mycontroller.standalone.externalserver.ExternalServerEngine.selectServers(ExternalServerEngine.java:46) at org.mycontroller.standalone.externalserver.ExternalServerEngine.run(ExternalServerEngine.java:86) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8083 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283) ... 10 common frames omitted Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 20 common frames omitted 2018-01-01 19:13:42,375 ERROR [Thread-1401] [org.mycontroller.standalone.externalserver.ExternalServerEngine:75] Exception when sending data to server: ExternalServerInfluxdb(url=https://localhost:8083, trustHostType=ANY, database=mysensors, username=mycontroller, tags=host=mycontroller,location=skur), javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287) at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:436) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) at com.sun.proxy.$Proxy45.write(Unknown Source) at org.mycontroller.restclient.influxdb.InfluxDBClientImpl.write(InfluxDBClientImpl.java:94) at org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb.send(ExternalServerInfluxdb.java:112) at org.mycontroller.standalone.externalserver.ExternalServerEngine.executeSendPayload(ExternalServerEngine.java:72) at org.mycontroller.standalone.externalserver.ExternalServerEngine.selectServers(ExternalServerEngine.java:46) at org.mycontroller.standalone.externalserver.ExternalServerEngine.run(ExternalServerEngine.java:86) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8083 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283) ... 10 common frames omitted Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 20 common frames omitted 2018-01-01 19:13:57,137 ERROR [Thread-1402] [org.mycontroller.standalone.externalserver.ExternalServerEngine:75] Exception when sending data to server: ExternalServerInfluxdb(url=https://localhost:8083, trustHostType=ANY, database=mysensors, username=mycontroller, tags=host=mycontroller,location=skur), javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287) at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:436) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:102) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) at com.sun.proxy.$Proxy45.write(Unknown Source) at org.mycontroller.restclient.influxdb.InfluxDBClientImpl.write(InfluxDBClientImpl.java:94) at org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb.send(ExternalServerInfluxdb.java:112) at org.mycontroller.standalone.externalserver.ExternalServerEngine.executeSendPayload(ExternalServerEngine.java:72) at org.mycontroller.standalone.externalserver.ExternalServerEngine.selectServers(ExternalServerEngine.java:46) at org.mycontroller.standalone.externalserver.ExternalServerEngine.run(ExternalServerEngine.java:86) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8083 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:283) ... 10 common frames omitted Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 20 common frames omitted```
-
RE: Mycontroller 2.x ideas
@jkandasa
Thank you for the project. I like MyController a well-developed transport layer, a lot of communication interfaces. I like using the MQTT broker. There is not enough user-friendly dashboard with drag and drop programming, so that the user does not need to delve into the subtleties of html, css, etc. to connect third-party widgets. I want a script editor with direct access to InfluxDB, so that you can make decisions on historical data, including the old one.
I do not know how to write this all at https://github.com/mycontroller-org/mycontroller/projects/1 and what open sourse resources to use. So I write the wishes in this topic.
In general, MyController cool thing!