Simplest way to get MQTT output into a web page - Raspberry Pi Forums


as title, looking simple solutions! poor coder , complex beyond capabilities .....

far, have arduino reading temperatures, humidity, light, couple of analog inputs , couple of binary (on/off) inputs. running pubsubclient giving mqtt output.
have rasbperry pi3 running mqtt , getting data arduino. running apache , publishes static web page using "wormhole" approach internet- isp gives me issues (long story).
have node red running , pretty, quick, not sure a) being able modify , b) issues around getting through wormhole.

thoughts around getting data mqtt html or php , getting stuck.

maybe use websocket approach, seems complex , heavy solution - update rates 12 readings updated once minute.
there "php library" (terminology?) connect mqtt php directly?
there potential solution using (python?) data mqtt maybe intermediate file, read file php?

there loads of potential solutions. can me narrow down choices can cope with.....
in advance
bruce

install mosquitto 1.4.10 , it's got websockets support.

viewtopic.php?f=32&t=159000


raspberrypi



Comments