MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Fuel NSW no data

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 3 Posters 838 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jimus888 @jimus888
      last edited by

      Seems my pictures are not loading

      here is the config

                  },
                  {
                          module: "MMM-Fuel",
                          position: "bottom_right",
                          config: {
                                  provider: 'nsw',
                                  api_key: "xxxxxxxxxx",
                                  secret: "xxxxxxxxxx",
                                  lat: -33.8478792,
                                  lng: 150.7915495,
                                  types: ["P95"],
                                  max: 5,
                                  }
          }
          ]
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @jimus888
        last edited by

        @jimus888 the API has to return 200 (ok) and data. so if u have 400, then there is a problem

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jimus888 @sdetweil
          last edited by

          @sdetweil
          Hi, would the 400 error indicate an issue with the config file that ive uploaded above? or something wrong with the module config files or my api?

          S R 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @jimus888
            last edited by

            @jimus888 yes. I assume the API call uses data from your config to make the call, including your key and location.

            you might be able to see that actual url used for the API, by looking in the developers window. open the developers window ctrl-shift-i on the keyboard, then select the console tab and scroll up to see any errors

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              raymondjspigot @jimus888
              last edited by

              @jimus888 Hi jimus it looks like possibly your config isn’t quite right?

              Just looking at the readme for MMM-Fuel, when using the nsw provider the config notes say

              types 	["diesel"] 	Valid options are diesel, e5.
              

              so your types: [“P95”] entry in your config isn’t going to be any good. I don’t know if that’s giving you the HTTP 400 bad request that you’re seeing. Maybe try changing this value to “diesel” to see if it starts giving you a valid response?

              1 Reply Last reply Reply Quote 0
              • J Offline
                jimus888
                last edited by

                Thanks for the help guys. I didn’t know about the developer window but it has shown me a bunch of errors that i’ll have to work on.

                I got the fuel module working by changing the type to [“e5”], thanks Raymond. Once this has been changed the info showed up :)

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy