rroemhild / hodd Goto Github PK
View Code? Open in Web Editor NEWHomie Device Discovery
Home Page: https://rroemhild.github.io/hodd/
License: MIT License
Homie Device Discovery
Home Page: https://rroemhild.github.io/hodd/
License: MIT License
I have mosquitto running on a raspberry. No user, no pass, no SSL.
Cloned the repository and followed instructions. I only see a white screen with the settings button in the top right corner (tried FF and Chrome on Windows).
The settings are obviously saved, but "connect" doesn't seem to do anything.
Hello,
Thank you very much for this helpful little tool! I'm using it successfully to monitor and control my self-made smarthome devices.
A minor annoyance for me is that the Settings dialog comes up each time I open the page on my iPhone, even though I've hard-coded the correct (and only possible settings) directly in the app.js file. Is there a way to bypass that modal dialog and trigger the MQTT connect automatically?
Although I'm not a web developer (just a plain old Java programmer), I've tried to achieve it myself with the following changes:
settingsHandleOK(bvModalEvt) {
this.doConnect();
},
doConnect() {
BASE_TOPIC = this.topic;
DISCOVERY_TOPIC = `${this.topic}/+/$homie`;
connect_to_mqtt(this);
}
<b-modal
id="modal-settings"
ref="modal"
title="MQTT Settings"
ok-title="Connect"
@ok="settingsHandleOK"
@on.keyup.enter="settingsHandleOK"
auto-focus-button="ok"
invisible
>
<script>
window.onload = function(event) {
client_status.doConnect();
};
</script>
It seems to work almost correctly. The dialog does not appear. MQTT connect does happen. The page is rendered and filled with my devices. The only remaining (blocking) problem is that the window scrollbar does not appear, so that I can't scroll down in long devices.
Do you have some recommendations for me?
Thanks and all the best
/Eike
Hi again,
I found a little spelling you might to fix:
In the tab "Device" the label "Devicde ID" is incorrectly spelled.
Thanks for your work!
Hi there,
it would be good to give an example in your README for a MQTT broker that supports Web Sockets!
Thanks!
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.