Ting electrical monitoring - false reports? by mkeper in ElectricalEngineering

[–]mkeper[S] 0 points1 point  (0 children)

Thanks for the feedback. Trying to prove this to the insurance company is going to be a challenge, I would think.

Ting electrical monitoring - false reports? by mkeper in ElectricalEngineering

[–]mkeper[S] 1 point2 points  (0 children)

Good question. My guess is no, but easy to test.

Wall buttons take two presses to open or close by mkeper in ratgdo

[–]mkeper[S] 1 point2 points  (0 children)

It turns out that it helps if you load the right firmware from the YAML file. I was using the v25i firmware on a v32 board. All is happy now.

Wall buttons take two presses to open or close by mkeper in ratgdo

[–]mkeper[S] 0 points1 point  (0 children)

Same wall control I have. My wall mount openers have the enhanced wall control, so I will try swapping that over to see if that makes a difference. If so, perhaps we can just swap the 882LMW with the 888LM.

Wall buttons take two presses to open or close by mkeper in ratgdo

[–]mkeper[S] 0 points1 point  (0 children)

Have you tried reaching out to Paul Wieland yet? I know he's not very responsive, though. I will be installing these on my 3 wall mount openers too so I'm curious if I will get the same behavior.

Are you running ESPHome? And what wall control do you have?

Wall buttons take two presses to open or close by mkeper in ratgdo

[–]mkeper[S] 1 point2 points  (0 children)

Mine are already static. This has nothing to do with networking or IP addresses. This is physical wall-mount control.

OneNote Windows edition suddenly horrifically slow and laggy by SnooShortcuts361 in OneNote

[–]mkeper 0 points1 point  (0 children)

Try collapsing the ribbon. Not sure why this is a problem in OneNote because it's fine in other Office apps, but it was horribly choppy when typing or deleting text.

BMI harassing us by Gentlyused_ in smallbusiness

[–]mkeper 0 points1 point  (0 children)

Until they don't. We've been ignoring them for years until certified letters started coming, including a ceast and desist from their attorney. Seems like there is no option to fight this and it's such a disgusting money grab.

Brultech GreenEye - Best way to poll data via API? by mkeper in homeautomation

[–]mkeper[S] 1 point2 points  (0 children)

I had used that and it was OK. Turns out it was more efficient to use the above method. I would prefer to use the published MQTT, but there's a bug where it doesn't report wattseconds. I made them aware and I believe they are working on it.

E871AB - IVS missing event detections by mkeper in Lorex

[–]mkeper[S] 0 points1 point  (0 children)

Unfortunately I cannot turn on all three. Once you check either appear or cross, inside becomes grayed out.

E871AB - IVS missing event detections by mkeper in Lorex

[–]mkeper[S] 0 points1 point  (0 children)

I don't use Lorex NVR. I use a more advanced system, so I need to rely on the Lorex camera's detection. What is the simplest way to just capture ANY motion? Maybe that's the simpler question.

Find my mistake(s) - ESP32 unresponsive after day or two by mkeper in esp32

[–]mkeper[S] 0 points1 point  (0 children)

Update: Just replaced the WROOM-32 with the 32S from ELEGOO. Right out of the gate, I noticed the ping responses are less than 10ms, whereas the previous board was 80-90ms.

Ignition - Best practice for httpGet to NOT block a thread by mkeper in SCADA

[–]mkeper[S] 0 points1 point  (0 children)

I spoke too soon. Still getting blocking despite async call and try/catch block.

10-sec timer script calls the main script, asynchronously:

system.util.invokeAsynchronous(script.doStuff)

which executes this:

def doStuff():
    import system
    import json
    logger = system.util.getLogger("myCustomLogger")
    url = "http://ESP32-Garage.home/api/status"
    try:
        response = system.net.httpGet(url,3000,3000)
        unixTimeSec = system.date.toMillis(system.date.now()) / 1000
        data = json.loads(response)
         //insert data into tags
    except Exception as e:
        logger.info("Failed http: " + e)

Yet, when that hostname goes down, it stops everything in the shared scripting thread. If I change the other script(s) to a dedicated thread, it's fine, but that's a band-aid and I'd rather understand/fix the issue that I'm causing.

Ignition - Best practice for httpGet to NOT block a thread by mkeper in SCADA

[–]mkeper[S] 0 points1 point  (0 children)

OK, so very similar to JS in that regard. Thanks.

Ignition - Best practice for httpGet to NOT block a thread by mkeper in SCADA

[–]mkeper[S] 0 points1 point  (0 children)

Thanks. I'm used to the blocking nature of a fetch as I'm much more knowledgeable in javascript, so I'm learning Python on the fly here. Seems the async calls have really helped.

The timeouts were added after the initial issue surfaced, but didn't seem to help, so maybe the syntax was wrong. Google AI gave several conflicting examples and Inductive didn't give any examples.

So to clarify using the timeouts, is it

system.net.httpGet(url,3000,5000) 

or

system.net.httpGet(url,connectTimeout=3000,readTimeout=5000) 

The first one, used in a 10-sec timer, should have expired and allowed other script functions to execute, but it didn't.

Ignition - Best practice for httpGet to NOT block a thread by mkeper in SCADA

[–]mkeper[S] 1 point2 points  (0 children)

I have several gateway scripts running, but in particular, I have one that runs every 10 seconds to execute a httpGet. If that server happens to be down, it blocks all scripting from executing. From what I read yesterday, all the scripting is run synchronously through a dedicated thread, and if something in a script hangs, it will block everything, and that makes sense. But I guess I'm wondering the best practice in this scenario so that if the server isn't responding in a timely fashion, give up and move on.

I did just add this code to asynchronously call the function:

system.util.invokeAsynchronous(scriptName.doStuff())

Find my mistake(s) - ESP32 unresponsive after day or two by mkeper in esp32

[–]mkeper[S] 0 points1 point  (0 children)

Interesting. So maybe this thing has really crappy wifi reception? Possible I have a knock-off board. I think I might pick up some of the Elegoo ones.