spigotx / moodlite Goto Github PK
View Code? Open in Web Editor NEWMoodlite
License: GNU General Public License v3.0
Moodlite
License: GNU General Public License v3.0
A Pattern designer like in this Nanoleaf clone: https://www.thingiverse.com/thing:3354082. It would be nice if in the next moodlite build such functions as in the project are integrated. Thanks for the awesome Nanoleaf clone
I just downloaded the latest code from the master branch and went through the "First setup of Moodlite" and "Preparing Arduino IDE" but when I try to compile the code I am getting the following errors:
Moodlite:419:7: error: invalid use of member function (did you forget the '()' ?)
len = length;
Moodlite:420:30: error: cannot convert 'String::buffer' from type 'const char* (String::)()const' to type 'void*'
memcpy(buffer, data, length);
Moodlite:421:16: error: invalid types '[int]' for array subscript
buffer[length] = 0;
I'm not really sure I understand the error.
When enabling NTP option, i got the following error:
exit status 1 invalid conversion from 'void (*)(void*)' to 'void (*)()' [-fpermissive]
Code:
// --- Initialize Timer --- // Check NTP Server - Update actual time trNtpCheckServer.every(TR3H, ntpCheckServer, (void*)0);
Timer library is included.
Once I get my NodeMCU I am going to include WiFiManger. Not for any reason other than It seems like a good idea not having connection details fixed in the program.
I'm getting an error on line 454:
trCheckNtpServer.every(TR1H, checkNtpServer, (void*)0);
Error messages:
/Users/James/Documents/Arduino/Moodlite/Moodlite.ino: In function 'void setup()':
Moodlite:454:60: error: invalid conversion from 'void (*)(void*)' to 'void (*)()' [-fpermissive]
trCheckNtpServer.every(TR1H, checkNtpServer, (void*)0);
^
In file included from /Users/James/Documents/Arduino/Moodlite/Moodlite.ino:31:0:
/Users/James/Documents/Arduino/libraries/Timer/Timer.h:19:10: error: initializing argument 2 of 'int8_t Timer::every(long unsigned int, void (*)(), int)' [-fpermissive]
int8_t every(unsigned long period, void (*callback)(void), int repeatCount);
^
Moodlite:454:60: error: invalid conversion from 'void*' to 'int' [-fpermissive]
trCheckNtpServer.every(TR1H, checkNtpServer, (void*)0);
^
In file included from /Users/James/Documents/Arduino/Moodlite/Moodlite.ino:31:0:
/Users/James/Documents/Arduino/libraries/Timer/Timer.h:19:10: error: initializing argument 3 of 'int8_t Timer::every(long unsigned int, void (*)(), int)' [-fpermissive]
int8_t every(unsigned long period, void (*callback)(void), int repeatCount);
^
exit status 1
invalid conversion from 'void (*)(void*)' to 'void (*)()' [-fpermissive]
I have to comment it out to compile and upload.
Hi!
I'm having issues with my wifi at home and the moodlite panel isn't working because it is failing trying to fetch jQuery and jQuery mobile from the net..
I suggest to load it locally in the next release to avoid this problem
I've yet to assemble my BOM to commence my own build, but hope to get started in then next week or two. Never the less, I spy an opportunity to integrate this project with the great OpenMQTTGateway project.
I propose that this issue is used to discuss the feasibility of such a task. Once I'm hands-on with the project I'll be happy to contribute to any community effort.
Hopefully there is some interest in helping to achieve this. After all, automation is great. :)
I'm getting errors about boolean type declarations when attempting to compile moodlite v3 for my NodeMCU 1.0. These are beyond the expected errors
called out in previous defects on in the tutorials.
Unexpected Warnings/Errors:
FastLED/platforms/esp/8266/led_sysdefs_esp8266.h:15:17: error: conflicting declaration 'typedef uint8_t boolean typedef uint8_t boolean;
Arduino15/packages/esp8266/hardware/esp8266/2.7.2/cores/esp8266/Arduino.h:170:14: error: 'boolean' has a previous declaration as 'typedef bool boolean typedef bool boolean;
Configuration:
master branch
Repro Steps:
Followed https://github.com/spigotx/Moodlite/wiki/Preparing-Arduino-IDE
Followed https://github.com/spigotx/Moodlite/wiki/First-setup-of-Moodlite
Getting additional errors when attempting to Verify
Guys i get this all the time
C:\Users\Bas\Documents\Programs\Moodlite-master\Moodlite-master\Arduino\Moodlite\Moodlite.ino: In member function 'String& ByteString::copy(const void*, unsigned int)':
Moodlite:419:4: error: expected primary-expression before ')' token
()len = length;
^
Moodlite:419:5: error: expected ';' before 'len'
()len = length;
^
Moodlite:420:30: error: cannot convert 'String::buffer' from type 'const char* (String::)()const' to type 'void*'
memcpy(buffer, data, length);
^
Moodlite:421:16: error: invalid types '[unsigned int]' for array subscript
buffer[length] = 0;
^
exit status 1
expected primary-expression before ')' token
I use a lot off google assist stuff in my home, possible to add it?
Hallo,
Was mach ich falsch, ich spiele das moodlite.ino (v3) in den Esp8266.
Der AP Moodlite startet, ich versuche zu verbinden aber nur eine weiße Seite.
Bei den #define steht alles auf False, ausser ESP8266 ist True. Sonst habe ich nichts in der .ino
verändert.
Weiß jemand Rat?
Lg
Kai
Hai guys, i get this message
In file included from C:\Users\Bas\Downloads\Moodlite-master\Moodlite-master\Arduino\Moodlite\Moodlite.ino:12:0:
C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.001
^
In file included from C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:65:0,
from C:\Users\Bas\Downloads\Moodlite-master\Moodlite-master\Arduino\Moodlite\Moodlite.ino:12:
C:\Program Files (x86)\Arduino\libraries\FastLED-master/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
^
In file included from C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:48:0,
from C:\Users\Bas\Downloads\Moodlite-master\Moodlite-master\Arduino\Moodlite\Moodlite.ino:12:
C:\Program Files (x86)\Arduino\libraries\FastLED-master/fastpin.h: In instantiation of 'class FastPin<6u>':
C:\Program Files (x86)\Arduino\libraries\FastLED-master/platforms/esp/8266/clockless_esp8266.h:21:49: required from 'class ClocklessController<6, 20, 50, 30, (EOrder)66u, 0, false, 50>'
C:\Program Files (x86)\Arduino\libraries\FastLED-master/chipsets.h:538:7: required from 'class WS2812Controller800Khz<6u, (EOrder)66u>'
C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:104:52: required from 'class WS2812B<6u, (EOrder)66u>'
C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:299:39: required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2812B; unsigned char DATA_PIN = 6u; EOrder RGB_ORDER = (EOrder)66u]'
C:\Users\Bas\Downloads\Moodlite-master\Moodlite-master\Arduino\Moodlite\Moodlite.ino:93:69: required from here
C:\Program Files (x86)\Arduino\libraries\FastLED-master/fastpin.h:207:2: error: static assertion failed: Invalid pin specified
static_assert(validpin(), "Invalid pin specified");
^
exit status 1
Fout bij het compileren voor board Generic ESP8266 Module
Recieveing Exception when trying changing certain options in LED tab:
Exception (9):
epc1=0x4021eab7 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4021f137 depc=0x00000000
Options that trigger the exception include changing brightness, changing tile pattern options, and changing color
So Far couldn't detect any specific behavior that raises the exception
Hi,
I found an error in your code.
I uploaded the code and data to the ESP32 NodeMCU and ESP got stuck in the bootloop.
After some searching, I found that the problem is in the size of the "char cValue [40]" or "char cConfiguredNrOfSides [40]" field. So I changed both to 400 and the problem is solved.
Arduino:1.8.9 (Windows 10), Scheda:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
ATTENZIONE: la libreria Timezone dichiara di funzionare sulle architetture (avr) e potrebbe non essere compatibile con la tua scheda che utilizza l'architettura (esp8266)
In file included from C:\Users*****\Documents\Arduino\Moodlite-master\Arduino\Moodlite\Moodlite.ino:31:0:
C:\Users\Andrea****\Arduino\libraries\FastLED-master/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.006
^
In file included from C:\Users*******\Documents\Arduino\libraries\FastLED-master/led_sysdefs.h:27:0,
from C:\Users\******\Documents\Arduino\libraries\FastLED-master/FastLED.h:41,
from C:\Users\*****\Documents\Arduino\Moodlite-master\Arduino\Moodlite\Moodlite.ino:31:
C:\Users\Andrea******\Arduino\libraries\FastLED-master/platforms/esp/8266/led_sysdefs_esp8266.h:15:17: error: conflicting declaration 'typedef uint8_t boolean'
typedef uint8_t boolean;
^
In file included from sketch\Moodlite.ino.cpp:1:0:
C:\Users******\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:191:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'
typedef bool boolean;
^
In file included from C:\Users****\Arduino\libraries\FastLED-master/FastLED.h:65:0,
from C:\Users\*****\******\Arduino\Moodlite-master\Arduino\Moodlite\Moodlite.ino:31:
C:\Users***********\Arduino\libraries\FastLED-master/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
^
C:\Users****\Arduino\Moodlite-master\Arduino\Moodlite\Moodlite.ino: In member function 'String& ByteString::copy(const void*, unsigned int)':
Moodlite:419:7: error: invalid use of member function (did you forget the '()' ?)
len = length;
^
Moodlite:420:30: error: cannot convert 'String::buffer' from type 'const char* (String::)()const' to type 'void*'
memcpy(buffer, data, length);
^
Moodlite:421:16: error: invalid types '[unsigned int]' for array subscript
buffer[length] = 0;
^
exit status 1
invalid use of member function (did you forget the '()' ?)
i at all! i have a problem while putting my ssid and my password on the browser connected to mine NodeMCU , when i put the SSID after reaching 20 characters it don't write anymore, any suggestions?
In the footer licence statement it claims GPLv3 licencing but has a clause to prevent distribution or resale. See: https://www.gnu.org/philosophy/selling.html and the 4 essential freedoms: https://www.gnu.org/philosophy/free-sw.en.html
Moodlite/Arduino/Moodlite/data/index.html
Line 899 in 8a6dea0
I followed the setup step-by-step and reinstalled everything freshly, but I'am stuck at this error:
Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from E:\3D Drucker\moodlite v2\Moodlite Software_2019_04_28_V3.0\Arduino\Moodlite\Moodlite.ino:31:0:
C:\Users\Tim\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.010
# pragma message "FastLED version 3.002.010"
^
In file included from C:\Users\Tim\Documents\Arduino\libraries\FastLED/FastLED.h:65:0,
from E:\3D Drucker\moodlite v2\Moodlite Software_2019_04_28_V3.0\Arduino\Moodlite\Moodlite.ino:31:
C:\Users\Tim\Documents\Arduino\libraries\FastLED/fastspi.h:115:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^
E:\3D Drucker\moodlite v2\Moodlite Software_2019_04_28_V3.0\Arduino\Moodlite\Moodlite.ino: In member function 'String& ByteString::copy(const void*, unsigned int)':
Moodlite:419:7: error: invalid use of member function (did you forget the '()' ?)
len = length;
^
Moodlite:420:30: error: cannot convert 'String::buffer' from type 'const char* (String::)()const' to type 'void*'
memcpy(buffer, data, length);
^
Moodlite:421:16: error: invalid types '<unresolved overloaded function type>[unsigned int]' for array subscript
buffer[length] = 0;
^
exit status 1
invalid use of member function (did you forget the '()' ?)
Hello,
It appears with version 2.0 the max wifi password length is 20 characters. Unfortunately my password is more than this and I suspect this may be the case for many others as well. Could we bump this up to at least 30 or even more characters so that I don't have to custom compile the hardcoded values and remove reading from eeprom?
Looking at how the eeprom is currently allocated there is even room to simply expand the password to 30 characters (0x20) without any other changes without even filling the eeprom.
Thanks!
Only 3 leds lights up.
http://prntscr.com/n8a8wf
exit status 1
Fout bij het compileren voor board LOLIN(WEMOS) D1 R2 & mini
this is the problem for me and what do i have to do
Hey why my LEDs are only white?
https://i.postimg.cc/3NS08kXG/186510210-376442967068707-1958921978399817798-n.jpg
Hello everybody,
I would like to control my Moodlite panels via Hue App. For this, the DIYHUE project (https://github.com/diyhue/diyHue)
enables adding MQTT controlled lights - I opend up a topic there as well (diyhue/diyHue#497).
I managed to pair my Moodlite with the DIYHUE and it showes up in the Android App. Unfortunately, the required payloads
differ from the payloads sent by DIYHUE.
The Moodlite project contains the MQTT folder, but I can not find any documentation on this on. The main problem at
this point is, that I am not able to change the payload required for turning the light on/off, change colour, speed, pattern and so on in Moodlite and not in DIYHUE.
Where are the inputs for the SET topics in the Moodlite projects defined?
DIYHUE is sending following payloads when:
Turning On: {"transition": 0.3, "state": "ON"}
Turning Off: {"transition": 0.3, "state": "OFF"}
Changing color: {"transition": 0.3, "color": {"r": 0, "g": 45, "b": 35}}
Changing brithness: {"transition": 0.3, "brightness": 65}
Maybe somebody can give me a hint on how to costumize the required MQTT inputs to make this work.
Thank you everbody!
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.