Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 00:09
    mcspr commented #2186
  • Mar 31 23:54
    mcspr commented #2192
  • Mar 31 23:38
    mcspr commented #1993
  • Mar 31 18:51
    HilverinkJ commented #2192
  • Mar 31 13:28
    mcspr commented #2192
  • Mar 31 13:18
    mcspr commented #2199
  • Mar 31 12:18
    Omar-95 commented #2186
  • Mar 31 12:16
    Omar-95 commented #2186
  • Mar 31 11:56
    Omar-95 commented #2186
  • Mar 31 11:13
    grisevg commented #1993
  • Mar 31 10:06
    HilverinkJ commented #2192
  • Mar 31 09:27
    davebuk commented #2199
  • Mar 30 21:06
    mcspr commented #2192
  • Mar 30 21:03
    mcspr commented #2192
  • Mar 30 21:02
    mcspr commented #2192
  • Mar 30 20:44
    mcspr commented #2192
  • Mar 30 20:25
    mcspr commented #2192
  • Mar 30 20:21
    HilverinkJ commented #2192
  • Mar 30 19:39
    mcspr commented #2192
  • Mar 30 19:35
    mcspr commented #1993
Antonio Fiol
@antonio-fiol
The module is actually the same as this one: https://templates.blakadder.com/qs-wifi_D01_dimmer.html
So I guess that I will just try to flash it with something "hardware-less" and then need to find out the traces to the 2 inputs and 2 outputs, plus the reset button.
Max Prokhorov
@mcspr
Huh, if i remember correctly @reaper7 also bought the same device. We don't have the support for the counter part, to detect external switch press Tasmota uses "counter" which will count AC frequency on a specific pin.
Antonio Fiol
@antonio-fiol
Very likely. The input is connected via a resistor divider with what looks like a zener diode in parallel to the base (likely) of a transistor. I do not see a capacitor that could turn this into a sort of envelope detection. Even if it might be on the other side of the board, hidden, I don't think so.
YaBa
@yaba
hi there
my Sonoff POW, using ESPurna 1.14.1 switches off and on when Wifi network is down
it's annoying as hell, how can I disable this? I need it ON every time even if there's no wifi signal
adbensi
@adbensi
May be it is rebooting.. did You conected the serial to see?
YaBa
@yaba
no, but I'll try that
but why would it reboot?
I have other sonoffs (different model, same firmware) and that doesn't happen
adbensi
@adbensi
some times I see problens with WTD.. please, try it..
karmacoma92
@karmacoma92

hi again, i'm afraid this time i'm facing this,
In file included from .pio/libdeps/generic-esp01s-dht11-10-ota/AsyncTCP_ID1826/src/AsyncTCP.cpp:24:0:
.pio/libdeps/generic-esp01s-dht11-10-ota/AsyncTCP_ID1826/src/AsyncTCP.h:26:23: fatal error: sdkconfig.h: No such file or directory



include "sdkconfig.h"

                   ^

compilation terminated.
* [.pio/build/generic-esp01s-dht11-10-ota/lib0b6/AsyncTCP_ID1826/AsyncTCP.cpp.o] Error 1
=

any ideas?
Max Prokhorov
@mcspr
Add AsyncTCP to the lib_ignore entry in the platformio.ini
I though strict include fixes that, but that breaks rfm lib for some reason.
karmacoma92
@karmacoma92
excuse me but how, like this ? - lib_ignore = "sdkconfig.h"
Max Prokhorov
@mcspr
lib_ignore =
    AsyncTCP
karmacoma92
@karmacoma92
thanks, many thanks
adbensi
@adbensi
Hi!!
When I recorded the compiled image, it was not necessary to build the SPIFFS image .. where is fixed the pages? I see on the structure files, but how is it done? My question is about the possibility of using RJ45 Ethernet.. the frame server is centred?
Max Prokhorov
@mcspr
.js,.css,.html are all inlined into a single .html, which we then gzip and then convert that into an uint8_t array
see code/espurna/static/index*.h
Marco Martins
@mamartins
Hello 👋🏼 I’m trying to add 2 sonar sensors, for that I’ve initiated another sonar the problem is the wemos only run well at the first time. Subsequent times after 10s the wemos d1 stop responding
Max Prokhorov
@mcspr
@mamartins anything in the serial debug? does it crash or locks up completely, web and all?
Sachin Filinto
@sfilinto
@karmacoma92 i am observing the same since yesterday after i installed an update.
Max Prokhorov
@mcspr
Sachin Filinto
@sfilinto

@karmacoma92 @sfilinto see https://github.com/xoseperez/espurna/pull/2146#issuecomment-586489657

Thanks. adding lib_ignore = ESPAsynTCP in platformio.ini eliminates that error.

the below error still remains:
"Unicode decode error has occurred, please remove invalid (non-ASCII or non-UTF8) characters from /espurna/code/espurna/espurna.ino.cpp file"

anyway to rollback to a previous version on platformio ?

Max Prokhorov
@mcspr
@sfilinto does it build though? this is pio error, not ours, and it is not fatal based on the code. just something wrong with file encoding, perhaps you are using some custom .ino files with a different encoding so con-cated .ino.cpp show it?
Sachin Filinto
@sfilinto
@mcspr Nope does not build. i know its a pio error because it stated after i updated to the latest pio yesterday. nothing changed from the stock espurna code.
Max Prokhorov
@mcspr
@sfilinto care to open up platformio-core issue? full trace back and all.
as noticed somewhere else... pio hides the real error in a lot of cases, but you can try modifying platformio/fs.py func get_file_contents(...)to print the original exception (which should at least show file position)
diff --git a/platformio/fs.py b/platformio/fs.py
index ed0102cd..461ad925 100644
--- a/platformio/fs.py
+++ b/platformio/fs.py
@@ -54,6 +54,8 @@ def get_file_contents(path, encoding=None):
         with io.open(path, encoding=encoding) as fp:
             return fp.read()
     except UnicodeDecodeError:
+        import traceback
+        traceback.print_exc()
         click.secho(
             "Unicode decode error has occurred, please remove invalid "
             "(non-ASCII or non-UTF8) characters from %s file" % path,
Quickly snatching .ino.cpp also will help since it is removed after pio quits, like C-z if pio is ran from shell
Sachin Filinto
@sfilinto
@mcspr will do
Marco Martins
@mamartins
@mcspr wifi and telnet work, web interface and sonar measures don’t. Telnet crash don’t show anything. I don’t have the adaptor for the serial debug :(
Max Prokhorov
@mcspr
huh. but do any telnet commands work? if they don't, we are stuck in some infinite loop and the thread we stuck in is supposed to handle sensor readings and webui. only question is what exactly causes it, something we do or sonar library (see NewPing)
Marco Martins
@mamartins
Yes telnet commands work
I have 2 sensors, so I added to the initiate condition another sensor class
Marco Martins
@mamartins
At sonar.ino I replaced
#if SONAR_SUPPORT
{
    SonarSensor * sensor = new SonarSensor();
    sensor->setEcho(SONAR_ECHO);
    sensor->setIterations(SONAR_ITERATIONS);
    sensor->setMaxDistance(SONAR_MAX_DISTANCE);
    sensor->setTrigger(SONAR_TRIGGER);
    _sensors.push_back(sensor);
}
#endif
with
#if SONAR_SUPPORT
{
    SonarSensor * sensor = new SonarSensor();
    sensor->setEcho(SONAR_ECHO);
    sensor->setIterations(SONAR_ITERATIONS);
    sensor->setMaxDistance(SONAR_MAX_DISTANCE);
    sensor->setTrigger(SONAR_TRIGGER);
    _sensors.push_back(sensor);  
  SonarSensor * sensor2 = new SonarSensor();
    sensor2->setEcho(SONAR_ECHO_2);
    sensor2->setIterations(SONAR_ITERATIONS);
    sensor2->setMaxDistance(SONAR_MAX_DISTANCE);
    sensor2->setTrigger(SONAR_TRIGGER_2);
    _sensors.push_back(sensor2);    }
#endif
Marco Martins
@mamartins
And crates new Constants for the sensor nr 2 trigger and echo
Marco Martins
@mamartins
*created
Max Prokhorov
@mcspr
@mamartins that should work. my main question is how it does "stop responding"; does it not show sensor readings, web alert shows connection lost or readings are 0 both web and telnet?
julianwb
@julianwb
Is there somewhere I can add information about devices not mentioned in https://github.com/xoseperez/espurna/wiki/Hardware? Have a UK (Amazon) device Maxcio W-UK007S working, (also the older Teckin SP23 .. the one with power monitoring).
Max Prokhorov
@mcspr
@julianwb feel free to update the page with the name+flag entry, thanks for checking those devices out. we also do have some duplicates mentioned in the code/espurna/config/hardware.h comments when it's appropriate
julianwb
@julianwb
@mcspr I have overriden some of the hardware.h in my custom.h in order to configure these. Should I make a PR with updated hardware.h, or just describe the changes on the Wiki?
Max Prokhorov
@mcspr
hardware.h would be preferable
(however that depends on the extent of changes, can't really tell from device names)
julianwb
@julianwb
@mcspr OK, will do over the next day or two. Changes consist of redefining LED, SW and Relay pins only at present, I will check and fix HLW8012 ratios before submitting.