Read the statement by Michael Teeuw here.
config.js for MMM-WeatherChart
-
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 -
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! -
@johndeluxe when did u get your apikey from openweather?
u might try adding the
apiVersion:3.0,
to the module config
-
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?
-
@johndeluxe is pm2 starting the correct script?
pm2 status
to get the name/numberpm2 info x
where x is the name or numberpart 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
-
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! -
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
-
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! -
@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