4refr0nt / iot-manager-demo Goto Github PK
View Code? Open in Web Editor NEWDemo sketches for IoT Manager https://play.google.com/store/apps/details?id=ru.esp8266.iotmanager
License: MIT License
Demo sketches for IoT Manager https://play.google.com/store/apps/details?id=ru.esp8266.iotmanager
License: MIT License
I'm new to IOT Manager so please go easy if I've missed the point.
I have Node-Red sending setup commands - no problem - I have a couple of toggle switches on one page and a couple of water fill gauges on another.
The gauges appear when I send a value (which is odd - I'd have expected them to appear anyway)... and the toggle switches change when I send 1 or 0. So all is well.
But when I flick pages back and forth on the phone (Android HTC ONE M8), the values of the toggle switches stay there, but the water fill guages disappear and only reappear when I send new values to them - yet when you change pages there is no way to inform MQTT that the page has changed - and that you need to send update values.
Am I missing something?
The connection to hiveMQ cloud is failing and i can;t see any detailed error message.
App Just says "Broker not connected".
I have confirmed that i am able to connect to this broker over over wss on port 8884 using a different client.
so the broker seems to work fine.
The IDE examples for ESP8266 (IoTManager.ino and IoTManager2.ino) will no longer compile under Arduino IDE 1.8.1 and PubSub 2.6. It would appear that the syntax of the callback function has changed and this definition is no longer valid:
void callback(const MQTT::Publish& sub)
Can you update the examples, please?
Hi!
I've noticed android app disappeared in google play store. I need it. Your app is the best among other MQTT dashboards. Can you please upload it anywhere?
Good evening!
I am using IOT manager on iphone 6, ios 11.
After closing of application I need to enter all connection settings one more time.
Is this an issue or I`m doing something wrong?
Ddgg
Hi, I put the IDS I got in IoT Manager (iOS version) into the ESP app, but haven't received anything on the iOS device. I can see it in serial monitor:
PUSH: connecting to onesignal.com
PUSH: try to send push notification...
PUSH: requesting URL: /api/v1/notifications
PUSH: done.
Btw, is it possible to use my OneSignal account and set my own app_id in IoT Manager mobile apps?
Hi,
I like your software. It's an excellent approach.
I will want to know if there is a solution to insert html inputs like textbox, form, dropdown and others.
It would extend the features in incredible ways.
With an input text, I will be able to ask the user for his identification ...
Simon
When using a topic prefix without a leading "/", e.g. "IoTmanager" instead of "/IoTmanager", nothing happens on the dashboard and the log shows "Unexpected message arrived".
It is allowed to use a leading forward slash in MQTT, for example /myhome/groundfloor/livingroom. But that introduces a unnecessary topic level with a zero character at the front. That should be avoided, because it doesn’t provide any benefit and often leads to confusion. (http://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices)
Hi Mr Victor
Thanks for added new item in iotmanager ver 2
If change prefix from /IoTmanager to /IoTmanager/m for example in settings of IoTmanager and in my app,
IoTmanager still use /IoTmanager/+/config instead of /IoTmanager/m/+/config for load configuration of dashboard. For msg with topic like /IoTmanager/m/deviceID/config in logs I see "Unexpected message arrived "
Hi there. Great app you've put together. Congrats.
I'm willing to use your app as the front end for my projects, but my clients are from Brazil. Although there is the Spanish translation, it is not like Portuguese.
Can I help you translating this App to Portuguese?
Thanks.
hi,
i can not find iot manager on appstore, what happen?
Hi,
I have problem with connecting with my new added connection , its not connecting with local ip address or a dns external broker , have no idea what I doing wrong , it looks like it does not even try to connect. The app shows in log that it tries but I see no traces in server logs. Any clue ?
Piotr
Hi
how its possible we use sim800 and esp8266 for MQTT by 4refr0nt projects
`#define TINY_GSM_MODEM_SIM800
// Set serial for debug console (to the Serial Monitor, default speed 115200)
// Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro
//#define SerialAT Serial1
// or Software Serial on Uno, Nano
#define SerialMon Serial
#include <TinyGsmClient.h>
#include <PubSubClient.h>
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(8, 7); // RX, TX
// See all AT commands, if wanted
//#define DUMP_AT_COMMANDS
// Define the serial console for debug prints, if needed
#define TINY_GSM_DEBUG SerialMon
// Range to attempt to autobaud
#define GSM_AUTOBAUD_MIN 9600
#define GSM_AUTOBAUD_MAX 115200
// Add a reception delay - may be needed for a fast processor at a slow baud rate
//#define TINY_GSM_YIELD() { delay(2); }
// Define how you're planning to connect to the internet
#define TINY_GSM_USE_GPRS true
#define TINY_GSM_USE_WIFI false
// set GSM PIN, if any
#define GSM_PIN ""
// Your GPRS credentials, if any
const char apn[] = "mtnirancell";
const char gprsUser[] = "";
const char gprsPass[] = "";
int r ;
const char* deviceid = "iot912560" ;
// Your WiFi connection credentials, if applicable
const char wifiSSID[] = "YourSSID";
const char wifiPass[] = "YourWiFiPass";
// MQTT details
const char* broker = "m12.cloudmqtt.com";
const char* topicLed = "/IoTmanager/led";
const char* topicInit = "/IoTmanager/init";
const char* topicLedStatus = "/IoTmanager/ledStatus";
// Just in case someone defined the wrong thing..
#if TINY_GSM_USE_GPRS && not defined TINY_GSM_MODEM_HAS_GPRS
#undef TINY_GSM_USE_GPRS
#undef TINY_GSM_USE_WIFI
#define TINY_GSM_USE_GPRS false
#define TINY_GSM_USE_WIFI true
#endif
#if TINY_GSM_USE_WIFI && not defined TINY_GSM_MODEM_HAS_WIFI
#undef TINY_GSM_USE_GPRS
#undef TINY_GSM_USE_WIFI
#define TINY_GSM_USE_GPRS true
#define TINY_GSM_USE_WIFI false
#endif
#ifdef DUMP_AT_COMMANDS
#include <StreamDebugger.h>
StreamDebugger debugger(SerialAT, SerialMon);
TinyGsm modem(debugger);
#else
TinyGsm modem(SerialAT);
#endif
TinyGsmClient client(modem);
PubSubClient mqtt(client);
#define LED_PIN 13
int ledStatus = LOW;
long lastReconnectAttempt = 0;
void mqttCallback(char* topic, byte* payload, unsigned int len) {
SerialMon.print("Message arrived [");
SerialMon.print(topic);
SerialMon.print("]: ");
SerialMon.write(payload, len);
SerialMon.println();
// Only proceed if incoming message's topic matches
if (String(topic) == "/IoTmanager" ) {
ledStatus = !ledStatus;
digitalWrite(LED_PIN, ledStatus);
mqtt.publish("/IoTmanager/iot912/status", "{"status":"iot5814"}");
}
}
boolean mqttConnect() {
SerialMon.print("Connecting to ");
SerialMon.print(broker);
// Connect to MQTT Broker
// boolean status = mqtt.connect("/IoTmanager");
// Or, if you want to authenticate MQTT:
boolean status = mqtt.connect(deviceid, "test", "test");
if (status == false) {
SerialMon.println(" fail");
return false;
}
SerialMon.println(" success");
mqtt.publish(topicInit, "/IoTmanager started");
mqtt.subscribe("/IoTmanager/#");
return mqtt.connected();
}
void setup() {
// Set console baud rate
SerialMon.begin(115200);
delay(10);
pinMode(LED_PIN, OUTPUT);
// !!!!!!!!!!!
// Set your reset, enable, power pins here
// !!!!!!!!!!!
SerialMon.println("Wait...");
// Set GSM module baud rate
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
SerialAT.begin(9600);
delay(3000);
// Restart takes quite some time
// To skip it, call init() instead of restart()
SerialMon.println("Initializing modem...");
modem.restart();
// modem.init();
String modemInfo = modem.getModemInfo();
SerialMon.print("Modem Info: ");
SerialMon.println(modemInfo);
#if TINY_GSM_USE_GPRS
// Unlock your SIM card with a PIN if needed
if ( GSM_PIN && modem.getSimStatus() != 3 ) {
modem.simUnlock(GSM_PIN);
}
#endif
#if TINY_GSM_USE_WIFI
// Wifi connection parameters must be set before waiting for the network
SerialMon.print(F("Setting SSID/password..."));
if (!modem.networkConnect(wifiSSID, wifiPass)) {
SerialMon.println(" fail");
delay(10000);
return;
}
SerialMon.println(" success");
#endif
#if TINY_GSM_USE_GPRS && defined TINY_GSM_MODEM_XBEE
// The XBee must run the gprsConnect function BEFORE waiting for network!
modem.gprsConnect(apn, gprsUser, gprsPass);
#endif
SerialMon.print("Waiting for network...");
if (!modem.waitForNetwork()) {
SerialMon.println(" fail");
delay(5000);
return;
}
SerialMon.println(" success");
if (modem.isNetworkConnected()) {
SerialMon.println("Network connected");
}
#if TINY_GSM_USE_GPRS
// GPRS connection parameters are usually set after network registration
SerialMon.print(F("Connecting to "));
SerialMon.print(apn);
if (!modem.gprsConnect(apn, gprsUser, gprsPass)) {
SerialMon.println(" fail");
delay(10000);
return;
}
SerialMon.println(" success");
if (modem.isGprsConnected()) {
SerialMon.println("GPRS connected");
}
#endif
// MQTT Broker setup
mqtt.setServer(broker, 10515);
mqtt.setCallback(mqttCallback);
}
void loop() {
if (!mqtt.connected()) {
SerialMon.println("=== MQTT NOT CONNECTED ===");
r++;
if (r>=10 ){modem.restart();r=0;}
// Reconnect every 10 seconds
unsigned long t = millis();
if (t - lastReconnectAttempt > 10000L) {
lastReconnectAttempt = t;
if (mqttConnect()) {
lastReconnectAttempt = 0;
}
}
delay(100);
return;
}
mqtt.loop();
}`
Mr victor
is it possible we send a command from esp to iotmanager App and then show notification message in cellphone when App is closed without notification server same onesiginal or pushbullet?
Hi there, it's me again.
Would it be at all possible for you to add text box input in the near future release?
This text box could be used to name a button at run time, for instance.
But my application, is a biometric access control. I would use this feature to display the name of users entering in the facility.
Thanks.
good afternoon.
I do not know if I need to write, I'm trying to make a smart house, I've set everything up to work with your application, and I have comments on the offer.
Hello. Not sure if this is a bug. But anyway.
Is there any way to change toggle switch status not from application. Now i try to explain what i mean.
For example i have few devices. When i toggle a switch in one of my devices how can i do that changes happen on the other. I mean how can i do that switch changes on the other device.
I looked thorough code examples and could not find answer. Is that already implemented? Where should i look? If it's not implemented yet will you implement this in future?
Thanks for your great work!
Can you confirm if IOT manager works with ios 11 on iPhone. I have just upgraded my iPhone to ios 11 and it now will not connect to the broker (CloudMQTT using MQTT Websockets).
Thanks,
Murray
I get IotManager 2.0, thank you so much
But it can not use "widget": "range"
Thank you so much
I don't see any progress in the development for a long time, it this project still alive?
hi
i have tested the examples and it's not compile because of the dependency library PubSubClient library v 1.91.1
which is not the same version and not same author also
regards,
I am not able to connect multiple esp8266 to same app
Hi
can you share app source code.
thanks
How can i setup a Dashboard for a device, that only sends its data over MQTT. Device is closed source (Shelly 1PM). I can configure MQTT broker and topic and use the date in Node-Red, but i need a way to display the data on mobile phones (Android and iOS).
Hi 4refr0nt
First thank you for IoT-Manager. It is a excellent system.
Secondly i was wondering if it is possible to use simple-btn as a radio button.
something like:
They would all be publishing to the same topic and it is not nessesery to be subscribed to anything.
So i imagin something like a radio button group.
Is this supported?
Hi, I'm working on a project to get sensors data from esp8266 and show them on IOT manager and control some relays... I've connected esp8266 to the broker and I used some examples (IDE) like Iotmanager 2 & 3 .ino and it worked. But my problem is that, I can't creat widget to do what I need like showing temp and hum and others , I really don't understand Widgets on Iot manager! Please help me.
I want to show 2 little fillgauge widget on top of the page to show up water level and Hum level, under that temperature and water temperature (DS18B20) and ADC using anydata.
Bottom of the page controling relays. My problem is only showing widgets
Sry for my english. Thanks
Hallo, how could I modify the mosquitto.conf file to let it work with wss on port 9001 and not tcp on 1883 ???
I tried to add:
listener 9001
protocol websockets
but... nothing to do, I always get Error "broker not connected".
Maybe the problem is related to "prefix" that is a field I don't know what I have to put in ???
Thanks so much
It is not possible to leave the field "Path (optional)" blank or add a path that does not start with '/'
All my devices do not use the / (=empty level in MQTT), as described as best practise:
https://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices/
First point "Never use a leading forward slash"...
Hi Mr,Victor.
I test reconnect of iot manager and have problem:
If change user to wrong login, then exit app (exit playground).
When open iot manager again, I can not tap to setting. Iot manager loop for ever reconnect.
when I send in config like
{"id":1,"data":2,"...
after button click I get data=1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.