-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs refresh, add Deep sleep usage with SHT30 sensor and data reporti…
…ng via HTTP GET
- Loading branch information
1 parent
735236a
commit 92cbb9c
Showing
6 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// source: https://www.elektroda.com/rtvforum/viewtopic.php?p=20693161#20693161 | ||
// NOTE: SHT3X is configured to store temp in channel2 and humidity in channel 3 | ||
|
||
// start driver | ||
startDriver SHT3X | ||
//hold button for 3 seconds to get into safe mode | ||
addEventHandler OnHold 20 SafeMode 3 | ||
// wait for wifi to become WIFI_STA_CONNECTED | ||
waitFor WiFiState 4 | ||
Battery_Setup 2500 4200 2.29 2400 4096 | ||
battery_measure | ||
publishFloat "voltage" $CH4/1000 | ||
//publishFloat "battery" $CH4/25 | ||
// extra wait | ||
delay_s 5 | ||
// measure | ||
SHT_Measure | ||
// send data | ||
SendGET http://address:port/sensor1.php?temp=$CH2&hum=$CH3&bat=$voltage | ||
// wait for GET to be sent | ||
delay_s 5 | ||
// sleep for 120 seconds and then wake up (from blank state) | ||
DeepSleep 120 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters