A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
'RouterException' with message 'you musst be logged in to use this method'
-
Hi Forum ;)
it seems i’m not fit enough with Linux. I have a php script to get the last missed calls from my speedport hybrid router. When i call ‘cd ~/MagicMirror/modules/speedport1707/tests/ && php missedcalls.php’ i get the last 5 misse calls. The Scipt need this directory, but with htis call it works from anywhere.No i changed the module MMM-SystemStats, i’ve added this command line in the node_helper.js as fifth command. But from there i get errors in the script:
{ Error: Command failed: cd ~/MagicMirror/modules/speedport1707/tests/ && php missedcalls.php PHP Fatal error: Uncaught exception 'RouterException' with message 'you musst be logged in to use this method' in /home/pi/MagicMirror/modules/speedport1707/lib/trait/Login.class.php:136 Stack trace: #0 /home/pi/MagicMirror/modules/speedport1707/lib/trait/Login.class.php(151): SpeedportHybrid->checkLogin() #1 /home/pi/MagicMirror/modules/speedport1707/tests/missedcalls.php(5): SpeedportHybrid->logout() #2 {main} thrown in /home/pi/MagicMirror/modules/speedport1707/lib/trait/Login.class.php on line 136
It was very hard for me to get the script running but now i’ve no idea. This are “only” web requests, so it can’t be anything with the permission when running from npm or can it?
I’m very new with linux and php. I would be happy for every tip :)
Thanks
K.