Archive of stories published by JavascriptJedi

NetAtmo dashboard for Node-RED

There are few Node-RED nodes for the NetAtmo weather station, most of them return data of the sensors as time series.

I needed something simpler for my chatbot, a way to get fetch all current values from all sensors, something like this


Store user response in RedBot

Working with chatbots it’s sometimes useful to parse and store the user response somewhere.

In RedBot there’s the chat context, it’s a volatile memory space where it’s possible to store variables related to the current chat user, for example consider…


Deferred object as callback

Callbacks are a nice way of Iversion of control, but are even more powerful with deferred objects.
Basically callbacks are a way to pass back the control from a called function, the deferred/promise just do the opposite: it returns the control the called function.

These were the top 10 stories published by JavascriptJedi; you can also dive into yearly archives: 2011, 2012, 2013, 2016, and 2017.