User avatar
By RichardS
#43032 User
???

Description
This project aim to be a small screen to dislay variety type of information with home automation systems. Inspired by DLP displays device class from HDL ecosystem and https://github.com/nfriedly/nodemcu-weather-station .It would have such a gorgeous screen as part of the home automation system. This device can display any kind of tweeter mesages, email, facebook status updates, messages from a home automation system, etc...

This is not all-sufficient device. To control it you should use Node-RED suite or any other software that support MQTT and JSON as a payload.
At this moment the device can show: time, weather (temperature humidity pressure and dark sky icon from http://forecast.io), text message, image. Any other type of information to display can be easy added. Look at software part of this document.
Device connect to MQTT broker and subscribe to oled/events/+ .Module will run a handler according to the last part of a topic when a message arrives.

mqtt:on("message", function(conn, topic, data)
local start = tmr.now()
print(topic,node.heap())
if topic:match('weather$') then
dolc('weather',data)
elseif topic:match('message$') then
dolc('message',data)
elseif topic:match('image$') then
dolc('image',data)
elseif topic:match('gird$') then
dolc('gird')
elseif topic:match('test$') then
dolc('test',data)
elseif topic:match('setTime$') then
dolc('settime',data)
elseif topic:match('save$') then
dolc('save',data)
end

data = nil
topic =nil

collectgarbage()
end)
Controlled with Node-RED flows

Parts
esp8266 with NodeMCU
OLED screen http://goo.gl/Cxhwoh
RTC http://goo.gl/zzWak4
MicroUSB socket for powering http://goo.gl/yqudYL
Variety small supplies
Structor http://amperka.ru/collection/structor

Links
Github 1
Github 2

Video


Images
Attachments
unnamed.jpg
unnamed (3).jpg
unnamed (2).jpg
unnamed (1).jpg