• 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.

config.js for MMM-WeatherChart

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 2 Posters 1.0k Views 2 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
    johndeluxe
    last edited by Apr 25, 2023, 8:51 PM

    Hello,
    I can’t get this module to work:
    https://github.com/mtatsuma/MMM-WeatherChart
    In console I’m getting apiKey is invalid/401 unauthorized, but the api key is definetly correct, as it works in other modules. module configuration is exactly as on github (with the quotation marks around everything). Does someone have an idea? Can someone please share their working config.js for this module.
    Thanks

    S 1 Reply Last reply Apr 25, 2023, 9:31 PM Reply Quote 0
    • J Offline
      johndeluxe
      last edited by Apr 27, 2023, 7:47 PM

      That helped for diagnosis, partially! Correct script was executed, and log --lines showed 15. But it also throws some errors like shown here (SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox., which you also solved :-) ): https://forum.magicmirror.builders/topic/17122/sharedimagemanager-produceskia-trying-to-produce-a-skia-representation-from-a-non-existent-mailbox/2
      So when disabling the gpu I can now see the graph also on the direct screen, but not the images (clouds etc.).
      Gettings there…Thank you very much until here Sam!

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @johndeluxe
        last edited by Apr 25, 2023, 9:31 PM

        @johndeluxe when did u get your apikey from openweather?

        u might try adding the

        apiVersion:3.0,
        

        to the module config

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • J Offline
          johndeluxe
          last edited by Apr 27, 2023, 6:50 PM

          So I figured the error at OWM out. For this module it is needed to subscribe to the onecall subscription, even though you only want to use it free of charge. So now I have the problem that the module is only seen remotely or in dev mode, but not when started by pm. Anyone have an idea about this?

          S 1 Reply Last reply Apr 27, 2023, 7:14 PM Reply Quote 0
          • S Offline
            sdetweil @johndeluxe
            last edited by Apr 27, 2023, 7:14 PM

            @johndeluxe is pm2 starting the correct script?

            pm2 status
            to get the name/number

            pm2 info x
            where x is the name or number

            part of the output

            |   status             │ stopped                                   │
            │ name                 │ MagicMirror                               │
            │ namespace            │ default                                   │
            │ version              │ 2.23.0                                    │
            │ restarts             │ 27                                        │
            │ uptime               │ 0                                         │
            │ script path          │ /home/sam/MagicMirror/installers/mm.sh    │
            

            then

            pm2 stop all
            pm2 flush
            pm2 start x
            

            and then

            pm2 logs --lines=????
            

            the default for ??? is 15

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • J Offline
              johndeluxe
              last edited by Apr 27, 2023, 7:47 PM

              That helped for diagnosis, partially! Correct script was executed, and log --lines showed 15. But it also throws some errors like shown here (SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox., which you also solved :-) ): https://forum.magicmirror.builders/topic/17122/sharedimagemanager-produceskia-trying-to-produce-a-skia-representation-from-a-non-existent-mailbox/2
              So when disabling the gpu I can now see the graph also on the direct screen, but not the images (clouds etc.).
              Gettings there…Thank you very much until here Sam!

              1 Reply Last reply Reply Quote 0
              • J Offline
                johndeluxe
                last edited by Apr 27, 2023, 7:59 PM

                BTW, this is my uname -a:

                Linux raspberrypi3b 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux

                1 Reply Last reply Reply Quote 0
                • J Offline
                  johndeluxe
                  last edited by May 18, 2023, 6:02 AM

                  So I figured out that everything is working after pm2 restart. So first attempt after boot always has some issues, but after restart it is fine.
                  Thanks all for oyur help!

                  S 1 Reply Last reply May 18, 2023, 11:20 AM Reply Quote 0
                  • S Offline
                    sdetweil @johndeluxe
                    last edited by May 18, 2023, 11:20 AM

                    @johndeluxe pm2 flush will empty the log

                    then reboot

                    the log will be just for that first start…

                    let’s see what’s in there

                    pm2 logs --lines=50

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    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