One of the toys I’ve been playing with this weekend is the Amazon Dash – contributed by visiting read JAY when he popped over to see me last week.
Oh, before I start – anyone using the SOURCE of my ESP code – (not Arduino IDE) – if you fancy having a go at getting the NAME to show up on your router (as against ESP_xxxxx) and achieve success – PLEASE let me know – the library function that is supposed to do this simply won’t work for me).
And on the subject of ESP – if you’re using Sonoffs – take a look at this - https://github.com/arendst/Sonoff-MQTT-OTA-Arduino – This was good software for Sonoffs BEFORE I started putting in requests – but now – it has at my request DUAL ESSDs (so you can move from one place to another) – and at someone else's and my requests –ECHO support – all in a good job and his code still fits into the standard FLASH – you’ll need the Arduino ESP8266 IDE setup – but that’s easy enough. Worth a look.
And on the subject of SONOFFS – I noted this on Banggood.. £4.80 inc delivery to the UK!
The Amazon Dash (full breakdown here for those interested) is a small device designed, like everything Amazon do – to get you to buy more Amazon products. £4.99 for the privilege of having a button next to your washing machine to help you buy more washing powder (though to be fair apparently you get the money back on your first purchase). The unit is obviously meant for householders who like to waste money – as it is ultrasonically sealed so long after you lose interest in it, it packs in for good.
But of course we technical types are never stopped by such things – you can prise the thing open and replace the battery. So now all that is needed is to think of a use for it.
Well, it just so happens that this is how it works – when you press the button, it turns on – transmits a signal (while flashing a light) then turns off. The signal is WIFI and a little Amazon SHOPPING APP on your phone lets you set it up to your WIFI.
So, you don’t after all have to order something with it – you could tie it into your home control system – there is a node for that in Node-Red but I didn’t find it that useful so wrote my own.
Easy really – once it it on your WIFI – tell your router to fix that IP address. Then ping it in, Say, Node-Red. So if you do that regularly, say every second or so – your PING will return true or false. A simple function to detect change of state toward true – and you can do whatever you like with the result.
The unit is sealed and I would imagine would take a little light rain. I plan to use mine (with a new label) as a doorbell. How about an emergency helper for someone with a temporary illness or other problem – with Node-Red you could have it send you an email, a text or other alert or just sound a bell somewhere. I’ve been testing this over and over and I can’t get it to fail. Of course- if the broadband goes down you’re stuffed.
Oh and here’s the clincher.. Black Friday sale they were going for 99p each – so look out for other excuses for a sale – you might get a bargain.
In other interests, I finally got my hands on an Odroid C2 and my Debian script works a treat on it APART from Webmin – working on that and I’ll do a full write-up soon.