Skip to content

Instantly share code, notes, and snippets.

@amusarra
Last active August 3, 2019 17:29
Show Gist options
  • Select an option

  • Save amusarra/645c34b5dab4e3b18eb50529d2ba76a2 to your computer and use it in GitHub Desktop.

Select an option

Save amusarra/645c34b5dab4e3b18eb50529d2ba76a2 to your computer and use it in GitHub Desktop.
Raspberry PI Sense HAT: Come pubblicare i dati su CloudAMQP via MQTT
#!/usr/bin/env python
from sense_hat import SensHat
sense = SenseHat()
sense.show_message("Benvenuto su https://www.dontesta.it")
#!/usr/bin/env python
from sense_hat import SenseHat
sense = SenseHat()
while True:
temperature = sense.get_temperature()
pressure = sense.get_pressure()
humidity = sense.get_humidity()
sense.show_message("The temperaturen is %d, the pressure
is %d, and the humidity is %d." % (temperature, pressure, humidity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment