Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 19 21:23
    Sag06 commented #2470
  • Sep 19 21:07
    mcspr commented #2470
  • Sep 19 20:24
    Sag06 commented #2470
  • Sep 12 16:40
    mcspr milestoned #2121
  • Sep 12 05:12
    mcspr commented #2471
  • Sep 12 05:12

    mcspr on dev

    sns: fix initialization of _adc… (compare)

  • Sep 12 05:12
    mcspr closed #2471
  • Sep 11 07:29
    msprunck opened #2471
  • Sep 10 06:41
    Juan-ma commented #1644
  • Sep 10 06:41
    Juan-ma commented #1644
  • Sep 10 06:06
    Juan-ma commented #1644
  • Sep 10 05:50
    Juan-ma commented #1644
  • Sep 10 05:50
    Juan-ma commented #1644
  • Sep 09 12:45
    mcspr commented #2470
  • Sep 09 12:31
    mcspr labeled #2470
  • Sep 09 12:31
    mcspr labeled #2470
  • Sep 08 15:55
    Sag06 opened #2470
  • Sep 06 13:12
    Hedda commented #2224
  • Sep 06 13:00
    Hedda commented #2224
  • Sep 06 12:58
    Hedda commented #2224
zephyr.us
@zephyr.us:matrix.org
[m]
np, thanks anyway :)
Max Prokhorov
@mcspr:matrix.org
[m]
leds are software driven though, so some lag may be present since everything else is... lagging behind to drive them
but leds do work?
zephyr.us
@zephyr.us:matrix.org
[m]
okay I understand that
Nope I can't even log in to in the WEB admin panel with GARLAND_SUPPORT enabled in general.h
I don't think it's a missing RAM probe though
zephyr.us
@zephyr.us:matrix.org
[m]

RAM: [===== ] 50.3% (used 41232 bytes from 81920 bytes)
Flash: [====== ] 57.3% (used 598552 bytes from 1044464 bytes)

✅ with → #define USE_PASSWORD 0 // Insecurity caution! Disabling this will disable password querying completely.
no more problem…
bluexp1
@bluexp1
trying to build latest dev branch I got following errors:
Building in release mode
IndexError: list index out of range:
File "C:\users\user.platformio\penv\lib\site-packages\platformio\builder\main.py", line 185:
env.SConscript(item, exports="env")
File "C:\Users\user.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 591:
return _SConscript(self.fs, files, *subst_kw)
File "C:\Users\user.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 280:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "H:\iot\espurna-dev\code\scripts\pio_main.py", line 52:
app_inject_version(projenv)
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 89:
inject_string(env, "APP_VERSION", app_full_version_for_env(env))
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 82:
return env.get("ESPURNA_BUILD_FULL_VERSION") or app_combined_version(env)
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 67:
revision = app_revision_for_env(env)
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 55:
return env.get("ESPURNA_BUILD_REVISION") or app_revision()
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 26:
revision = git("rev-parse", "--short=8", "HEAD")
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 22:
return proc.stdout.readlines()[0].strip()
Max Prokhorov
@mcspr:matrix.org
[m]
@bluexp1: what's the output after this patch?
diff --git a/code/scripts/espurna_utils/version.py b/code/scripts/espurna_utils/version.py
index ba3dda1d..d6531de6 100644
--- a/code/scripts/espurna_utils/version.py
+++ b/code/scripts/espurna_utils/version.py
@@ -19,7 +19,9 @@ def app_revision():
         proc = subprocess.Popen(
             cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True
         )
-        return proc.stdout.readlines()[0].strip()
+        out = proc.stdout.readlines()
+        print("--------------", out)
+        return out[0].strip()

     revision = None
     try:
...will be right at the same line:
Building in release mode
-------------- ['d9662bd6\n']
... the rest ...
bluexp1
@bluexp1
@mcspr:matrix.org here is the output:
'''
Building in release mode
-------IndexError: list index out of range:
------- []
File "C:\users\alireza.platformio\penv\lib\site-packages\platformio\builder\main.py", line 185:
env.SConscript(item, exports="env")
File "C:\Users\Alireza.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 591:
return _SConscript(self.fs, files, *subst_kw)
File "C:\Users\Alireza.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 280:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "H:\iot\espurna-dev\code\scripts\pio_main.py", line 52:
app_inject_version(projenv)
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 92:
inject_string(env, "APP_VERSION", app_full_version_for_env(env))
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 85:
return env.get("ESPURNA_BUILD_FULL_VERSION") or app_combined_version(env)
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 70:
revision = app_revision_for_env(env)
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 58:
return env.get("ESPURNA_BUILD_REVISION") or app_revision()
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 29:
revision = git("rev-parse", "--short=8", "HEAD")
File "H:\iot\espurna-dev\code\scripts\espurna_utils\version.py", line 25:
return out[0].strip()
============================================== [FAILED] Took 35.15 seconds ==============================================
'''
Max Prokhorov
@mcspr:matrix.org
[m]
@bluexp1: should work now, if my assumption about missing .git/ dir is correct
bluexp1
@bluexp1
@mcspr:matrix.org ,I downloaded the code using web interface, let me try again by cloning git repo
bluexp1
@bluexp1
@mcspr:matrix.org Cloning git repo, I could build without any error, even without that patch. Thanks
felixgames097
@felixgames097
Hi! Just asking, would there be a way to emulate an ESP-like chip inside a Realtek chip? I want to flash a Teckin SP21, but Teckin now uses Realtek chips.
Thanks!
Max Prokhorov
@mcspr:matrix.org
[m]
@felixgames097: in some specific cases it's possible to replace the mcu board when it's pin-compatible (may not be applicable to every device though)
felixgames097
@felixgames097
Thanks! I'll look into it
Melanie Thielker
@MelanieT
Hi!
I'm new to espurna but not new to home automation
I have a number of plugs I came by cheaply, made by UNI-COM
I have flashed espurna-base to them
I have opened one of them, beastly security screws drilled out
It's TYWE2S module
It may be the same pin connections as a gosund SP1
this is where I hit the wall because there seems to be no easy translation from device to firmware file to download
I don't want Tasmota, I want the pure espurna because all I need is MQTT with no frills
which file do I need to flash?
Melanie Thielker
@MelanieT
nevermind, figured it out
WollyCGN
@WollyCGN
Hi community, I just downgraded an Arilux LC-06 device to espurna core. Now I can connect to the WiFi but there is no WebUI with 192.168.4.1. I want to do an OTA flash via telnet but also I can't connect via telnet "connection refused". Any insights how to connect to the device without serial interface?
WollyCGN
@WollyCGN
I've checked the device with a port scanner. There is only port 23 available. Is there any trick to configure putty?
WollyCGN
@WollyCGN
Got it!
Max Prokhorov
@mcspr:matrix.org
[m]
@WollyCGN: post factum, but current dev branch also allows to set -DOTA_WEB_SUPPORT=1 with the espurna core builds that disable the web server. which would allow to disable OTA_ARDUINOOTA_SUPPORT with MDNS_SERVER_SUPPORT too, maybe also TELNET_SUPPORT and TERMINAL_SUPPORT.
there will be /upgrade endpoint, and a small webpage form at the /. both without auth
Matthieu Sprunck
@msprunck
Hello, I'm trying to use the EmonAnalogSensor with a nodemcu but it looks like _adc_counts is not initialized correctly in BaseAnalogEmonSensor.h size_t _adc_counts { _resolution << 1 }; produces 20. I would replace this line by size_t _adc_counts { 1 << _resolution }; to get 1024 when the resolution is 10 bits. Does it makes sense?
Max Prokhorov
@mcspr:matrix.org
[m]
@msprunck: it does. also see setResolution
...and I think I accidentally removed EMON_ANALOG_RESOLUTION
Matthieu Sprunck
@msprunck
@mcspr:matrix.org thanks, will try to open a PR to address this :)
sponz
@sponz
hi All, one question regarding DNS. How often does espurna make a URL resolution? For the MQTT I have an URL instead of an IP address and I want to know if I have to reboot espurna if the IP of the URL changes. Thanks!
Max Prokhorov
@mcspr:matrix.org
[m]
@sponz: it depends on the DNS TTL value, there's no specific timeout set from our side
sponz
@sponz
@mcspr:matrix.org Thanks for the answer. You mean that I should check the DNS server? By the way, I have it in the same network.
Max Prokhorov
@mcspr:matrix.org
[m]
@sponz: yeah? or using something like get-dnsclientcache (powershell) or dig (linux / mac cli), both will show ttl for hosts
Matthieu Sprunck
@msprunck

@mcspr:matrix.org thanks, will try to open a PR to address this :)

Ready to review https://github.com/xoseperez/espurna/pull/2471/files

WhoCares1337
@WhoCares1337
WhoCares1337
@WhoCares1337
but the name on the board is ZJ-WFMN-C V1.1
3 replies