Comments (11)
from esp8266-fastled-webserver.
perfect, you bring me on the right way!
i can send data with a curl --data "" http://1.2.3.4/power?value=1 in command line on fhem-server console now.
now i can implement your famous software in my smart home central. ( fhem )
this is nice, because i can control the smart home with my voice, to say "Make light blue" or "partytime" wich will be start some things (Music, other light effects - and now your´s :-) )
thanks again for your great piece of software!
from esp8266-fastled-webserver.
Thanks! Definitely. The web app is completely client-side javascript and interacts with the ESP8266 with standard HTTP requests (GETs and POSTs). Just open the web app, open the browser developer tools, look at the network tab, and start doing stuff in the web app. You'll be able to see all the HTTP requests the web app uses.
from esp8266-fastled-webserver.
Thanks for the fast reply,
i have do this already with safari and chrome.
i see the command power?value=1 for switch the button "on"
but when i try to open http://1.2.3.4/power?value=1 then comes a blank site with " /power not found "
when i try http://1.2.3.4/?cmd=power?value=1 then open the webapp, but the led are not on...
where is my mistake?
from esp8266-fastled-webserver.
Yeah, look closer at the HTTP request methods. Anything that gets a value is a HTTP GET request. Anything that changes a value is a HTTP POST request. When you open http://1.2.3.4/power?value=1
in a web browser, it sends a HTTP GET request. To send a HTTP POST request, you need to write code, create an HTML form, etc. You can also use a tool like Postman to test.
More information on HTTP REST APIs: https://en.wikipedia.org/wiki/Representational_state_transfer#Applied_to_Web_services
from esp8266-fastled-webserver.
hi,
thanks @mclaudiu for your response. Your Solution works perfectly.
i read some tuts, and now i use this: curl --data "" http://1.2.3.4/power?value=1
this works also perfect.
original it must be: curl --data "power?value=1" http://1.2.3.4 - but this will bring up an error: / not found
i will read about the differences to your solution.
Thanks again to all :-)
from esp8266-fastled-webserver.
hi again,
i forgot something:
i use a WS2801 LED Strip.
need to add a CLOCK_PIN and change the LEDStripe SetupRoutine to APA102 Dotstar and everything works perfect.
only for your interest and maby to make a notice in the wiki or readme.
from esp8266-fastled-webserver.
#define DATA_PIN 6
#define CLOCK_PIN 5
#define LED_TYPE WS2801
#define COLOR_ORDER RGB
#define NUM_LEDS 160
FastLED.addLeds<LED_TYPE,DATA_PIN,CLOCK_PIN,COLOR_ORDER>(leds, NUM_LEDS); // for APA102 (Dotstar)
my ESP: [Nodemcu-ESP-12F-WIFI-Network]
(https://de.aliexpress.com/item/Free-Shipping-Lua-Nodemcu-ESP-12F-WIFI-Network-Development-Board-Module-Based-ESP8266/32740698081.html?spm=a2g0s.9042311.0.0.zhXl7d
my STRIP: WS2801
from esp8266-fastled-webserver.
Hi, I hope you can make something with these: IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http://";${CURL}${IP}/power?value=0 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http://";${CURL}${IP}/autoplay?value=1 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http://";${CURL}${IP}/pattern?value=1 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http://";${CURL}${IP}/palette?value=8 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http://";${CURL}${IP}/autoplayDuration?value=5 SolidCOLOR RED IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=255&g=0&b=0" Portocaliu IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=255&g=128&b=0" Galben IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=255&g=255&b=0" Verde1 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=128&g=255&b=0" Verde2 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=0&g=255&b=0" Verde3 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=0&g=255&b=128" Albastru1 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=0&g=255&b=255" Albastru2 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=0&g=128&b=255" Albastru3 IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=0&g=0&b=255" Mov IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=128&g=0&b=255" Siclam IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=255&g=0&b=255" Roz IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=255&g=0&b=128" ALB IP="192.168.1.170";CURL="curl -o /dev/null -s -H "Content-Type: application/json" -X POST http:// ";${CURL}${IP}/solidColor?value="&r=255&g=255&b=255"
…
On Mon, Jan 15, 2018 at 4:44 PM, Shamanix @.***> wrote: Hello, you Evil Genius, thanks for your great software. It works perfect, very fast and is simple to use. I have one question: can i control it with http commands. i will implement the esp in my smart home software (fhem) to control it. i can define LightScenes here, other LED Stripe with LW12 Controller i control thrue webcommands ( http://1.2.3.4/?cmd=rainbow ). what can i do to have this with your software? thanks robert — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#60>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvGL_j78a8R7rl9o9dMZoaKKockTiFPks5tK2RVgaJpZM4Reg16 .
Any way to do the solid color with hex value?
from esp8266-fastled-webserver.
I made one applet for each colour in ifttt
http://myipaddress/solidColor?value="&r=0&g=0&b=255" Make lights blue.
Must be Post as the Method and content type application/json
For patterns
http://myipaddress/pattern?value={{NumberField}} Google assist say pattern number so put the number in as the field. Same a above must be post and application/json. Looking at how to only allow access from ifttt ip addresses for security and adding friendly names for calling the patterns.
from esp8266-fastled-webserver.
Closing due to >1 year inactivity.
from esp8266-fastled-webserver.
Related Issues (20)
- map.cpp - Fix regression for "up" direction, as used by clocks HOT 3
- Chamaeleon64: Angles -- narrowing conversion of type warnings
- Re-work how UI-exposed properties work HOT 4
- Support for stable effects / palettes configuration HOT 3
- Partial web interface HOT 14
- Enable use of gradient palettes as a normal palette HOT 1
- Stop using fake EEPROM, store settings as JSON in file system
- wrong repo - ignore
- running Pacifica HOT 2
- Sounds great, doesn't work HOT 4
- Not Found: / HOT 6
- Querying /all and /fieldsWithoutOptions endpoints freezes animation HOT 1
- macro "SERIAL_DEBUG_ADDF" defined here HOT 1
- default.h file: no such file HOT 4
- Running in AP mode? HOT 4
- Does this project work with NodeMCU board? HOT 1
- unable to compile in arduino ide 1.8.16 or 2.0.4 HOT 5
- FastLED and Webserver crashlooping HOT 1
- Compiling on latest PlatformIO HOT 4
- Compilation erro in platformio caused by data_pin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-fastled-webserver.