Coder Social home page Coder Social logo

esp8266-wifi's People

Contributors

idserda avatar probonopd avatar sticilface avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esp8266-wifi's Issues

Unable to compile, missing webpage header files?

Hi, this looks really cool and would like to try it, but am unable to compile it. Tested with the latest esp8266 stable & staging but no dice. I get lots of errors like the following which aren't very helpful.

at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777)
at java.util.regex.Pattern$Branch.match(Pattern.java:4604)

I noticed in b_inits there are the following includes that I don't see in this repository. I tried commenting them out but I still get the same errors. Maybe if you could try compiling this from a fresh install of the ide it might help track down what I am missing or doing wrong.

include "page_jscolour.h"

include "page_microajax.js.h"

include "page_root.h"

include "page_style.css.h"

UDP

Once again you made a fantastic Job.

I just need to know on which part i can found UDP order who your software is waiting for.

Does it looks like Milight api ? http://www.limitlessled.com/dev/

Thanks for your time.

Feature request - audio spectrum analyzer :)

Great project you have here, when I saw all those cool effects that you have in your code I got and idea. What about if you would connect a microphone to the esp8266 which would then listen to beats and the leds on the ws2812 would pulsate with the sound. Maybe like this https://www.youtube.com/watch?v=8Urj9ugsV58 (but this one is a bit too fast flashing for my taste :) )
That would be really cool.

Otherwise good job. So via the MQTT it is probably possible to tie into Openhab for example and tie specific colours to specific actions?

COMPILE ERROR with NeoPixelbus

arduino 1.6.5
libraries from today:
esp-core 2.0.0

the uart-branch, as your readme said:

name=NeoPixelBus by Makuna
version=1.0
author=Michael C. Miller ([email protected]) 
C:\Users\olaf\AppData\Local\Temp\build2003532610813731446.tmp\Melvana.cpp.o 
c_ws2812.ino: In function 'void ws2812()':
c_ws2812.ino:85:66: error: no matching function for call to 'NeoPixelAnimator::UpdateAnimations(int)'
c_ws2812.ino:85:66: note: candidate is:
In file included from D:\daten\olaf.arduino\arduino-1.6.5-r5\libraries\NeoPixelBus/NeoPixelBus.h:31:0,
                 from Melvana.ino:62:
D:\daten\olaf.arduino\arduino-1.6.5-r5\libraries\NeoPixelBus/NeoPixelAnimator.h:50:10: note: void NeoPixelAnimator::UpdateAnimations()
     void UpdateAnimations();
          ^
D:\daten\olaf.arduino\arduino-1.6.5-r5\libraries\NeoPixelBus/NeoPixelAnimator.h:50:10: note:   candidate expects 0 arguments, 1 provided
Exception in thread "Thread-36" java.lang.NullPointerException
    at org.fife.ui.rsyntaxtextarea.TokenMakerBase.addToken(TokenMakerBase.java:134

maybe you have some advice for me?

Examples from the NeoPixelBus-librarie compile without errors..

RGBW Support

WOW! What a tremendous work! Just installed and was totally flashed - thank you so so much.

I have a fairly large RGBW-NeoPixel (1650 pixels) installation in a bar of a friend of mine. Right now it is controlled over network (http) with an Arduino Mega and some ragged code from me. It is slow and I have to admit that the animation thing is too complex for me.

Do you plan to support RGBW Neopixels? Would be terrific.

Cheers,
Patrik

Compile error

This looks like a great project! I have some trouble compiling it however. The 4 libraries are installed. Arduino IDE 1.6.5, esp8266 board 1.6.5-947-g39819f0. Any idea? Thanks!

c_ws2812.ino: In function 'void handle_WS2812()':
c_ws2812:188: error: 'FPSTR' was not declared in this scope
c_ws2812.ino: In function 'void handle_lights_config()':
c_ws2812:811: error: 'FPSTR' was not declared in this scope
mqqt_config.ino: In function 'void handle_mqtt()':
mqqt_config:177: error: 'FPSTR' was not declared in this scope
web_server.ino: In function 'void handle_wifi()':
web_server:161: error: 'FPSTR' was not declared in this scope
web_server.ino: In function 'void handle_misc()':

GPIO / PIN Number ?

my lights dont go on.
i compiled and flashed ok.
i wanted to try the neopixel-Test-example and the source says

define pixelPin 2  // make sure to set this to the correct pin, ignored for UartDriven branch

so i have the UartDriven branch, what pin do i have to use?
i am a little bit puzzled

Compile errors

Trying to compile on Arduino 1.6.8 with esp8266/Arduino from git, I get:

Arduino: 1.6.8 Hourly Build 2016/01/19 08:26 (Linux), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

In file included from /home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/Melvana.ino:63:0:
/home/me/Arduino/libraries/E131-master/E131.h:143:9: error: '_UDP' does not name a type
         _UDP udp;               /* UDP handle */
         ^
/home/me/Arduino/libraries/E131-master/E131.h: In member function 'uint16_t E131::parsePacket()':
/home/me/Arduino/libraries/E131-master/E131.h:202:24: error: 'udp' was not declared in this scope
             int size = udp.parsePacket();
                        ^
/home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/c_command_handle.ino: In function 'void ssid_command(String)':
c_command_handle:19: error: 'Save_String' was not declared in this scope
               Save_String(ssid, ssidAddress, ssidAddressbyte);
                                                             ^
/home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/c_command_handle.ino: In function 'void password_command(String)':
c_command_handle:47: error: 'Save_String' was not declared in this scope
               Save_String(password, passwordAddress, passwordAddressbyte);
                                                                         ^
/home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/c_command_handle.ino: In function 'void deviceid_command(String)':
c_command_handle:61: error: 'send_mqtt_msg' was not declared in this scope
               send_mqtt_msg(F("status"),"DeviceID-> " + value);
                                                              ^
c_command_handle:67: error: 'Save_String' was not declared in this scope
               Save_String(deviceid, deviceidAddress,deviceidAddressbyte);
                                                                        ^
/home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/c_command_handle.ino: In function 'void debug_command(String)':
c_command_handle:126: error: 'send_mqtt_msg' was not declared in this scope
     send_mqtt_msg (F("Status"), F("Debug set to timer"));
                                                        ^
c_command_handle:138: error: 'send_mqtt_msg' was not declared in this scope
     send_mqtt_msg (F("Status"), F("Debug disabled"));
                                                    ^
/home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/c_command_handle.ino: In function 'void mqttreloadfunc()':
c_command_handle:155: error: 'initiatemqqt' was not declared in this scope
       initiatemqqt (); 
                     ^
/home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/c_plugin_commands.ino: In function 'void handle_root()':
c_plugin_commands:7: error: 'handle_WS2812' was not declared in this scope
   handle_WS2812(); 
                 ^
c_plugin_commands:9: error: 'handle_wifi' was not declared in this scope
   handle_wifi();
               ^
/home/me/Downloads/ESP8266-wifi-ESP8266_wifi/Melvana/c_plugin_commands.ino: At global scope:
c_plugin_commands:19: error: 'MQTT' does not name a type
 void cache mqtt_plugin_handle( const MQTT::Publish& pub ) {
                                      ^
c_plugin_commands:19: error: expected unqualified-id before '&' token
 void cache mqtt_plugin_handle( const MQTT::Publish& pub ) {
                                                   ^
c_plugin_commands:19: error: expected ')' before '&' token
c_plugin_commands:19: error: expected initializer before 'pub'
 void cache mqtt_plugin_handle( const MQTT::Publish& pub ) {
                                                     ^
exit status 1
'Save_String' was not declared in this scope

Please document the exact combinations of IDE, core, and libraries you used to compile this.

AP seems not to be opened

On the serial interface I get

No Device name in EEPROM.....Creating Device Name: esp-86ee
NO SSID specified...
Setting up Access Point....esp-86ee
Device name: esp-86ee
Settings loaded ------- 24 Bytes read ------- 

But there is no AP esp-86ee to be seen.

Why are there so many .ino files?

This is probably very cool software, but the collection of .ino files is unlike any other Arduino sketch I have ever seen. It is unclear which one actually is the sketch.

By the way, .ino files need to be in a directory that has the same name as the .ino file. Also it would be nice if the README.md would say more than "First compile and flash to ESP8266 using the arduino IDE", e.g., which file to open in the Arduino IDE and to compile.

Some question about functionality..

Cool project! But i have some question:

  1. What's about this code:
    ""Fade",
    "Looparound",
    "Pick-Random",
    "Fadein-FadeOut",
    "Cool-Blobs",
    "Spiral",
    "Test4",
    "Squares",
    "EQ1",
    "Random-Function",
    "Art-Net",
    "Single-Colour-Fade",
    "Random-Colour-Fade",
    "HSIcycle",
    "New-Animations",
    };
    const uint8_t numberofmodes(15); /////// DONT FORGET THIS....
    "
    when it's work? ))
  2. In mode "Random-Colour" not work PWM (not adjustable brightness) - it's bug or no?
  3. Waht's about page Test in webserver?
    Thank you for you work!

WiFi Settings not saved

Hi, very interesting Sketch! Thanks for sharing.
I could compile it successfully but after entering the seetings it does not connect to wifi and after restart the settings are gone. This is the debug serial:

(19:41:54.330) Welcome to Andrew Melvin's ESP Software
(19:41:54.330) Compile Time: Oct 29 2015 19:38:35

(19:41:54.330) bcn 0
(19:41:54.330) del if1
(19:41:54.330) mode : sta(5c:cf:7f:07:6b:5d)
(19:41:54.400) NORMAL MODE
(19:41:54.400) Scanning for Networks
(19:41:54.480) scandone
(19:41:54.490) f 0, scandone
(19:41:56.650) No Device name in EEPROM.....Creating Device Name: esp-6b5d
(19:41:56.650) NO SSID specified...
(19:41:56.650) Setting up Access Point....mode : sta(5c:cf:7f:07:6b:5d) + softAP(5e:cf:7f:07:6b:5d)
(19:41:56.650) add if1
(19:41:56.650) dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
(19:41:56.790) bcn 100
(19:41:56.790) esp-6b5d
(19:41:56.790) Device name: esp-6b5d
(19:41:56.790) Loading last op state from EEPROM = 0
(19:41:56.790) Settings loaded ------- 24 Bytes read ------- Op State ==> 3
(19:41:56.790) Timer ==> 1000
(19:41:56.790) Animation speed ==> 0
(19:41:56.790) Brightness ==> 255
(19:41:56.790) Colour ==> 255 0 0
(19:41:56.790) Palette ==> 0
(19:41:56.790) Palette Range ==> 20
(19:41:56.790) Number Colours ==> 5
(19:41:56.790) Random ==> 1
(19:41:56.790) Time Stretch ==> 1
(19:41:56.790) Total X ==> 1
(19:41:56.790) Effect Count ==> 1
(19:41:56.790) Effect Min Size ==> 1
(19:41:56.790) Effect Max Size ==> 1
(19:41:56.790) Effect Option ==> 1
(19:41:56.790) End-------------------------
(19:41:56.790) Colour debugging (String) R=ff, G=00, B=00 ==> FF0000
(19:41:56.790) Animations Enabled
(19:41:56.790) Update frequency = 30AutoRestartValue = 0 Last ON/OFF = 1 Loaded
(19:41:58.680) add 1
(19:41:58.680) aid 1
(19:41:58.680) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:02.490) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:04.470) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:08.480) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:09.930) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:11.910) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:13.370) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:15.440) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:17.520) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:20.100) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:20.800) f 0, scandone
(19:42:22.970) New SSID: ++*_++_
(19:42:22.970) Saving new...Check bit written
(19:42:22.970) New Password: *******
(19:42:22.970) Saving new...Check bit written
(19:42:22.970) New Deviceid: espled1.local
(19:42:22.970) Saving new...Check bit written
(19:42:22.970) MQTTserver IPAddress: 192.168.0.1
(19:42:23.190) f 0, ....scandone
(19:42:25.340) no ”Êþ? found, reconnect after 1s
(19:42:25.440) reconnect
(19:42:25.440) f -180, ....station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:27.570) scandone
(19:42:27.570) no ”Êþ? found, reconnect after 1s
(19:42:27.680) reconnect
(19:42:27.680) f 0, .....scandone
(19:42:29.820) no ”Êþ? found, reconnect after 1s
(19:42:29.920) reconnect
(19:42:29.920) f -180, ....station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:32.050) scandone
(19:42:32.050) no ”Êþ? found, reconnect after 1s

I have an ESP-12 running.CPU is set to 160MHZ and also 1M falsh set

Looks like the Settings are not saved correctly. Any idea?
An sample EEPROM sketch worked fine.
br
Bio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.