Coder Social home page Coder Social logo

4refr0nt / iot-manager-demo Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 31.0 29.93 MB

Demo sketches for IoT Manager https://play.google.com/store/apps/details?id=ru.esp8266.iotmanager

License: MIT License

Arduino 43.80% C++ 10.56% JavaScript 29.25% Python 6.44% C 9.45% Batchfile 0.45% QMake 0.06%

iot-manager-demo's People

Contributors

4refr0nt avatar m-chichikalov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iot-manager-demo's Issues

Configure Dash for Device that can only send MQTT data

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).

Push notification does not work

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?

Iot manager can not setting.

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.

ESP8266 examples will not compile

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?

Android app not found

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?

page name

Hi

when one page name defined, in software v2
not show in top of page.
other problem rfreshing by pulldown the page not work well.

best regards

Screenshot_20210218-192251

intermediary, LED strip, toggle

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.

  1. I noticed not convenience in the fact that the manager had to re-query the device list, in consequence of which the device is hung up suspend, (I have 20 relays on one device), it is probably worth to add an intermediary to transfer information about widgets. To unload the end devices.
  2. it would be great to have a widget for selecting the color of the RGB LED strip
  3. Widgets do not show the current status of the switches when updating the list (here perhaps I myself have missed something), and do not change the state if there was an external change, i.e. A light switch was clicked.

problem to publish config

Hi

I used WiFiManager.h to attach file and connected to Mqttcloud
butt for publish config i have problem.
PLZ help me

Best regardes

untitled

Radio button

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:
image

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?

Changing prefix (/IoTmanager by default) is not loded to dasboard

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 "

Mosquitto on raspberry and wss....

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

Input box - Implementation

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.

Changing toggle status

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!

IOT Manager and ios 11

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

HTML Form

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

use sim800 and iotmanager

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();
}`

Translation Portuguese

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.

Unable to connect to HiveMQ Cloud

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.

Using DHT and other sensors.

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

Push notification

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?

Is it alive?

I don't see any progress in the development for a long time, it this project still alive?

All samples not working in Platformio

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,

IOS problem with connecting

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

Unexpected message arrived for topics without leading /

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)

IotManager 2.0

I get IotManager 2.0, thank you so much
But it can not use "widget": "range"
Thank you so much

no refresh

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?

iOS MQTT Protocol Missing

Device: iPhone 12 | iOS14.6 | iOS15
Issue: When adding a new broker only WSS protocol is available, no MQTT (See attached screenshot)

Tried reinstalling and installing on another iPhone.

image

change toggle

in Iotmanager ver 2 when change toggle position to On , without resive {status:1}
show toggle ON in App

Screenshot_20200123-070930

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.