• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-Gas

Scheduled Pinned Locked Moved Transport
56 Posts 13 Posters 24.0k Views 12 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.
  • R Offline
    richland007
    last edited by richland007 Sep 2, 2018, 5:30 PM Sep 2, 2018, 5:15 PM

    @cowboysdude I am interested in this as well …very cool thank you.
    I have two questions does it include on the listing Costco and Sam’s (which are club member prices and what i use mostly) ??? and also is there an option you can add to it so it will start listing from the top with the lowest price instead of by the distance.

    Denis

    C 1 Reply Last reply Sep 3, 2018, 12:39 PM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @richland007
      last edited by Sep 3, 2018, 12:39 PM

      @richland007 I looked at the top down in price and was JUST thinking about that :) Right now it’s done by distance. As for who is on the list I cannot control that…it’s the data I get :)

      R 1 Reply Last reply Sep 29, 2018, 6:14 PM Reply Quote 0
      • R Offline
        richland007 @cowboysdude
        last edited by Sep 29, 2018, 6:14 PM

        @cowboysdude Hey buddy i just installed your module and all i get is “updated at XDate@Time” and no other information?? Is the module currently working? can you test it with zip codes 75252 and 75093 and see if you get any info please?? Maybe there is no information on my area

        Thank you
        Denis

        3 1 Reply Last reply Sep 29, 2018, 11:45 PM Reply Quote 0
        • 3 Offline
          3d @richland007
          last edited by Sep 29, 2018, 11:45 PM

          @cowboysdude . . . I am having the same exact issue. It only displays the [updated] line with nothing else.

          @richland007 Hi…the module calls autoblog as follows:

          http://www.autoblog.com/[zipcode]-gas-prices/

          replace [zipcode] with your zip code to see if your zip code is valid.

          R 1 Reply Last reply Sep 30, 2018, 3:59 AM Reply Quote 0
          • R Offline
            richland007 @3d
            last edited by richland007 Sep 30, 2018, 4:06 AM Sep 30, 2018, 3:59 AM

            @3d thank you for the tip did not know that …and of course i would get values, i am in the middle of Dallas and Plano what was i thinking LOL… and i also get values for Costco and Sams that i asked a few posts above…so that’s a good thing cause we always use those 99% of the time as a small business.
            Anyhow the issue remains just “Updating…”
            D

            3 1 Reply Last reply Sep 30, 2018, 4:33 AM Reply Quote 0
            • 3 Offline
              3d @richland007
              last edited by Sep 30, 2018, 4:33 AM

              @richland007 Excellent. I am having the same issue as well and can’t figure it out yet.

              BTW, I lived in Plano as well…actually graduated from Univ Texas Dallas and Baylor Law. Plano is a great place. Glad I could help a bit.

              1 Reply Last reply Reply Quote 0
              • C Offline
                cowboysdude Module Developer
                last edited by Sep 30, 2018, 1:38 PM

                Yes they’ve changed their page so the data it’s asking for is incorrect. I will fix it when I can get some time to do it… Sorry everyone.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mochman Module Developer
                  last edited by Sep 30, 2018, 1:58 PM

                  @cowboysdude I just sent you a pull request that should fix their new page.

                  C M 2 Replies Last reply Sep 30, 2018, 2:42 PM Reply Quote 2
                  • C Offline
                    cowboysdude Module Developer @mochman
                    last edited by Sep 30, 2018, 2:42 PM

                    @mochman said in MMM-Gas:

                    @cowboysdude I just sent you a pull request that should fix their new page.

                    I got it and it’s been merged!! HUGE Thank you for fixing this…time is killing me right now :)

                    "You can now get fuel data for regular (default), mid-grade, premium, and diesel. I also threw in a way to sort by price or distance (default). I saw you had an items variable in the default config section as well. I assume that was to only show X number of items. I added that to your for loop that iterates through the gas array. "

                    He not only fixed it but enhanced it to make it 100% even better! Here’s an example config:

                              disabled: false,
                              module: "MMM-Gas",
                              position: "top_left",
                              config: {
                                 zip: "14904",
                                 items: 10,
                                 typeGas: "",	//premium, mid-grade, diesel, or blank for regular
                                 sortBy: "price" 	//distance, price
                      		}			   
                          }, 
                    

                    See the // notes for added features! Thank you again @mochman

                    Do a git pull to update and update your config accordingly :)

                    3 1 Reply Last reply Sep 30, 2018, 4:17 PM Reply Quote 1
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @mochman
                      last edited by Sep 30, 2018, 4:12 PM

                      @mochman said in MMM-Gas:

                      I just sent you a pull request that should fix their new page.

                      Well done, sir! Well done!

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 1 / 6
                      • 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