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 31.1k 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.
    • S Offline
      sdetweil @DDE12
      last edited by

      @DDE12 yes, prefix the class with the module name

      ..modulename .xsmall {
      ...
      }
      

      this is the documented way to use custom.css

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        DDE12 @sdetweil
        last edited by

        @sdetweil That fixed it! Thank you! Looking back, I see that the module css has .xxsmall and the font size is determined by .xsmall. My brain glossed over that extra ‘x’. Maybe’s it’s a typo in the css because changing it does not seem to affect anything?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @DDE12
          last edited by

          @DDE12 sorry, don’t know the module…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • D Offline
            DDE12
            last edited by

            I recently noticed that the MMM-Gas module is not showing/working. All of my other modules are working. I removed all the modules except MMM-Gas from config.js and disabled the default modules and am just getting a black screen. There is no Loading or Undefined message. I deleted the module and reinstalled but got the same results. MM is installed on a Raspberry Pi. Please let me know what further info I can provide or steps to take to troubleshoot further. Thank you!

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @DDE12
              last edited by

              @DDE12 can you show the mesages from npm start
              if using pm2 to auto launch, then

              pm2 logs --lines=???
              ??? is some number of lines, default 15

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                DDE12 @sdetweil
                last edited by DDE12

                @sdetweil

                admin@raspberrypi:~/Desktop/MagicMirror $ npm run start
                
                > magicmirror@2.28.0 start
                > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                
                [2024-09-28 14:20:56.806] [LOG]   Starting MagicMirror: v2.28.0 
                [2024-09-28 14:20:56.892] [LOG]   Loading config ... 
                [2024-09-28 14:20:56.899] [LOG]   config template file not exists, no envsubst 
                [2024-09-28 14:20:56.909] [LOG]   Loading module helpers ... 
                [2024-09-28 14:20:59.198] [LOG]   Initializing new module helper ... 
                [2024-09-28 14:20:59.201] [LOG]   Module helper loaded: MMM-Gas 
                [2024-09-28 14:20:59.202] [LOG]   All module helpers loaded. 
                [2024-09-28 14:20:59.224] [LOG]   Starting server on port 8080 ...  
                [2024-09-28 14:21:00.473] [LOG]   Server started ... 
                [2024-09-28 14:21:00.479] [LOG]   Connecting socket for: MMM-Gas 
                [2024-09-28 14:21:00.482] [LOG]   Starting module: MMM-Gas 
                [2024-09-28 14:21:00.485] [LOG]   Sockets connected & modules started ... 
                [2024-09-28 14:21:02.543] [LOG]   Launching application. 
                [2024-09-28 14:21:07.261] [INFO]  System information:
                ### SYSTEM:   manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 2 Model B Rev 1.2; raspberry: [object Object]; virtual: false
                ### OS:       platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 6.1.21-v7+
                ### VERSIONS: electron: 31.1.0; used node: 20.14.0; installed node: 20.11.0; npm: 10.2.4; pm2: 5.4.1
                ### OTHER:    timeZone: America/New_York; ELECTRON_ENABLE_GPU: undefined 
                
                

                It doesn’t look like it is fetching the gas prices. ??

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

                  @cowboysdude - We have a car that only takes premium, and a car that only requires regular. Is it possible to show prices for multiple grades of fuel in a single instance of the module? {Obviously I could install one instance, rename a bunch of stuff and then install a 2nd instance, but I’m wondering whether it can do it natively? Thanks in advance.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @JohnGalt
                    last edited by

                    @JohnGalt it cannot do it natively

                    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
                      JohnGalt @sdetweil
                      last edited by

                      @sdetweil Sam - thanks for the confirmation. I posted the question before installing it, and went ahead and installed just to see how it might look.

                      It gave me some warnings on install regarding deprecated dependencies, then displayed… nothing. I tried to manually pull the gas price data using the url in code in the github repository but that just comes back as a 404, and the site map doesn’t give any hint that the site serves up this data.

                      The odd part is I don’t see any error specific to this module in the pm2 logs [see below]. At this point I have removed the module folder and config.js code and life goes on. If there happens to be a way to get it to work, great - but let’s not spend a lot of time on it.

                      Partial output from pm2 logs:

                      PM2            | Change detected on path config/config.js for app MagicMirror - restarting
                      PM2            | Stopping app:MagicMirror id:0
                      0|MagicMirror  | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                      PM2            | pid=28762 msg=failed to kill - retrying in 100ms
                      PM2            | App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                      PM2            | pid=28762 msg=process killed
                      PM2            | App [MagicMirror:0] starting in -fork mode-
                      PM2            | App [MagicMirror:0] online
                      0|MagicMirror  | > magicmirror@2.28.0 start
                      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                      0|MagicMirror  | [2024-09-29 17:35:29.657] [LOG]   Starting MagicMirror: v2.28.0
                      0|MagicMirror  | [2024-09-29 17:35:29.716] [LOG]   Loading config ...
                      0|MagicMirror  | [2024-09-29 17:35:29.720] [LOG]   config template file not exists, no envsubst
                      0|MagicMirror  | [2024-09-29 17:35:29.726] [LOG]   Loading module helpers ...
                      0|MagicMirror  | [2024-09-29 17:35:29.727] [LOG]   No helper found for module: alert.
                      0|MagicMirror  | [2024-09-29 17:35:29.737] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:29.739] [LOG]   Module helper loaded: MMM-WeatherAlerts
                      0|MagicMirror  | [2024-09-29 17:35:29.743] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:29.743] [LOG]   Module helper loaded: MMM-WeatherAlerts2
                      0|MagicMirror  | [2024-09-29 17:35:29.752] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:29.752] [LOG]   Module helper loaded: updatenotification
                      0|MagicMirror  | [2024-09-29 17:35:29.754] [LOG]   No helper found for module: clock.
                      0|MagicMirror  | [2024-09-29 17:35:29.755] [LOG]   No helper found for module: MMM-Worldclock.
                      0|MagicMirror  | [2024-09-29 17:35:29.924] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:29.925] [LOG]   Module helper loaded: calendar
                      0|MagicMirror  | [2024-09-29 17:35:29.926] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:29.927] [LOG]   Module helper loaded: calendar
                      0|MagicMirror  | [2024-09-29 17:35:29.996] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:29.996] [LOG]   Module helper loaded: MMM-Tools
                      0|MagicMirror  | [2024-09-29 17:35:29.997] [LOG]   No helper found for module: MMM-Multimonth.
                      0|MagicMirror  | [2024-09-29 17:35:30.017] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:30.017] [LOG]   Module helper loaded: MMM-OpenWeatherMapForecast
                      0|MagicMirror  | [2024-09-29 17:35:30.280] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:30.281] [LOG]   Module helper loaded: MMM-Pollen
                      0|MagicMirror  | [2024-09-29 17:35:30.283] [LOG]   No helper found for module: weather.
                      0|MagicMirror  | [2024-09-29 17:35:30.391] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:30.392] [LOG]   Module helper loaded: newsfeed
                      0|MagicMirror  | [2024-09-29 17:35:30.398] [LOG]   Initializing new module helper ...
                      0|MagicMirror  | [2024-09-29 17:35:30.399] [LOG]   Module helper loaded: MMM-DynamicWeather
                      0|MagicMirror  | [2024-09-29 17:35:30.401] [LOG]   All module helpers loaded.
                      0|MagicMirror  | [2024-09-29 17:35:30.415] [LOG]   Starting server on port 8080 ...
                      0|MagicMirror  | [2024-09-29 17:35:31.199] [LOG]   Server started ...
                      0|MagicMirror  | [2024-09-29 17:35:31.214] [LOG]   Connecting socket for: MMM-WeatherAlerts
                      0|MagicMirror  | [2024-09-29 17:35:31.217] [LOG]   Starting module helper: MMM-WeatherAlerts
                      0|MagicMirror  | [2024-09-29 17:35:31.219] [LOG]   Connecting socket for: MMM-WeatherAlerts2
                      0|MagicMirror  | [2024-09-29 17:35:31.220] [LOG]   Starting module helper: MMM-WeatherAlerts2
                      0|MagicMirror  | [2024-09-29 17:35:31.222] [LOG]   Connecting socket for: updatenotification
                      0|MagicMirror  | [2024-09-29 17:35:31.224] [LOG]   Starting module helper: updatenotification
                      0|MagicMirror  | [2024-09-29 17:35:31.226] [LOG]   Connecting socket for: calendar
                      0|MagicMirror  | [2024-09-29 17:35:31.228] [LOG]   Starting node helper for: calendar
                      0|MagicMirror  | [2024-09-29 17:35:31.230] [LOG]   Connecting socket for: calendar
                      0|MagicMirror  | [2024-09-29 17:35:31.231] [LOG]   Starting node helper for: calendar
                      0|MagicMirror  | [2024-09-29 17:35:31.246] [LOG]   Connecting socket for: MMM-Tools
                      0|MagicMirror  | [2024-09-29 17:35:31.250] [LOG]   [Tools] MMM-Tools Version: 2.1.7
                      0|MagicMirror  | [2024-09-29 17:35:31.252] [LOG]   Connecting socket for: MMM-OpenWeatherMapForecast
                      0|MagicMirror  | [2024-09-29 17:35:31.254] [LOG]   Starting node_helper for MMM-OpenWeatherMapForecast
                      0|MagicMirror  | [2024-09-29 17:35:31.255] [LOG]   Connecting socket for: MMM-Pollen
                      0|MagicMirror  | [2024-09-29 17:35:31.273] [LOG]   MMM-Pollen helper started ...
                      0|MagicMirror  | [2024-09-29 17:35:31.275] [LOG]   Connecting socket for: newsfeed
                      0|MagicMirror  | [2024-09-29 17:35:31.277] [LOG]   Starting node helper for: newsfeed
                      0|MagicMirror  | [2024-09-29 17:35:31.279] [LOG]   Connecting socket for: MMM-DynamicWeather
                      0|MagicMirror  | [2024-09-29 17:35:31.281] [LOG]   Sockets connected & modules started ...
                      0|MagicMirror  | [2024-09-29 17:35:32.168] [LOG]   Launching application.
                      0|MagicMirror  | [2843:0929/173533.164645:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.166603:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.167945:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.169873:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.171528:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.172716:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.174129:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.175313:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.176763:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.178279:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.180011:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.181255:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.182716:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.183904:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.185245:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.187096:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.188547:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.190111:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.191549:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.193083:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.194679:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.196231:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.197720:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.199227:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.200454:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.201574:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.202846:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.204087:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.207329:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.208602:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.209921:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.211042:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.212311:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.213479:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.215374:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.216465:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.217793:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.219444:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.221185:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.222712:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.224067:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                      0|MagicMirror  | [2843:0929/173533.225628:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                      0|MagicMirror  | [2024-09-29 17:35:36.587] [INFO]  System information:
                      0|MagicMirror  | ### SYSTEM:   manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.1; raspberry: [object Object]; virtual: false
                      0|MagicMirror  | ### OS:       platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 6.1.21-v8+
                      0|MagicMirror  | ### VERSIONS: electron: 31.1.0; used node: 20.14.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.1
                      0|MagicMirror  | ### OTHER:    timeZone: America/Los_Angeles; ELECTRON_ENABLE_GPU: undefined
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @JohnGalt
                        last edited by sdetweil

                        @JohnGalt i dont see mmm-gas in the loaded modules list

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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