-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curl to invoke effect #158
Comments
Hi there, You have to call http:///set?PARAMETER=VALUE For example: |
Thank you @kitesurfer1404 |
Thank you! I will try!
Inviato da iPhone
… Il giorno 12 feb 2019, alle ore 19:58, kitesurfer1404 ***@***.***> ha scritto:
Hi there,
that's very easy. Take a look at
https://github.com/kitesurfer1404/WS2812FX/blob/master/examples/esp8266_webinterface/main.js.cpp#L23
and
https://github.com/kitesurfer1404/WS2812FX/blob/master/examples/esp8266_webinterface/esp8266_webinterface.ino#L223
You have to call http:///set?PARAMETER=VALUE
with PARAMETER being in c for color, m for more, b for brightness, s for speed, a for autocycle.
c takes hex encoded RGB-value, m takes integer for mode-number, b and s take - for reducing or something else for increasing brightness/speed. a takes - for disabling or anything else for enabling autocycle.
For example:
http://192.168.0.23/set?m=15
http://192.168.0.23/set?s=-
http://192.168.0.23/set?a=x
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello from the baltic sea. I like to send one command (or 5 commands in Line) to 5 different Wemos D1 Mini to switch all together (or in very short time) to the same modus / color. But it doesn't work (just the first 2 or sometimes 3 commands are working). Is there a kind of timing-problem? Details:
http://192.168.4.3/set?m=28
(max_connection @ WiFi.softAP increased to 8) |
Are you using Arduino ESP8266 Core v2.5.0? If so, I would recommend using v2.4.2 instead. V2.5.0 has network issues with some ESP8266s (esp8266/Arduino#5736). |
The code isn't mine: https://pastebin.com/embed_js/zvcRveru Just testing: I wrote a little batch-file on WindowsPC to switch over Wlan (not the wemos softAP above but this time my fritzbox-WLan) from one mode to the next (mode 0 to mode 55) on a single wemos (another one for testing 192.168.9.162): 2019-03-17 15:29:06 (49,3 B/s) - 'set@c=FF0000' Switch all modes in 4 seconds without problems. The problem seems to be the softAP-Wlan @ Wemos Nr. 1. |
So you're using a Windows PC to send the HTTP requests to the Wemos devices? Wemos Nr. 1 is just used as the AP for your network? |
Just a test-setup using a Windows PC to send the HTTP requests to the Wemos devices (over Fritzbox-Wlan @ Home). Usually Wemos Nr. 1 is used as the AP for your network (with the other wemos)! Sorry for the difficult situation. |
I setup a similar configuration and I could not reproduce your issue. I have two NodeMCU's, the first setup with the SoftAP sketch, and the second runs the esp8266_webinterface sketch. I then used a Windows 10 PC to connect to the SoftAP network and run a Powershell script to send HTTP requests to the second NodeMCU. Everything worked fine. Here is my SoftAP sketch: #include <ESP8266WiFi.h>
void setup() {
Serial.begin(115200);
delay(500);
Serial.println();
Serial.print("Setting soft-AP ... ");
Serial.println(WiFi.softAP("raspi", "12345678", 1, 0, 8 ) ? "Ready" : "Failed!");
Serial.print("Soft-AP IP address = ");
Serial.println(WiFi.softAPIP());
}
void loop() {
Serial.printf("Stations connected to soft-AP = %d\n", WiFi.softAPgetStationNum());
delay(10000);
} and my Windows Powershell script:
Sorry, I don't think I can be much help. You didn't mention if you were using v2.4.2 or v2.5.0 of the Arduino ESP8266 Core. |
First: thank you very much for you support. But in this setup which you configurred I have no issue too. With my PC the setup works fine. My issue starts when I use my Handy instead of the PC. I want to setup 5 Wemos from the Handy at the same time. In this setup I can't start reliable the wemos Nr 2, Nr 3, Nr 4, Nr 5 or Nr 6 in one cmd-line-command. If I use many commands one after another it seems to work. Probably a kind of timing-problem inside the WLan. |
Oh sorry, I misunderstood. What's a Handy? |
Mobilephone or Smartphone. |
Pardon @ break off a conversation. Some things @ real life needed attention. First: WS2812FX is amazing and working. My issues are not the software itself but the hardware I use. The Handy is a Samsung Galaxy S6. I use some app for automatisation like macrodroid to take the http get function on a widget-button. Macrodroid works with an kind of time lag by execute commands. Much better performence goes with tasker app. No time lag but no execute one command for all Wemos at the same time too. Is there any possibilitiy to syncron one command to differend hardware (wemos d1 mini)? PS: If the project comes to an end and the presentation @ contest ist done I will show some pictures iff wanted :) |
Hi,
Amazing project! I flashed a wemos and all works!
I need to trigger it via cli command to integrate it in other project (homebridge).
How could it be the command?
Is there a guide to looking for?
Thank you!
The text was updated successfully, but these errors were encountered: