• 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 Still Working?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
18 Posts 6 Posters 3.2k Views 5 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.
  • S Offline
    sifuhall
    last edited by sdetweil Feb 22, 2022, 1:35 PM Feb 22, 2022, 9:18 AM

    Re: MMM-Gas
    Can anyone verify if this is still working?

    I do not get any results.

    C 1 Reply Last reply Feb 22, 2022, 10:57 PM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @sifuhall
      last edited by cowboysdude Feb 23, 2022, 1:52 AM Feb 22, 2022, 10:57 PM

      @sifuhall said in MMM-Gas Still Working?:

      Re: MMM-Gas
      Can anyone verify if this is still working?

      I do not get any results.

      Well since I wrote it… I’ll have to check that out :) I’ll let you know!

      Yes Sir I can confirm it’s still working for me. If you run your mirror ‘npm start dev’ the results are in the console window… or an error will be there. Check it out and let me know.

      Did you run npm-install in the module directory?

      M 1 Reply Last reply Feb 23, 2022, 1:07 AM Reply Quote 2
      • M Offline
        Mykle1 Project Sponsor Module Developer @cowboysdude
        last edited by Feb 23, 2022, 1:07 AM

        @cowboysdude

        I can confirm that the module is still working under ubuntu 20.04.3 LTS. I just installed it and it fired right up. Nice work, bro.

        Create a working config
        How to add modules

        S 1 Reply Last reply Feb 23, 2022, 1:52 PM Reply Quote 1
        • S Offline
          sifuhall @Mykle1
          last edited by sifuhall Feb 23, 2022, 2:43 PM Feb 23, 2022, 1:52 PM

          @mykle1

          For some reason mine isn’t working. I don’t see any errors with npm start dev and my config.sys checks out with npm run config:check

          Could you try for zipcode 40391 and see if that works for you? Maybe there are just no results?

          C M 3 Replies Last reply Feb 23, 2022, 7:17 PM Reply Quote 0
          • C Offline
            cowboysdude Module Developer @sifuhall
            last edited by Feb 23, 2022, 7:17 PM

            @sifuhall said in MMM-Gas Still Working?:

            @mykle1

            For some reason mine isn’t working. I don’t see any errors with npm start dev and my config.sys checks out with npm run config:check

            Could you try for zipcode 40391 and see if that works for you? Maybe there are just no results?

            I sure will when i get home from work. I will post back.

            1 Reply Last reply Reply Quote 0
            • C Offline
              cowboysdude Module Developer @sifuhall
              last edited by Feb 23, 2022, 9:58 PM

              @sifuhall Here is what I am getting:

                {
                  name: 'Speedway #9600',
                  dist: '2.5 miles',
                  address: '39 S Maple St Winchester KY 40391',
                  ppg: '¤3.60'
                },
                {
                  name: 'Shell',
                  dist: '2.56 miles',
                  address: '4 W Washington St Winchester KY 40391',
                  ppg: '¤3.55'
                },
                {
                  name: 'Clarks Pump N Shop #81',
                  dist: '2.58 miles',
                  address: '201 N Main St Winchester KY 40391',
                  ppg: '¤3.55'
                },
                {
                  name: 'Shell',
                  dist: '3.69 miles',
                  address: '105 April Way Dr Winchester KY 40391',
                  ppg: '¤3.59'
                },
                {
                  name: 'Murphy Express #8605 (discount Available)',
                  dist: '3.85 miles',
                  address: '120 Codella Dr Winchester KY 40391',
                  ppg: '¤3.38'
                },
                {
                  name: 'Hardys Bp',
                  dist: '3.9 miles',
                  address: '108 Rolling Hills Ln Winchester KY 40391',
                  ppg: '¤3.64'
                },
                {
                  name: 'Kroger Fuel Center #8402 (discount Available)',
                  dist: '4.29 miles',
                  address: '1661 Bypass Rd Winchester KY 40391',
                  ppg: '¤3.40'
                },
                {
                  name: 'Speedway #8256',
                  dist: '4.42 miles',
                  address: '1480 W Lexington Ave Winchester KY 40391',
                  ppg: '¤3.53'
                },
                {
                  name: 'Fas Mart #5262',
                  dist: '4.56 miles',
                  address: '5400 Revilo Rd Winchester KY 40391',
                  ppg: '¤3.56'
                },
                {
                  name: 'Apple Market #526',
                  dist: '4.63 miles',
                  address: '570 Van Meter Rd Winchester KY 40391',
                  ppg: '¤3.56'
                }
              ]
              

              That is in the terminal window…
              For the results with your zip code. I see no front end errors
              here are the results for that…

              0: {name: 'Murphy Express #8605 (discount Available)', dist: '3.85 miles', address: '120 Codella Dr Winchester KY 40391', ppg: '¤3.38'}
              1: {name: 'Kroger Fuel Center #8402 (discount Available)', dist: '4.29 miles', address: '1661 Bypass Rd Winchester KY 40391', ppg: '¤3.40'}
              2: {name: 'Speedway #8256', dist: '4.42 miles', address: '1480 W Lexington Ave Winchester KY 40391', ppg: '¤3.53'}
              3: {name: 'Shell', dist: '2.56 miles', address: '4 W Washington St Winchester KY 40391', ppg: '¤3.55'}
              4: {name: 'Clarks Pump N Shop #81', dist: '2.58 miles', address: '201 N Main St Winchester KY 40391', ppg: '¤3.55'}
              5: {name: 'Fas Mart #5262', dist: '4.56 miles', address: '5400 Revilo Rd Winchester KY 40391', ppg: '¤3.56'}
              6: {name: 'Apple Market #526', dist: '4.63 miles', address: '570 Van Meter Rd Winchester KY 40391', ppg: '¤3.56'}
              7: {name: 'Shell', dist: '3.69 miles', address: '105 April Way Dr Winchester KY 40391', ppg: '¤3.59'}
              8: {name: 'Speedway #9600', dist: '2.5 miles', address: '39 S Maple St Winchester KY 40391', ppg: '¤3.60'}
              9: {name: 'Hardys Bp', dist: '3.9 miles', address: '108 Rolling Hills Ln Winchester KY 40391', ppg: '¤3.64'}
              length: 10
              [[Prototype]]: Array(0)
              
              

              Please post your config so I can look at that.

              S 1 Reply Last reply Feb 23, 2022, 10:41 PM Reply Quote 0
              • S Offline
                sifuhall @cowboysdude
                last edited by Feb 23, 2022, 10:41 PM

                @cowboysdude

                		{
                			module: 'MMM-Gas',
                			position: 'top_left',
                			config: { 
                				zip : "40391",
                				typeGas: "", //can be "mid-grade", "premium", or "diesel".  Leave blank for regular gas prices
                				sortBy: "price",	//can be "distance" or "price"
                				items: "10",	//number of gas stations to display
                				distance: false  //to hide distance column
                			}
                		},
                
                S K C 3 Replies Last reply Feb 23, 2022, 10:42 PM Reply Quote 0
                • S Offline
                  sifuhall @sifuhall
                  last edited by Feb 23, 2022, 10:42 PM

                  @sifuhall

                  Just an FYI this is the output of my npm start dev

                  
                  > magicmirror@2.18.0 start
                  > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev"
                  
                  [23.02.2022 17:38.54.232] [LOG]   Starting MagicMirror: v2.18.0
                  [23.02.2022 17:38.54.235] [LOG]   Loading config ...
                  [23.02.2022 17:38.54.973] [LOG]   Starting node_helper for module [MMM-MyScoreboard]
                  [23.02.2022 17:38.55.215] [LOG]   Starting node helper: MMM-json
                  [23.02.2022 17:38.55.216] [LOG]   Started node_helper.js for MMM-DailyBibleVerse.
                  [23.02.2022 17:38.58.075] [INFO]  [MMM-DynamicWeather] Getting Holiday data
                  [23.02.2022 17:38.58.101] [INFO]  [MMM-DynamicWeather] Getting Weather API data
                  [23.02.2022 17:38.58.284] [LOG]   Notification: MMM_JSON_REQUEST Payload: {
                    config: {
                      url: 'http://192.168.1.50:8079',
                      refreshInterval: 300000,
                      styleRules: [],
                      values: [ [Object], [Object], [Object], [Object], [Object] ]
                    },
                    identifier: 'module_7_MMM-json'
                  }
                  [23.02.2022 17:38.58.295] [LOG]   MMM-DailyBibleVerse node helper received a socket notification: START - Payload: NIV
                  [23.02.2022 17:38.58.602] [DEBUG] Response {
                    size: 0,
                    [Symbol(Body internals)]: {
                      body: PassThrough {
                        _readableState: [ReadableState],
                        _events: [Object: null prototype],
                        _eventsCount: 5,
                        _maxListeners: undefined,
                        _writableState: [WritableState],
                        allowHalfOpen: true,
                        [Symbol(kCapture)]: false,
                        [Symbol(kCallback)]: null
                      },
                      stream: PassThrough {
                        _readableState: [ReadableState],
                        _events: [Object: null prototype],
                        _eventsCount: 5,
                        _maxListeners: undefined,
                        _writableState: [WritableState],
                        allowHalfOpen: true,
                        [Symbol(kCapture)]: false,
                        [Symbol(kCallback)]: null
                      },
                      boundary: null,
                      disturbed: false,
                      error: null
                    },
                    [Symbol(Response internals)]: {
                      type: 'default',
                      url: 'http://192.168.1.50:8079/',
                      status: 200,
                      statusText: 'OK',
                      headers: {
                        connection: 'close',
                        'content-type': 'text/html; charset=UTF-8',
                        date: 'Wed, 23 Feb 2022 22:38:58 GMT',
                        server: 'nginx',
                        'transfer-encoding': 'chunked'
                      },
                      counter: 0,
                      highWaterMark: 16384
                    }
                  }
                  [23.02.2022 17:38.58.778] [INFO]  [MMM-DynamicWeather] Received successful Weather API data
                  [23.02.2022 17:38.59.204] [INFO]  [MMM-DynamicWeather] Received successful Holiday data
                  [23.02.2022 17:38.59.254] [LOG]   {"votd":{"text":"“Do not those who plot evil go astray? But those who plan what is good find love and faithfulness.”","content":"Do not those who plot evil go astray? But those who plan what is good find love and faithfulness.","display_ref":"Proverbs 14:22","reference":"Proverbs 14:22","permalink":"https:\/\/www.biblegateway.com\/passage\/?search=Proverbs%2014:22&version=NIV","copyright":" ","copyrightlink":"https:\/\/www.biblegateway.com\/versions\/index.php?action=getVersionInfo&vid=31&lang=2","audiolink":"https:\/\/www.biblegateway.com\/audio\/mclean\/niv\/Prov.14.22","day":"23","month":"02","year":"2022","version":"New International Version","version_id":"NIV","merchandising":""}}
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    karsten13 @sifuhall
                    last edited by karsten13 Feb 23, 2022, 11:26 PM Feb 23, 2022, 11:23 PM

                    @sifuhall

                    try items: 10,

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @sifuhall
                      last edited by Feb 24, 2022, 12:31 AM

                      @sifuhall said in MMM-Gas Still Working?:

                      mid-grade

                      I can come up with possibly 2 problems…

                      Either npm install wasn’t run in the MMM-Gas module directory OR
                      if you copied the example config from github quotes do not copy correctly.
                      So go in and wherever there is a quote ’ or " delete them and from your own keyboard redo them ’ or "…

                      Let me know.

                      S 1 Reply Last reply Feb 24, 2022, 1:24 AM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        5/18
                        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