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…Category: Hack it
ESP8266 modules hardware guide – gotta catch ’em all!
OK so there is this new(ish) chip the ESP8266EX that promises a full wifi stack and a mcu all for £2-3. But the chip on it’s own isn’t so useful – so most of the excitement has been around the various modules made with the chip, some memory and an antenna or connector for one. […]
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…Open aquaponics API, documented with Swagger and sample app
We’re proud to release the first public iteration of our Aquaponics Open Data API. You can see it live here – and we are very keen to get feedback, suggestions, improvements and collaborators in true open-source fashion. Our goal is to allow others to write applications to use data from our systems for their own purposes, as well as reusing […]
Read More…Wireless pH sensor
JeeNode + MinipH + LiPo + Case = Wireless pH sensor This sensor is probably the one I’m most proud of so far, all the elements came together really well despite having to hack the MinipH circuit in the literal sense! The enclosure maketh the project As soon as I had finished making this sensor, […]
Read More…Node-red web page – an example to get you started
NB: I no longer think this is a good way to do this! It was a first go, and there is a lot wrong with it. I intend to revisit the web-page idea at some point, and will post something better then. Now we use Freeboard to display data – there is a freenode node […]
Read More…Command line control of arduino using ino
As we’re going to be programming the arduino via the raspberry pi over ssh, we need a command line tool to talk to the arduino. Luckilly several such ways exist, including make-files from several sources. I chose to use a tool called ino which seems to have packaged up the toolchain in a fairly decent […]
Read More…raspberry pi running node-red, wiring-pi to pwm control a light
OK so putting node-RED on the raspberry pi was almost as easy as getting it onto my computer – see previous post here. I started with the occidentalis distro from adafruit – and to install node.js itself I needed to use different package to match the pi wget http://node-arm.herokuapp.com/node_latest_armhf.deb sudo dpkg -i node_latest_armhf.deb but apart […]
Read More…Tweeting with Node-RED via a mqtt broker
Having had a wonderful weekend at Wuthering Bytes, I decided to try and install the fabulous Node:RED tool and try to use it with mqtt to tweet the light level. Firstly Node-RED depends on node.js, so I installed node.js via Chris Lea’s ppa – he seems like the right sort of person to package up […]
Read More…