snips-app-sht31
Action code for the Temperature & Humidity [SHT31] bundle. It can reply you the current temperature and humidity.
Usage
"Hey snips, please tell me the current temperature?"
"The current temperature is 24.4 degree."
OR
"Hey snips, what's the humidity in the room?"
"The current humidity is 53.25% "
Installation
Install with assistant
- Create a Snips account here
- Create an English assistant in Snips console
- Add APP Temperature & Humidity [SHT31] (Available soon)
- Deploy assistant by Sam
- (On Pi) Add permission to
_snips-skill
user to access i2c:sudo usermod -a -G i2c,spi,gpio,audio _snips-skills
- (On Pi) Restart snips-skill-server:
sudo systemctl restart snips-skill-server
- Have fun ;-)
Install only action
sam install actions -g https://github.com/snipsco/snips-app-sht31.git
Configuration
MQTT
Config | Description | Value | Default |
---|---|---|---|
mqtt_host |
MQTT host name | <ip address> /<hostname> |
localhost |
mqtt_port |
MQTT port number | <mqtt port> |
1883 |
To make satellite work correctly, please change here
Device Info
Config | Description | Value | Default |
---|---|---|---|
site_id |
Snips device ID | Refering to the actual snips.toml |
default |
To make satellite work correctly, please change here
Temperature Unit
Config | Description | Value | Default |
---|---|---|---|
if_fahrenheit |
If convert to fahrenheit value | true , false |
false |
Contributing
Please see the Contribution Guidelines.
Copyright
This library is provided by Snips as Open Source software. See LICENSE for more information.