-
Is there a way to NTP sync Axis camera time with AWS server(EC2 Instance). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This worked for me. Update the staticServers param to your NTP address. I'm going to try to iterate through a loop referencing an excel file of IP addresses. I'll update the forum if I am successful. import requests print("Update NTP on Axis Cameras\n") ip = input("Enter IP Address of Camera: ") auth = requests.auth.HTTPDigestAuth(username, password) if r.status_code == 200: |
Beta Was this translation helpful? Give feedback.
-
I'm curious, how did you set up the iteration through the spreadsheet? Did you add additional camera settings in the script? |
Beta Was this translation helpful? Give feedback.
This worked for me. Update the staticServers param to your NTP address. I'm going to try to iterate through a loop referencing an excel file of IP addresses. I'll update the forum if I am successful.
import requests
import sys
print("Update NTP on Axis Cameras\n")
ip = input("Enter IP Address of Camera: ")
username = input("Enter Username of Camera: ")
password = input("Enter Password of Camera: ")
auth = requests.auth.HTTPDigestAuth(username, password)
body = {
"apiVersion": "1.1",
"method": "setNTPClientConfiguration",
"params": {
"serversSource": "static",
"staticServers": ["time.google.com"]
}
}
r = requests.post("http://{}/axis-cgi/ntp.cgi".format(ip), json=body, auth=auth)
if r.stat…