FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
258 views 0 comments
by
Hi,

I'm using an trb245 and need some timed switching

How to easly setup up an output been low for 45min then 15 high every hour endless.

1 Answer

0 votes
by anonymous

Hello,

For this you should create two profiles (System > Profiles). Set “Default” profile output in low state, and “Second” profile output in high state.

Enable Profile scheduler on Web UI page System > Profiles > Scheduler.

Add as many schedule entries as you need for low or high output.

The advanced user can use ubus call commands to change the output status:

  • To set Output2 to high state: ubus call ioman.gpio.dio0 update '{"value": "1"}'
  • To set Output2 to low state: ubus call ioman.gpio.dio0 update '{"value": "0"}'

Create few custom scripts and use Crontab to run one of them on proper time.

Script example:

```

#!/bin/sh

ubus call ioman.gpio.dio0 update '{"value": "0"}'

echo "Output 2 state is LOW"

```