Receive content update notifications and new demo scripts by signing up for the newsletter using the form below.
Buy Me A Coffee
if you find this useful and would like to make a contribution, then you can do so by clicking here.
Please rate? And use Comments to let me know more
9 comments
Downloaed it on raspberry 3B. Used apache2 for the webserver. MQTT broker running on the sameraspberry. Broker works fine and I can get data on ios MQTTAnalyzer app. I open the webpage in chrome on another mac. Fill in the form but get this response in the console:
‘Websocket connection to ‘ws://192.168.1.33:8083/mqtt’ mqttws31.js:979 failed:
I am trying to publish som mqtt data on a webpage and looked into your examples.
Your script require Websockets (SSL) ?
Can Websockets use username and password or must we use Certificate?
Bart… be kind… Yes, it maybe full of errors… but you should appreciate his effort and the time he put into this to teach the world how one can go about doing this. I am sure there are plenty of websites out there that has more complete or working web pages on DISPLAYING DATA on webpages using MQTT. To be honest, I like his no nonsense and straight the point web page on this subject; Short and SWEET. Some self-help websites have 20 page long article on doing some simple task which can be condensed down to 1 page. lol… So, give him a break and thank him…
Keep up the good work, Steveo… Cheers!!! and Thank you for website… 🙂
Downloaed it on raspberry 3B. Used apache2 for the webserver. MQTT broker running on the sameraspberry. Broker works fine and I can get data on ios MQTTAnalyzer app. I open the webpage in chrome on another mac. Fill in the form but get this response in the console:
‘Websocket connection to ‘ws://192.168.1.33:8083/mqtt’ mqttws31.js:979 failed:
what am I doing wrong?
The broker need to be configured to use websockets.
http://www.steves-internet-guide.com/mqtt-websockets/
rgds
steve
I am trying to publish som mqtt data on a webpage and looked into your examples.
Your script require Websockets (SSL) ?
Can Websockets use username and password or must we use Certificate?
yes it requires websockets and yes you can use username/password.
Rgds
Steve
Very poor design, it’s full of errors.
Bart… be kind… Yes, it maybe full of errors… but you should appreciate his effort and the time he put into this to teach the world how one can go about doing this. I am sure there are plenty of websites out there that has more complete or working web pages on DISPLAYING DATA on webpages using MQTT. To be honest, I like his no nonsense and straight the point web page on this subject; Short and SWEET. Some self-help websites have 20 page long article on doing some simple task which can be condensed down to 1 page. lol… So, give him a break and thank him…
Keep up the good work, Steveo… Cheers!!! and Thank you for website… 🙂
In web-page-monitor2.htm there are errors in the Outside Light line of the table
“`
Outside Light:
Outside Temperature:
Outside Light:
Outside Temperature:
“`
I believe there is an error in web-page-monitor2.htm
Original:
Outside Light:
Outside Temperature:
Corrected:
Outside Light:
Outside Temperature: