Skip to content

Axis Camera NTP sync with AWS #90

Closed Answered by mckee3304
rafiomeon asked this question in VAPIX
Discussion options

You must be logged in to vote

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…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@n04h-zz
Comment options

Answer selected by mattias-kindborg-at-work
Comment options

You must be logged in to vote
2 replies
@mckee3304
Comment options

@n04h-zz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
VAPIX
Labels
None yet
3 participants