Files
2026-09-04 09:14:56 -04:00

857 B

pico-thermo

PicoRuby program to read sensor data from a BME280 sensor and upload it to an MQTT server.

Configuration

Copy config.example.rb to config.rb and edit the settings:

module Config
  WIFI_SSID    = "CHANGE_ME"            # WiFi network name
  WIFI_PASS    = "CHANGE_ME"            # WiFi password

  MQTT_BROKER  = "192.168.1.100"        # Set this to your MQTT server IP/name
  MQTT_PORT    = 1883                   # You can probably leave this alone
  MQTT_USER    = nil                    # Set this if your MQTT server requires auth
  MQTT_PASS    = nil                    # Set this if your MQTT server requires auth
  CLIENT_ID    = "pico2w_bme280"        # Change this per-node
  NODE_ID      = "pico2w_environment"   # Change this per-node
end

License

This project is licensed under the BSD 3-Clause license.