Read the statement by Michael Teeuw here.
Third-Party Module - how to get help?
-
@ember1205 i am not aware of any debugging tools or strategy that can get to the type of issue being encountered. I have been chasing these for the last 4 years…
i also think the error reported is bogus, caused by the mishandling of some other error.
the ‘problem’ is that the browser thinks IT is in control of the content update cycle, but with all these modules running separate timer event handlers, it is not.
I have debugged a lot of ‘electron is single threaded’ problems down to , ‘you might THINK its single threaded, but it is NOT’… when the timer fires, SOMETHING is getting interrupted… in gosh knows what state…
one way you might prove this, is to turn off every other module, so only ONE does any content updating (it is a web page after all)
One of my modules has 2-10 images loaded over the top of the web page, on independent timing cycles. i traced failures to attempting to load an image, while an image load was already in progress. I added code to my module to prevent this behavior, and my failures went away.
I added a background image thing, and they returned when my module is running…
they are both loading images at the same time sometimes… and electron crashes… in various ways.I have been trying (last 6 months) to find a mechanism to serialize this across multiple modules, without changing the modules, but have failed so far.
we are also running on an age old electron (3.x), which the most recent version that will run for MM is 6.x) (7.x will not run)
-
@ember1205 said in Third-Party Module - how to get help?:
:8080/MMM-ImagesPhotos/photos:1
yeh, the code attempts to load the folder… once… I haven’t debugged it cause it doesn’t matter
-
@sdetweil said in Third-Party Module - how to get help?:
@ember1205 said in Third-Party Module - how to get help?:
:8080/MMM-ImagesPhotos/photos:1
yeh, the code attempts to load the folder… once… I haven’t debugged it cause it doesn’t matter
Thanks.
What about second error I mentioned? Or, is that essentially part of the overall error?
-
@ember1205 part of the same… looking at it now
-
ok, fixed the error message… a startup timing error…
module tried to get images from node_helper, before node_helper had established the linkage…
(if u are using my repo)
go to your MMM-ImagesPhotos folder and dogit pull
then restart mirror app
-
I don’t seem to be seeing that error any more, but now it’s crying about not using HTTPS (warning, not error, and specifically for Electron). For whatever reason, that warning wasn’t showing up in the console prior although I’m sure that it was there in some capacity.
I -do- see an indication of an error but can’t seem to find any error in the console.
-
@ember1205 that big pile of warning is just that warning… a couple years ago, the networking community decide that EVEY website should move away from http, to https, to reduce hacking the clear text content as it went by…
so, electron is warning that u didn’t use https
-
@sdetweil said in Third-Party Module - how to get help?:
@ember1205 that big pile of warning is just that warning… a couple years ago, the networking community decide that EVEY website should move away from http, to https, to reduce hacking the clear text content as it went by…
so, electron is warning that u didn’t use https
Oh, I’m well aware. This sort of stuff is “what I do” every day. I just find it interesting that I didn’t see it before, see it now, and can’t seem to find the error that is being indicated is present.
Switching to an external browser allows me to find the error - it’s actually related to one of the weather modules. The specific complaint is that I don’t have permission to load the weather map.
Failed to load resource: the server responded with a status of 401 (Unauthorized) https://api.openweathermap.org/data/2.5/forecast/daily?id=< removed>&units=imperial&lang=en&APPID=< removed>
I’ll have to look and see if I can turn off the attempt to load that map.
-
@ember1205 said in Third-Party Module - how to get help?:
Oh, I’m well aware. This sort of stuff is “what I do” every day.
cool…
i can’t explain why it wasn’t shown before… I see it all the time (assuming I don’t have some filter enabled to select just messages for specific modules…)…
oh I did a dummy routine to replace the MM provided one that echos notifications received,
cause the darned clock module sends an annoying notice every second. -
@sdetweil said in Third-Party Module - how to get help?:
cause the darned clock module sends an annoying notice every second.
hasn’t this been resolved with a recent update? If not it should be.
With the update to 2.10.0 I don’t get any notifications by the clock anymore.