Post your best Lua script examples here

User avatar
By dacb
#19410 I haven't seen a working demo of MQTT and DS18B20 os here goes...

MQTT publish of (single) DS18B20 on LUA nodeMCU:

https://github.com/beckdac/esp8266_lua_mqtt_ds18b60

Tested with NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4

After uploading ds18b20.lua from the NodeMCU modules directory, you must compile it with: node.compile("ds18b20.lua")

Note: I don't actually use nodeMCU for anything other than toys so my lua style (or whatever) probably isn't awesome. Heavily lifted from other stuff around here.