MQTT: Rozdiel medzi revíziami
Zo stránky SensorWiki
Bez shrnutí editace |
|||
(Jedna medziľahlá úprava od rovnakého používateľa nie je zobrazená.) | |||
Riadok 7: | Riadok 7: | ||
* on-line vizualizácia a test https://shiftr.io/ | * on-line vizualizácia a test https://shiftr.io/ | ||
* Manual to Processing library https://docs.shiftr.io/manuals/processing/ | * Manual to Processing library https://docs.shiftr.io/manuals/processing/ | ||
== Mosquitto == | |||
Pokúsili sme sa nainštalovať mosquitto broker aj na server senzor.robotika.sk | |||
priamo na nom to fungovalo dobre, ešte treba nejako zariadiť, aby sa to dalo | |||
aj zvonka a nielen cez localhost. Asi sa nevyhneme tomu zabezpeceniu, hoci na | |||
pokusy by mi stacilo aj bez mena a bez hesla. | |||
Info: | |||
* http://www.steves-internet-guide.com/install-mosquitto-linux/ | |||
* http://www.steves-internet-guide.com/mossquitto-conf-file/ | |||
* https://learn.adafruit.com/diy-esp8266-home-security-with-lua-and-mqtt/configuring-mqtt-on-the-raspberry-pi | |||
* https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-16-04 | |||
Nejaky tester k tomu: | |||
* https://www.eclipse.org/paho/clients/js/utility/ | |||
== MQTT a Thingsboard.io == | |||
Pri príprave príkladov sme čerpali informácie z rozličných zdrojov, napríklad: | |||
* https://thingsboard.io/docs/getting-started-guides/helloworld/ | |||
* https://thingsboard.io/docs/user-guide/integrations/mqtt/ | |||
* https://thingsboard.io/docs/samples/arduino/temperature/ | |||
* http://www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ - tuto je navod ako spravit samotny dashboard !!! | |||
* A tu je zatial pokusny vysledok https://demo.thingsboard.io/dashboards/95cf1570-777f-11ea-b382-7d0ef2a682d3 | |||
== Node-Red a Thingsboard.io == | |||
Toto by malo prísť až celkom na záver, keď všetko bude fungovať, tak si ukážeme | |||
ako sa to dá pekne zjednodušiť a sprehľadniť cez node-red | |||
Najprv local dashboard | |||
* https://nodered.org/docs/ | |||
* http://noderedguide.com/lecture-7-node-red-dashboard-part2/ | |||
* http://noderedguide.com/list-of-examples-used-in-the-lectures/ | |||
* https://fred.sensetecnic.com/ - fred je online prostredie, treba si pozriet aj priklady | |||
Potom cez mqtt aj na serveri | |||
* https://iotdesignpro.com/projects/interface-arduino-with-node-red-to-send-sensor-data-on-webpage | |||
* https://www.arduinoslovakia.eu/blog/2019/4/node-red--arduino-a-ds18b20 | |||
* https://digitallabs.mmu.ac.uk/using-node-red-to-visualise-sensor-data-over-the-internet-without-writing-code-part-2/ | |||
== MQTT a Serial == | |||
Teoreticky by protokol mal fungovat nielen na Ethernete, ale aj na inom mediu, teda aj na Seriovej linke. Teoreticky. | |||
Prakticky nevieme, ale existuju rozlicne brany (gateway), niektore bezia aj na RPi, tak by to mohlo ist. Vieme spravit | |||
gateway cez Node-Red, tam to ide celkom lahko. | |||
Toto tu treba vyskusat postupne: | |||
* https://github.com/fabvalaaah/SerialMQTTGatewayJS | |||
* https://stackoverflow.com/questions/37636072/mqtt-serial-message-without-ethernet | |||
* https://github.com/vortex314/serial2mqtt | |||
* https://arduino.stackexchange.com/questions/53850/mqtt-over-serial | |||
* https://www.metacodes.pro/funcodes/blog/using_tty2mqtt_to_bridge_between_serial_communication_and_mqtt/ | |||
* https://www.mysensors.org/about/network | |||
Toto s tym asi nesuvisi, ale vyzera to dobre: | |||
* https://github.com/umer0586/SensorServer ale funguje to asi len v ramci jednej WiFi siete. |
Aktuálna revízia z 13:49, 18. máj 2022
Základné informácie o protokole MQTT nájdete
- http://mqtt.org/
- Tutorial MQTT Essentials
- Thingsboard.io integration https://thingsboard.io/docs/user-guide/integrations/mqtt/
- Lekcia na UPJŠ v slovenčine https://ics.upjs.sk/~opiela/iot/post/06-mqtt/
- on-line vizualizácia a test https://shiftr.io/
- Manual to Processing library https://docs.shiftr.io/manuals/processing/
Mosquitto
Pokúsili sme sa nainštalovať mosquitto broker aj na server senzor.robotika.sk priamo na nom to fungovalo dobre, ešte treba nejako zariadiť, aby sa to dalo aj zvonka a nielen cez localhost. Asi sa nevyhneme tomu zabezpeceniu, hoci na pokusy by mi stacilo aj bez mena a bez hesla.
Info:
- http://www.steves-internet-guide.com/install-mosquitto-linux/
- http://www.steves-internet-guide.com/mossquitto-conf-file/
- https://learn.adafruit.com/diy-esp8266-home-security-with-lua-and-mqtt/configuring-mqtt-on-the-raspberry-pi
- https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-16-04
Nejaky tester k tomu:
MQTT a Thingsboard.io
Pri príprave príkladov sme čerpali informácie z rozličných zdrojov, napríklad:
- https://thingsboard.io/docs/getting-started-guides/helloworld/
- https://thingsboard.io/docs/user-guide/integrations/mqtt/
- https://thingsboard.io/docs/samples/arduino/temperature/
- http://www.steves-internet-guide.com/thingsboard-mqtt-dashboard/ - tuto je navod ako spravit samotny dashboard !!!
- A tu je zatial pokusny vysledok https://demo.thingsboard.io/dashboards/95cf1570-777f-11ea-b382-7d0ef2a682d3
Node-Red a Thingsboard.io
Toto by malo prísť až celkom na záver, keď všetko bude fungovať, tak si ukážeme ako sa to dá pekne zjednodušiť a sprehľadniť cez node-red
Najprv local dashboard
- https://nodered.org/docs/
- http://noderedguide.com/lecture-7-node-red-dashboard-part2/
- http://noderedguide.com/list-of-examples-used-in-the-lectures/
- https://fred.sensetecnic.com/ - fred je online prostredie, treba si pozriet aj priklady
Potom cez mqtt aj na serveri
- https://iotdesignpro.com/projects/interface-arduino-with-node-red-to-send-sensor-data-on-webpage
- https://www.arduinoslovakia.eu/blog/2019/4/node-red--arduino-a-ds18b20
- https://digitallabs.mmu.ac.uk/using-node-red-to-visualise-sensor-data-over-the-internet-without-writing-code-part-2/
MQTT a Serial
Teoreticky by protokol mal fungovat nielen na Ethernete, ale aj na inom mediu, teda aj na Seriovej linke. Teoreticky. Prakticky nevieme, ale existuju rozlicne brany (gateway), niektore bezia aj na RPi, tak by to mohlo ist. Vieme spravit gateway cez Node-Red, tam to ide celkom lahko.
Toto tu treba vyskusat postupne:
- https://github.com/fabvalaaah/SerialMQTTGatewayJS
- https://stackoverflow.com/questions/37636072/mqtt-serial-message-without-ethernet
- https://github.com/vortex314/serial2mqtt
- https://arduino.stackexchange.com/questions/53850/mqtt-over-serial
- https://www.metacodes.pro/funcodes/blog/using_tty2mqtt_to_bridge_between_serial_communication_and_mqtt/
- https://www.mysensors.org/about/network
Toto s tym asi nesuvisi, ale vyzera to dobre:
- https://github.com/umer0586/SensorServer ale funguje to asi len v ramci jednej WiFi siete.