vietquocnguyen / nodemcu-esp8266-servo-smart-blinds Goto Github PK
View Code? Open in Web Editor NEWDIY Smart Blinds using NodeMCU V3/ESP8266 and an MG995 Servo
License: MIT License
DIY Smart Blinds using NodeMCU V3/ESP8266 and an MG995 Servo
License: MIT License
hi, i can't access with the http adress.
i tried in, arduino monitor window and in my browser..
can u help please.
thank u
Great bit of code , nice and simple and does the job however I am having troubles with the EEPROM write being over written , i.e I can change the speed and duration with the config command in a browser , it works once but when I press the button in smart things again serial monitor displays "wrote 0" or "wrote 1" and then it will not move the servo any more untill i set the config again ... and then back to square one , works once ... then sets to 0 or 1... am I doing something wrong ?
I do not see where in your code you are controlling the servo
I start and stop degrees. For example start Servo at 10 degrees and stop Servo at 180. Other than that the code is working for me as far as I can tell. It took me several days to find that code all of the other that you mentioned did not even work for me. Iโm also using a called SmartThings app called
ScheduleTstatZones
(Works with Any ST Connected thermostat, temp/motion/contact sensors & smart vents)
Will your device Handler work with that app?
When I use Arduino IDE obtain thi error:
exit status 1
'DynamicJsonBuffer' does not name a type
The complete log is:
smart-blinds:41:1: error: 'DynamicJsonBuffer' does not name a type
DynamicJsonBuffer jsonBuffer;
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino: In lambda function:
smart-blinds:97:5: error: 'JsonObject' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
smart-blinds:97:17: error: 'json' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:97:17: note: suggested alternatives:
In file included from /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:31:0,
from /home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:26:
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
json,
^
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
smart-blinds:97:24: error: 'jsonBuffer' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino: In lambda function:
smart-blinds:106:5: error: 'JsonObject' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
smart-blinds:106:17: error: 'json' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:106:17: note: suggested alternatives:
In file included from /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:31:0,
from /home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:26:
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
json,
^
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
smart-blinds:106:24: error: 'jsonBuffer' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino: In lambda function:
smart-blinds:115:5: error: 'JsonObject' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
smart-blinds:115:17: error: 'json' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:115:17: note: suggested alternatives:
In file included from /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:31:0,
from /home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:26:
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
json,
^
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
smart-blinds:115:24: error: 'jsonBuffer' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino: In lambda function:
smart-blinds:132:5: error: 'JsonObject' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
smart-blinds:132:17: error: 'json' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:132:17: note: suggested alternatives:
In file included from /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:31:0,
from /home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:26:
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
json,
^
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
smart-blinds:132:24: error: 'jsonBuffer' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino: In lambda function:
smart-blinds:151:5: error: 'JsonObject' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
smart-blinds:151:17: error: 'json' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:151:17: note: suggested alternatives:
In file included from /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:31:0,
from /home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:26:
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
json,
^
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
smart-blinds:151:24: error: 'jsonBuffer' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino: In lambda function:
smart-blinds:174:5: error: 'JsonObject' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
smart-blinds:174:17: error: 'json' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:174:17: note: suggested alternatives:
In file included from /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:31:0,
from /home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:26:
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
json,
^
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
smart-blinds:174:24: error: 'jsonBuffer' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino: In function 'void openOrClose(int)':
smart-blinds:241:3: error: 'JsonObject' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
smart-blinds:241:15: error: 'json' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
/home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:241:15: note: suggested alternatives:
In file included from /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:31:0,
from /home/unbas/Descargas/NodeMCU-ESP8266-Servo-Smart-Blinds-master/smart-blinds/smart-blinds.ino:26:
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
json,
^
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
/home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer/src/detail/mimetable.h:15:3: note: 'json'
smart-blinds:241:22: error: 'jsonBuffer' was not declared in this scope
JsonObject& json = jsonBuffer.createObject();
^
Se encontraron varias bibliotecas para "ESP8266HTTPUpdateServer.h"
Usado: /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266HTTPUpdateServer
Se encontraron varias bibliotecas para "Servo.h"
Usado: /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/Servo
No usado: /home/unbas/arduino-1.8.10/libraries/Servo
Se encontraron varias bibliotecas para "EEPROM.h"
Usado: /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/EEPROM
Se encontraron varias bibliotecas para "Arduino_JSON.h"
Usado: /home/unbas/Arduino/libraries/Arduino_JSON
Se encontraron varias bibliotecas para "ESP8266WiFi.h"
Usado: /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WiFi
Se encontraron varias bibliotecas para "ESP8266WebServer.h"
Usado: /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266WebServer
Se encontraron varias bibliotecas para "ESP8266mDNS.h"
Usado: /home/unbas/.arduino15/packages/esp8266/hardware/esp8266/2.6.0/libraries/ESP8266mDNS
exit status 1
'DynamicJsonBuffer' does not name a type
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.