MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. db1mso
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 8
    • Groups 0

    db1mso

    @db1mso

    0
    Reputation
    95
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Location Germany

    db1mso Unfollow Follow

    Latest posts made by db1mso

    • RE: MMM-Fuel error ECONNREFUSED

      @sdetweil Thanks!
      The option UpdateInterval is optional.

      Anyway. Shorter than 5 min makes no sense because the database on tankerkoenig updates every 4 min.

      posted in Troubleshooting
      D
      db1mso
    • RE: MMM-Fuel error ECONNREFUSED

      @sdetweil modifiying is another method :winking_face:
      I think the problem was the number of request at a time. There list up to 9 Request at the same Timestamp.

      EDIT: Error found by myself!
      The value for UpdateInterval must set to 900000 //15min
      RTFM!

      Thanks for your time!

      posted in Troubleshooting
      D
      db1mso
    • RE: MMM-Fuel error ECONNREFUSED

      @sdetweil i never publish my own API_KEY :winking_face:
      As i mentioned before, the url (with the right key in it) works perfekt in a Browser.

      posted in Troubleshooting
      D
      db1mso
    • RE: MMM-Fuel error ECONNREFUSED

      @sdetweil see Attached Picture 0_1571737115017_logfile_TankerkoenigAPI#.JPG

      posted in Troubleshooting
      D
      db1mso
    • RE: MMM-Fuel error ECONNREFUSED

      @sdetweil Thanks for testing.
      Yes, the url works perfekt in a Browser - but not in MMM-Fuel.
      Best of all: it works perfekt and show up in MM.
      Maybe it runs too often and was rejected by tankerkoenig.de. The Logfile from tankerkoenig API shows up the massive requests --i can’t append the logfile–

      UpdateInterval: 15 says 15 Minutes - right?

      posted in Troubleshooting
      D
      db1mso
    • RE: MMM-Fuel error ECONNREFUSED

      @sdetweil sorry i can`t fully reply. AKISMET SPAM :-(

      posted in Troubleshooting
      D
      db1mso
    • MMM-Fuel error ECONNREFUSED

      Can`t connect to tankerkoenig.

      Hello, this is my first try to use MMM-Fuel. Dependencies already installed with npm install
      I get this error every seconds in the MM-Logfile:

      0|MagicMirror | { FetchError: request to https://creativecommons.tankerkoenig.de/json/list.php?lat=47.551609&lng=10.251099&rad=3&type=all&apikey=API_KEY&sort=dist failed, reason: connect ECONNREFUSED 188.68.35.147:443
      0|MagicMirror | at ClientRequest. (/home/pi/MagicMirror/modules/MMM-Fuel/node_modules/node-fetch/lib/index.js:1455:11)
      0|MagicMirror | at ClientRequest.emit (events.js:182:13)
      0|MagicMirror | at TLSSocket.socketErrorListener (_http_client.js:382:9)
      0|MagicMirror | at TLSSocket.emit (events.js:182:13)
      0|MagicMirror | at emitErrorNT (internal/streams/destroy.js:82:8)
      0|MagicMirror | at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
      0|MagicMirror | at process._tickCallback (internal/process/next_tick.js:63:19)
      0|MagicMirror | message:
      0|MagicMirror | ‘request to https://creativecommons.tankerkoenig.de/json/list.php?lat=47.123456&lng=10.123456&rad=3&type=all&apikey=API_KEY&sort=dist failed, reason: connect ECONNREFUSED 188.68.35.147:443’,
      0|MagicMirror | type: ‘system’,
      0|MagicMirror | errno: ‘ECONNREFUSED’,
      0|MagicMirror | code: ‘ECONNREFUSED’ }

      The URL works just fine in a Browser and shows up the Gas-Stations near to me.

      My config file:

      {
      			module: "MMM-Fuel",
      			disabled: false,
      			position: "top_left",
      			config: {
      				provider: "tankerkoenig",
      				api_key: "API_KEY",
      				lat: 47.123456,
      				lng: 10.123456,
      				types: ["e5"],
      				sortBy: "e5",
      				radius: 3,
      				max: 3,
      				updateInterval: 15,
      			}
      		},
      

      Thanks for any hint.

      posted in Troubleshooting
      D
      db1mso