Author: naomi

Idle Timeout in Express

Idle Timeout was not possible in express sessions until recently. You could set maxAge on the session’s cookie, but that would make the cookie expire after the given time regardless of activity. But it is more usual to want to expire the session after a certain amount of time with no activity. That is now possible […]

Read More…

Squatconf Presentation

We’re at SquatConf. It’s amazing! All conferences should be in squats. (Ones that serve good quality beer on draft, in particular. And where you can have  a cigarette while you’re presenting). Here are the slides for the presentation we just gave. And here’s our alternative translation of the heart sutra (now on Github!) Avalokitesvara the Origin Mistress […]

Read More…

Reading multiple sensors – rfm12b_linux and node-red

RFM12b module vs. Jeelink This post follows on from this one where Gareth explains how to use an RFM12b module with an RPi. To recap, the RFM12b module is a radio transciever like the Jeelink, but it is much cheaper. It is, however, slightly harder to use. The Jeelink connects via USB and is immediately exposed as […]

Read More…

Using the ACS712 Low Current Sensor

Gareth and I are using  ACS712 Low Current Sensors in our Aquaponics project. We’re using them to measure AC current. All we really need them to tell us is whether various pumps are on (and drawing 1/6 of an amp) or off. The raw value you get when you do an analogRead on the pin varies […]

Read More…