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

'RouterException' with message 'you musst be logged in to use this method'

Scheduled Pinned Locked Moved Troubleshooting
1 Posts 1 Posters 848 Views 1 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.
  • K Offline
    kiki99
    last edited by Oct 22, 2017, 8:29 PM

    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.

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      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