Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MktIndex on RBi5 #5

Open
hajog68 opened this issue Dec 11, 2024 · 11 comments
Open

MktIndex on RBi5 #5

hajog68 opened this issue Dec 11, 2024 · 11 comments

Comments

@hajog68
Copy link

hajog68 commented Dec 11, 2024

Follow up on the issue (#4) that Mkt Index worked fine on RBi4B but not on RBi5 any more

What information do you need about my configuration or versions ?

@thess
Copy link
Owner

thess commented Dec 11, 2024

What helps the most is any output from the MM server showing what is failing. For example, to see the console output from MM, start the server from the installation (MagicMirror) directory:

$ npm run server

and see if there is a problem loading and starting MMM-MktIndex.

I have updated yahoo-finance2 to the latest release (2.13.2) and have not seen any issues with it on my setup. This may help, but you will have to test it your environment. There is now included in the installation a small test applet which you can run after upgrade/installation to see if you can successfully obtain data from the Yahoo Finance site:

$ cd ~/MagicMirror/modules/MMM-MktIndex
$ node yf-test.js

Hopefully these tests will reveal the problem more specifically.

@hajog68
Copy link
Author

hajog68 commented Dec 11, 2024

Thanks vor providing help.
Enclosed the results (3 screenshots)

IMG_0627
IMG_0629
IMG_0630

@thess
Copy link
Owner

thess commented Dec 11, 2024

Looks like there is no problem with MMM-MktIndex fetching data. The problem must be with your MM installation and config.

I can't supply any additional help since the output in the 2nd image is truncated and you have not really specified what is not working. If you cannot capture (cut-n-paste) the server output, at least show what happens when you try to connect to the server via a browser. Is there any other module not working or is it just this one? What do you see on the screen?

@hajog68
Copy link
Author

hajog68 commented Dec 11, 2024

So far everything else is working fine.
There is a weather module which also was working before, but not yet any more (i needed I can find out which one exactly)
I copied the whole text after "npm run server"

pi@raspberrypi:~ $ cd /MagicMirror
pi@raspberrypi:
/MagicMirror $ npm run server

[email protected] server
node ./serveronly

[2024-12-11 17:05:45.896] [LOG] Starting MagicMirror: v2.27.0
[2024-12-11 17:05:45.904] [LOG] Loading config ...
[2024-12-11 17:05:45.906] [LOG] config template file not exists, no envsubst
[2024-12-11 17:05:46.201] [LOG] Loading module helpers ...
[2024-12-11 17:05:46.204] [LOG] No helper found for module: alert.
[2024-12-11 17:05:46.501] [LOG] Initializing new module helper ...
[2024-12-11 17:05:46.502] [LOG] Module helper loaded: updatenotification
[2024-12-11 17:05:46.503] [LOG] No helper found for module: clock.
[2024-12-11 17:05:46.595] [LOG] Initializing new module helper ...
[2024-12-11 17:05:46.595] [LOG] Module helper loaded: calendar
[2024-12-11 17:05:46.596] [LOG] No helper found for module: weather.
[2024-12-11 17:05:46.679] [LOG] Initializing new module helper ...
[2024-12-11 17:05:46.679] [LOG] Module helper loaded: newsfeed
[2024-12-11 17:05:46.680] [LOG] Initializing new module helper ...
[2024-12-11 17:05:46.681] [LOG] Module helper loaded: MMM-BurnIn
[2024-12-11 17:05:47.182] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.182] [LOG] Module helper loaded: MMM-OnThisDay
[2024-12-11 17:05:47.281] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.281] [LOG] Module helper loaded: MMM-DWD-Pollen
[2024-12-11 17:05:47.283] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.283] [LOG] Module helper loaded: MMM-AirQuality
[2024-12-11 17:05:47.294] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.294] [LOG] Module helper loaded: MMM-DWD-WarnWeather
[2024-12-11 17:05:47.295] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.295] [LOG] Module helper loaded: MMM-WetterOnline
[2024-12-11 17:05:47.296] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.296] [LOG] Module helper loaded: MMM-cryptocurrency
[2024-12-11 17:05:47.297] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.297] [LOG] Module helper loaded: MMM-MoonPhase
[2024-12-11 17:05:47.297] [LOG] No helper found for module: MMM-Globe.
[2024-12-11 17:05:47.298] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.298] [LOG] Module helper loaded: mmm-systemtemperature
[2024-12-11 17:05:47.299] [LOG] No helper found for module: MMM-Worldclock.
[2024-12-11 17:05:47.300] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.300] [LOG] Module helper loaded: MMM-MyScoreboard
[2024-12-11 17:05:47.589] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.589] [LOG] Module helper loaded: MMM-MktIndex
[2024-12-11 17:05:47.589] [LOG] No helper found for module: MMM-Traffic.
[2024-12-11 17:05:47.589] [LOG] No helper found for module: MMM-EasyPix.
[2024-12-11 17:05:47.590] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.590] [LOG] Check MagicMirror² version for node helper 'MMM-Fuel' - Minimum version: 2.15.0 - Current version: 2.27.0
[2024-12-11 17:05:47.590] [LOG] Version is ok!
[2024-12-11 17:05:47.591] [LOG] Module helper loaded: MMM-Fuel
[2024-12-11 17:05:47.603] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.603] [LOG] Module helper loaded: MMM-News
[2024-12-11 17:05:47.603] [LOG] No helper found for module: MMM-RAIN-MAP.
[2024-12-11 17:05:47.822] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.822] [LOG] Module helper loaded: MMM-Jast
[2024-12-11 17:05:47.822] [LOG] No helper found for module: MMM-Multimonth.
[2024-12-11 17:05:47.834] [LOG] Initializing new module helper ...
[2024-12-11 17:05:47.834] [LOG] Check MagicMirror² version for node helper 'MMM-NFL' - Minimum version: 2.15.0 - Current version: 2.27.0
[2024-12-11 17:05:47.834] [LOG] Version is ok!
[2024-12-11 17:05:47.834] [LOG] Module helper loaded: MMM-NFL
[2024-12-11 17:05:47.835] [LOG] Module helper loaded: MMM-weconnectid
[2024-12-11 17:05:47.835] [LOG] All module helpers loaded.
[2024-12-11 17:05:47.841] [LOG] Starting server on port 8080 ...
[2024-12-11 17:05:47.858] [LOG] Server started ...
[2024-12-11 17:05:47.859] [LOG] Connecting socket for: updatenotification
[2024-12-11 17:05:47.859] [LOG] Starting module helper: updatenotification
[2024-12-11 17:05:47.859] [LOG] Connecting socket for: calendar
[2024-12-11 17:05:47.859] [LOG] Starting node helper for: calendar
[2024-12-11 17:05:47.859] [LOG] Connecting socket for: newsfeed
[2024-12-11 17:05:47.859] [LOG] Starting node helper for: newsfeed
[2024-12-11 17:05:47.860] [LOG] Connecting socket for: MMM-BurnIn
[2024-12-11 17:05:47.860] [LOG] Connecting socket for: MMM-OnThisDay
[2024-12-11 17:05:47.860] [LOG] Starting module helper: MMM-OnThisDay
[2024-12-11 17:05:47.860] [LOG] Connecting socket for: MMM-DWD-Pollen
[2024-12-11 17:05:47.860] [LOG] MMM-DWD-Pollen helper started ...
[2024-12-11 17:05:47.860] [LOG] Connecting socket for: MMM-AirQuality
[2024-12-11 17:05:47.860] [LOG] AirQuality helper started ...
[2024-12-11 17:05:47.860] [LOG] Connecting socket for: MMM-DWD-WarnWeather
[2024-12-11 17:05:47.861] [LOG] MMM-DWD-WarnWeather helper started...
[2024-12-11 17:05:47.861] [LOG] Connecting socket for: MMM-WetterOnline
[2024-12-11 17:05:47.861] [LOG] Starting module helper: MMM-WetterOnline
[2024-12-11 17:05:47.861] [LOG] Connecting socket for: MMM-cryptocurrency
[2024-12-11 17:05:47.861] [LOG] MMM-Cryptocurrency loaded!
[2024-12-11 17:05:47.861] [LOG] Connecting socket for: MMM-MoonPhase
[2024-12-11 17:05:47.861] [LOG] Starting module helper: MMM-MoonPhase
[2024-12-11 17:05:47.861] [LOG] Connecting socket for: mmm-systemtemperature
[2024-12-11 17:05:47.862] [LOG] Starting node helper: mmm-systemtemperature
[2024-12-11 17:05:47.862] [LOG] Connecting socket for: MMM-MyScoreboard
[2024-12-11 17:05:47.862] [LOG] Starting node_helper for module [MMM-MyScoreboard]
[2024-12-11 17:05:47.976] [LOG] Connecting socket for: MMM-MktIndex
[2024-12-11 17:05:47.977] [LOG] Connecting socket for: MMM-Fuel
[2024-12-11 17:05:47.977] [LOG] Starting module helper: MMM-Fuel
[2024-12-11 17:05:47.977] [LOG] Connecting socket for: MMM-News
[2024-12-11 17:05:47.977] [LOG] Connecting socket for: MMM-Jast
[2024-12-11 17:05:47.977] [LOG] MMM-Jast helper method started...
[2024-12-11 17:05:47.977] [LOG] Connecting socket for: MMM-NFL
[2024-12-11 17:05:47.978] [LOG] Starting module helper: MMM-NFL
[2024-12-11 17:05:47.978] [LOG] Connecting socket for: MMM-weconnectid
[2024-12-11 17:05:47.978] [LOG] Sockets connected & modules started ...
[2024-12-11 17:05:47.978] [INFO]

Ready to go! Please point your browser to: http://localhost:8080 <<<
[2024-12-11 17:05:48.165] [INFO] System information:

SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false

OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.62+rpt-rpi-2712

VERSIONS: electron: undefined; used node: 20.8.0; installed node: 20.8.0; npm: 10.1.0; pm2: 5.3.1

OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined

^C[2024-12-11 17:09:47.884] [LOG] [SIGINT] Received. Shutting down server...
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: updatenotification
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: calendar
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: newsfeed
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-BurnIn
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-OnThisDay
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-DWD-Pollen
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-AirQuality
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-DWD-WarnWeather
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-WetterOnline
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-cryptocurrency
[2024-12-11 17:09:47.885] [LOG] Stopping module helper: MMM-MoonPhase
[2024-12-11 17:09:47.886] [LOG] Stopping module helper: mmm-systemtemperature
[2024-12-11 17:09:47.886] [LOG] Stopping module helper: MMM-MyScoreboard
[2024-12-11 17:09:47.886] [LOG] Stopping module helper: MMM-MktIndex
[2024-12-11 17:09:47.886] [LOG] Stopping module helper: MMM-Fuel
[2024-12-11 17:09:47.886] [LOG] Stopping module helper: MMM-News
[2024-12-11 17:09:47.886] [LOG] Stopping module helper: MMM-Jast
[2024-12-11 17:09:47.886] [LOG] Node_helpers stopped ...

pi@raspberrypi:~/MagicMirror $

@thess
Copy link
Owner

thess commented Dec 11, 2024

I see no errors. What's not working? If it is related to MM you would probably get better help from them.

===> Ready to go! Please point your browser to: http://localhost:8080/

So what do you see when you connect to the server (either local or remote works for me) and are there any errors when you connect?

@hajog68
Copy link
Author

hajog68 commented Dec 12, 2024

Its not working if i use http://localhost:8080/ in my Chrome Browser on RasbPi5.

Basically it says: Cannot connect, localhost refused the connection

IMG_0631

@thess
Copy link
Owner

thess commented Dec 12, 2024

From everything you have shown here, there is no problem with MMM-MktIndex specifically. Your startup/connection problem needs to be investigated (and fixed) -- I would start with the settings in config.js for the listening address and ipWhitelist settings. For example: using address: "0.0.0.0" and ipWhitelist: [] will allow all clients to connect.

For further help with your setup, you would be better served by posting your problem(s) getting MM configured on their forum at https://forum.magicmirror.builders.

@hajog68
Copy link
Author

hajog68 commented Dec 12, 2024

Okay, thanks again.
Looks like something in my RBPi5 configuration is misleading somewhere.
I changed both settings in the config.js to 0.0.0.0 and [] but the result on all modules is exactly the same as before.
I undestand that this is not a module problem.
Thanks again for all of your efforts and hints !

@hajog68
Copy link
Author

hajog68 commented Dec 12, 2024

May I found something ?

When I start the mm with npm start command a long list will appear before the mm really shows the screen with the apps installed.
On this screen I found some infos:

https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform

and

....other modules before.....

[2024-12-12 18:32:34.252] [LOG] fetch https://consent.yahoo.com/v2/collectConsent?sessionId=3_cc-session_10e33bbe-879d-45e4-9693-ab6e017aefd5
[2024-12-12 18:32:34.366] [LOG] fetch https://guce.yahoo.com/copyConsent?sessionId=3_cc-session_10e33bbe-879d-45e4-9693-ab6e017aefd5&lang=de-DE
[2024-12-12 18:32:34.404] [INFO] MMM-WetterOnline: The gid of city "karlsruhe" is 10727.
[2024-12-12 18:32:34.468] [LOG] Fetching crumb and cookies from https://finance.yahoo.com/quote/AAPL?guccounter=1...
[2024-12-12 18:32:34.537] [ERROR] We expected a redirect to guce.yahoo.com, but got https://finance.yahoo.com/quote/AAPL/
[2024-12-12 18:32:34.538] [ERROR] We'll try to continue anyway - you can safely ignore this if the request succeeds
[2024-12-12 18:32:34.541] [LOG] Success. Cookie expires on Infinity
[2024-12-12 18:32:34.544] [LOG] fetch https://query1.finance.yahoo.com/v1/test/getcrumb
[2024-12-12 18:32:34.687] [LOG] New crumb: MZEZxpXAsXm

....other modules after this.....

@thess
Copy link
Owner

thess commented Dec 12, 2024

[2024-12-12 18:32:34.468] [LOG] Fetching crumb and cookies from https://finance.yahoo.com/quote/AAPL?guccounter=1...
[2024-12-12 18:32:34.537] [ERROR] We expected a redirect to guce.yahoo.com, but got https://finance.yahoo.com/quote/AAPL/
[2024-12-12 18:32:34.538] [ERROR] We'll try to continue anyway - you can safely ignore this if the request succeeds
[2024-12-12 18:32:34.541] [LOG] Success. Cookie expires on Infinity
[2024-12-12 18:32:34.544] [LOG] fetch https://query1.finance.yahoo.com/v1/test/getcrumb
[2024-12-12 18:32:34.687] [LOG] New crumb: MZEZxpXAsXm

This normal operation on the Yahoo Finance site lately. As the message says "you can safely ignore this if the request succeeds" and... it does. You have already shown that the MktIndex YF query is working when you ran yf-test

Further info can be found in the discussion here: gadicc/node-yahoo-finance2#778

@hajog68
Copy link
Author

hajog68 commented Dec 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants