ok1cdj / esp8266-lua Goto Github PK
View Code? Open in Web Editor NEWLUA scripts for ESP8266 with NodeMCU firmware
LUA scripts for ESP8266 with NodeMCU firmware
I've successfully used this code for NodeMcu+ds18b20 (even without external pull-up resistor), but for negative values got only -0.125 or -0.0625 ones continuosly. Tnen, I have changed lines 50-51 at ds18b20.lua to "t = t - 0x10000" and now all works perfect. Tested in home refrigirator :)
By the way, here is error on circuit: Vcc and Gnd pins of sensor is shorten.
Best regards!
PANIC: unprotected error in call to Lua API (dht11.lua:59: 'end' expected (to close 'for' at line 58) near '')
PANIC: unprotected error in call to Lua API (attempt to call a string value)
I tried Thermometer-DHT11-Thingspeak it works properly, but sometimes it reports temperature wrong, for example when room temperature is about 28 sometimes it reports 10 or 12.
Doesn't work with latest Lua firmware (version 0.9.5)
I can see the following in the terminal but no data gets sent to thingspeak. (I have WiFi connection and correct API key)
Sending data to thingspeak.com
Closing connection
Got disconnection...
Last temp: 213750
Temp:21.3750 C
jfi
Is your schematic correct for the DS18B20 - you have both sides going to ground? There should be Vcc on the one side with the middle pin being pulled up by a resistor.
Dear all
I have used the this code with lua language in order to test ds18b20 temperature sensor with feather adafruit huzzah esp8266 wifi module .Moreover, the pin connction ,I used was pin=6 for lua code and corresponding of 12 on esp866 board.
However, I am getting the temperature measurement value 85 c.
hence, could any one help me out ,please.
cheers!
new syntax: wifi.ap.config({ssid="test",pwd="12345678"})
Hi! Thanks for this.
I used this but I'm always getting the temperature and humidity as 0.
I have the DTH11 directly connected to the GPIO0...
do you know what can be wrong?
thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.