Skip to content

Commit

Permalink
digital-loggers: Change cycle time to 500ms
Browse files Browse the repository at this point in the history
At present this waits about 5 seconds and also doesn't work if the outlet
is currently off.

Switch the outlet off/on manually.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
  • Loading branch information
sjg20 authored and nvswarren committed Feb 21, 2020
1 parent 316f1e2 commit 3f50130
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/reset.digital-loggers
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

curl --data ${power_port}=CCL -o /dev/null --silent \
curl --data ${power_port}=OFF -o /dev/null --silent \
http://${power_user:-admin}:${power_pass:-1234}@${power_ip}/outlet
sleep .5
curl --data ${power_port}=ON -o /dev/null --silent \
http://${power_user:-admin}:${power_pass:-1234}@${power_ip}/outlet

0 comments on commit 3f50130

Please sign in to comment.