Replies: 2 comments 2 replies
-
I suggest starting to get one or more copies of that script running from the command line.
or
Make sure to configure the correct MAC address for the switch/IW-device as well as the switch ports: Then create a cron job that kicks off your command. This is out of the scope of the support I provide here but maybe others can pitch in with suggestions and or tips. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I put the php file into the /var/www/html folder. Next I have updated the MAC address and the number of the port. When I execute the php file ony my raspberry, it says: PHP Warning: require_once(config.php): failed to open stream: No such file or directory in /var/www/html/update_switch_poe-mode.php on line 11 What I don't understand: where do I need to put the php file and how does the php-file connect to the Unifi Api? I'm sorry if this are really basic questions. |
Beta Was this translation helpful? Give feedback.
-
I have been looking for running a script to disable and enable a POE-port at night and in the morning (during sleeptime).
I found the "update_switch_poe-mode.php" example, but I'm lost as to where I need to start get the script running and how I can set the times.
I have the api browser running on my Raspberry Pi and that works. But any help as where to start now to get the script running would be very helpfull.
Beta Was this translation helpful? Give feedback.
All reactions