Category Archives: bigtimer

BigTimer

BigTimerNode-RED is a fantastic and powerful yet easy to use programming tool for wiring together hardware devices, APIs and online services in new and interesting ways. For more information on Node-Red go to the Node-Red site.

BigTimer is the the most BigTimerpowerful and best-ever, most comprehensive timing node for Node-Red, providing a general purpose timer as well as handling summer/winter correctly as well as (importantly) lighting-up time (for which you should provide your longitude and latitude from Google maps or similar).

After all you probably don’t turn the outside lights on at 6pm!! You most likely want them on when it gets DARK.

At it’s simplest, BigTimer can be used as the equivalent of a simple mechanical timer, deeding other Node-Red nodes or directly manipulating devices by, for example, MQTT protocol.

BigTimers can be used singly or in groups. Full support is provided for dusk/sunset dawn/sunrise and variations also for day/week/month (and special days) control.

BigTimer has three outputs, the first of which updates when there is a change of state and presents one of two messages (for, for example, MQTT or other control mechanism)

The node offers outputs suitable for MQTT, speech and databases (but you don’t HAVE to use any of these). You can also manually over-ride the UTC time setting on the host computer if required.

The second of three outputs offers a simple 1 or 0 every minute in the output “payload” and also presents additional information reflecting the status message in msg.state, message.time and others – see the entire msg object output in debug for more.

The third output presents a message which could be used for speech or debugging.

There is also real-time status information displayed below each BigTimer node.

As always, the latest node-red-contrib-bigtimer is available at node-red-flows and at npmjs.com - put "scargill" in the search and you'll see all my nodes and flows.

Continue reading BigTimer

Facebooktwittergoogle_pluspinterestlinkedin

BigTimer 2.06 update questions answered

I’ve been asked questions about output from my Node-Red-Contrib-BigTimer in the 2.06 update and also the new(ish) “timer X” option. Here is a working demo, I’ve added a timer to my desk with a Sonoff BASIC attached and a lamp to test. Output 1 is as you can see working fine in this demo.

tmpDB5D

There it is. Set to come on at dusk (it is currently morning). I can do a simple manual override (using an inject for test purposes) until the next ON time or just have a quick 15 minute burst.

Here is the setup in the node itself… set to work all months and days by default.

Bigtimer code

The injects have “1”, “0”, “auto” and “timer 15 mins” in them, respectively.

And the short answer is, yes you can see the remaining time in the "timer" option and you now have a "timeoff" alternative.

I also tested the second output to ensure that 00:00/00:00 works as does a short morning burst.

Incidentally, second output – msg.precision – tells you how much time in seconds is left before the "timer" and "timeoff"  modes runs out.

Continue reading BigTimer 2.06 update questions answered

Facebooktwittergoogle_pluspinterestlinkedin

Node-Red and Alexa with Big Timer

tmp96D4I’ve recently updated my setup at home, finally doing away with HA-Bridge and I thought you might like to see this simple setup.

So for beginners, HA-Bridge is a piece of software (a very nice piece of software) that runs on for example a Raspberry Pi, who’s job (in my case) is to talk to Amazon’s Alexa and send off MQTT commands to control things.  In reality I’ve always had it return commands to Node-Red – because many of my controlled items are on timers and I need the two put together.

Continue reading Node-Red and Alexa with Big Timer

Facebooktwittergoogle_pluspinterestlinkedin