Advertisement
bastide

Installation raspberry - grove -mqtt

Mar 14th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.24 KB | None | 0 0
  1. # Tutorial grovepi
  2. https://www.dexterindustries.com/grovepi-tutorials-documentation/
  3.  
  4. # Description des ports grovepi
  5. https://www.dexterindustries.com/GrovePi/engineering/port-description/
  6.  
  7. # Installation logiciel grove
  8. sudo curl -kL dexterindustries.com/update_grovepi | bash
  9.  
  10. # Exemples grovepi
  11. # exemples python dans GrovePi/Software/Python
  12. sudo git clone https://github.com/DexterInd/GrovePi
  13.  
  14. # Installation mqtt
  15. sudo wget https://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
  16. sudo apt-key add mosquitto-repo.gpg.key
  17. cd /etc/apt/sources.list.d/
  18. sudo wget http://repo.mosquitto.org/debian/mosquitto-stretch.list
  19. sudo apt-get update
  20. sudo apt-get install mosquitto mosquitto-clients
  21.  
  22. # installation bibliothèque python paho mqtt
  23. sudo pip install paho-mqtt
  24.  
  25. # Démarrage / Arrêt du serveur mosquitto
  26. sudo /etc/init.d/mosquitto stop
  27. sudo /etc/init.d/mosquitto start
  28.  
  29. # Test du broker ouvert mosquitto.org
  30. mosquitto_sub -h test.mosquitto.org -t "#" -v
  31.  
  32. # Exemple mqtt python
  33. git clone https://rbastide@bitbucket.org/rbastide/grovemqtt.git
  34.  
  35. # Exemple mqtt javascript
  36. git clone https://rbastide@bitbucket.org/rbastide/mqttjavascriptclient.git
  37.  
  38. # Exemple mqtt java
  39. git clone https://rbastide@bitbucket.org/rbastide/mqtttransformer.git
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement