Git Product home page Git Product logo

moodlite's People

Contributors

spigotx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moodlite's Issues

class ByteString does not compile

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.

NTP Server

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.

invalid conversion from 'void (*)(void*)' to 'void (*)()' [-fpermissive]

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.

Avoid online dependencies

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

Suggestion: Support for OpenMQTTGateway

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. :)

Reference: https://github.com/1technophile/OpenMQTTGateway

Not seeing Moodlite Wifi AP available after uploading files and SPIFFS

I've followed all tutorials and successfully uploaded Moodlite v3 and the associated SPIFFS. I have attempted both cycling power and using the on-board reset button on the nodeMCU. I still do not see the AP showing in my Wifi search. Any help would be greatly appreciated!

Debug Output:
Screen Shot 2020-07-23 at 12 48 42 PM

Unexpected Warnings/Errors compiling for board NodeMCU 1.0 (ESP-12E Module).

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:

  • Mac OSX Catalina 10.15.6
  • Arduino IDE v1.8.13
  • Moodlite v3 master branch

Screen Shot 2020-07-22 at 10 56 38 PM

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
Screen Shot 2020-07-22 at 10 56 09 PM

compile issue

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

WebUI öffnet sich nicht

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

pin issue

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

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

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

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

ESP32 bootloop

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.

Lots of Error compiling

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

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

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 '()' ?)

SSID Limitation

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?

Licence text conflict

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

Copyright © 2019 Shiryou (A.R.N.) and Spigot (M.V.). All Rights Reserved. This project is licensed under the GNU V3 License. This software may not be resold, redistributed or otherwise conveyed to a third party. Created for moodlite.

invalid use of member function

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 '()' ?)

version 2.0 wifi password too restrictive

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!

wemos d1 mini

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

MQTT light control by Hue Essential Android App

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!

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.