@kristfrizh Hii
i just figured it out
we don't use post at all with those syntax
thank you
NEWS
Latest posts made by kristfrizh
-
RE: Simple_api adapter syntax problem with esp32
-
Simple_api adapter syntax problem with esp32
Hii
I have a project to send data using MQTT and restfull api using simple_api adapter.
I have succed to send data using post via web browserRight now, i want to use esp32 with post and get http to sending and receive data.
I want post the data the same like this in web browser via esp32192.168.0.120:8087/set/try_simple_api2?value=2
I have build some code like this but still sent got nothing.
anyone can help me?
thank you very much regards#include <WiFi.h> #include <HTTPClient.h> const char* ssid = "asdasd"; const char* password = "asdasd"; const char* serverName = "http://192.168.0.120:8087/"; unsigned long lastTime = 0; unsigned long timerDelay = 2000; void setup() { Serial.begin(115200); WiFi.begin(ssid, password); Serial.println("Connecting"); while(WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.print("Connected to WiFi network with IP Address: "); Serial.println(WiFi.localIP()); Serial.println("Timer set to 5 seconds (timerDelay variable), it will take 5 seconds before publishing the first reading."); } void loop() { if ((millis() - lastTime) > timerDelay) { if(WiFi.status()== WL_CONNECTED){ HTTPClient http; http.begin(serverName); http.addHeader("Content-Type", "text/plain"); int httpResponseCode = http.POST("/set/try_simple_api2?value=7"); Serial.print("HTTP Response code: "); Serial.println(httpResponseCode); // Free resources http.end(); } else { Serial.println("WiFi Disconnected"); } lastTime = millis(); } }
-
RE: Configuring IOBROKER for the first time problem
thank your for your hospitality
I have build a new system with I7 and linux ubuntu 18.04.
IObroker works wonderfully
thank you once again
regards -
RE: Configuring IOBROKER for the first time problem
@homoran
i have tried 8011 and 8000 also tried 9000 and 9001.
but still the same problem.wow, i just knew that XEON compatibility issues with iobroker.
ok will try to changes the XEON (I still not know how but will figure it out).
I'll update my trial with a new CPU asap.
thank you very much for the knowledge.
regards! -
RE: Configuring IOBROKER for the first time problem
I'm using this VM for server
but it's totally new because every time i tried a new language i create a new one then combine it to fix server i want.
I have tried php,nodejs,mqtt,python so far and all works (for learning purposes).I'm not quite know about the AMD64 because there is not option for me to choose the type in google cloud. but here is the overall system i get from the google cloud.
Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 46 bits physical, 48 bits virtual CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 2 Core(s) per socket: 1 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) CPU @ 2.00GHz Stepping: 3 CPU MHz: 2000.104 BogoMIPS: 4000.20 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 39424K NUMA node0 CPU(s): 0,1
I have tried run iobroker (with the instances above) but still the same error said that EADDRINUSE
even i changed it back to 9001 and 9000Right now i will try to create a new VM
thank you for your hospitality
regards -
RE: Configuring IOBROKER for the first time problem
should be the port and bind in iobroker list instances be like this?
system.adapter.admin.0 : admin : try1 - enabled, port: 8081, bind: 0.0.0.0, run as: admin + instance is alive
i follow some code from the forum to changes the instances
cd /opt/iobroker iobroker set admin.0 --bind 0.0.0.0 iobroker set admin.0 --port 8081
thank you
-
RE: Configuring IOBROKER for the first time problem
@homoran
thank you for the reply again!!ok will do that
I'll inform you after i start a new VMmy debian is
debian-10-buster-v20210512 -
RE: Configuring IOBROKER for the first time problem
@homoran
thank you for your reply+ system.adapter.admin.0 : admin : try1 - enabled, port: 8089, bind: 8081, run as: admin + instance is alive
I have added a new admin in 8089 but still not working
I have doubt with the version of my dependencies.
Is it because the NPM, nodejs,node, and js-controller?
my NPM version is 6.14.13
nodejs is 12.22.1
node is 12.22.1 -
Configuring IOBROKER for the first time problem
Hello
I'm very new with this application.
I have a problem with my installation. I cannot enter the admin page with mine port 8081.i follow this intruction for the installation :
installation pagesI have configure the port in my VM for port 8081.
I use linux debian buster with VM.I have been searching the answer from here.
-
iobroker community (off course with google translate)
I have also tried this code.
sudo node node_modules/iobroker.js-controller/controller.js --logs
and the outputs are always (even i changes the port from 9000 and 9001 to others) :
2021-06-07 12:22:38.027 - info: host.try1 iobroker.js-controller version 3.2.16 js-controller starting 2021-06-07 12:22:38.031 - info: host.try1 Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker 2021-06-07 12:22:38.032 - info: host.try1 hostname: try1, node: v12.22.1 2021-06-07 12:22:38.032 - info: host.try1 ip addresses: 10.184.0.2 fe80::4001:aff:feb8:2 2021-06-07 12:22:38.145 - info: host.try1-Server Error inMem-objects listening on port 8011: Error: listen EADDRINUSE: address already in use 127.0.0.1:8011 ^[[A^[[B2021-06-07 12:23:08.065 - error: host.try1 No connection to databases possible, restart 2021-06-07 12:23:08.068 - info: host.try1 iobroker _restart 2021-06-07 12:23:08.273 - info: host.try1 iobroker Starting node restart.js
anyone can help me please?
am i do something wrong?
thank you very much for your kindness
regards