jalibu / MMM-Jast

A minimalistic stock ticker based on Yahoo's finance API for the MagicMirror² platform.
MIT License
70 stars 22 forks source link

API request for IWTD.F failed: Unsupported redirect to https://finance.yahoo.com/quote/AAPL/, please report. #71

Closed gernst48 closed 6 months ago

gernst48 commented 6 months ago

Platform

Raspberry Pi OS

Node.js Version

v18.19.1

MagicMirror Version

2.27.0

Module Version

Latest

Description

API request for IWTD.F failed: Unsupported redirect to https://finance.yahoo.com/quote/AAPL/, please report. MMM-JaST is not working anymore since I get this warning or is it a bug ? I do NOT use Apple stock at all. But I could see several references in your files.

Expected behavior

Get stock data.

Current behavior

No stock data at all.

Possible solution

I don't know.

Steps to reproduce

Start MagicMirror with MMM-Jast

Log

/home/pi/.pm2/logs/mm-0-error.log output:

[2024-06-02 18:06:38.327] [WARN]  API request for IWTX.SG failed: Unsupported redirect to https://finance.yahoo.com/quote/AAPL/, please report.
[2024-06-02 18:06:38.328] [WARN]  API request for 0P0000I0UW.F failed: Unsupported redirect to https://finance.yahoo.com/quote/AAPL/, please report.
[2024-06-02 18:06:38.329] [WARN]  API request for IWTD.F failed: Unsupported redirect to https://finance.yahoo.com/quote/AAPL/, please report.

config.js

{
  module: "MMM-Jast",
  position: "top_left",
  config: {
    currencyStyle: "code", // One of ["code", "symbol", "name"]
    fadeSpeedInSeconds: 3.5,
    lastUpdateFormat: "HH:mm",
    maxChangeAge: 1 * 24 * 60 * 60 * 1000,
    maxWidth: "100%",
    numberDecimalsPercentages: 1,
    numberDecimalsValues: 2,
    displayMode: "table", // One of ["none", "vertical", "horizontal", "table"]
    showColors: true,
    showCurrency: true,
    showChangePercent: true,
    showChangeValue: false,
    showChangeValueCurrency: false,
    showHiddenStocks: false,
    showLastUpdate: false,
    showPortfolioValue: false,
    showPortfolioGrowthPercent: false,
    showPortfolioGrowth: false,
    showPortfolioPerformanceValue: false,
    showPortfolioPerformancePercent: false,
    showStockPerformanceValue: false,
    showStockPerformanceValueSum: false,
    showStockPerformancePercent: false,
    stocksPerPage: 4, // Only relevant for display mode "table"
    updateIntervalInSeconds: 300,
    useGrouping: false,
    virtualHorizontalMultiplier: 2,
    stocks: [
      { name: 'Erste Stock Techno', symbol: 'IWTX.SG', purchasePrice: 160.9338 },
      { name: 'ERSTE IMMOBILIENFONDS A', symbol: 'S0P0000I0UW.F', purchasePrice: 110.5275 },
      { name: 'Erste Stock Biotec', symbol: 'IWTD.F', purchasePrice: 476.8700 },
    ]
  }
}

Additional info

It stops working 3 Days ago.

maxbethge commented 6 months ago

@gernst48 The yahoo-finance2 dependency version needs to be updated as there was a recent fix. I updated it manually locally until this module gets updated.

package.json "yahoo-finance2": "^2.11.2" needs to be updated to "yahoo-finance2": "^2.11.3"

gernst48 commented 6 months ago

Perfect, is working now.

alcam7 commented 6 months ago

Hi there, sorry for asking, what is needed to get the dependency activated? The 'npm update' after editing the package.json file didn't work for me.

jalibu commented 6 months ago

https://github.com/jalibu/MMM-Jast/releases/tag/v2.9.5

alcam7 commented 6 months ago

Thank you, it's working now again!