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 136It 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login