Private
Optional
addrPrivate
Readonly
builderPrivate
contentPrivate
Readonly
discoveryPrivate
Readonly
parserPrivate
Optional
portPrivate
Readonly
todayGets discovered url
Returns the url discovered via ssdp
Private
check_Private
Checks if an image already exists in a specified directory. If it does not, the image will be downloaded and saved.
Returns a promise that resolves when the check and potential download are complete.
Will throw an error if there's an issue in the image downloading process.
Returns a promise that resolves when the discovery of services is finished.
Discovers the available services on the Sony Alpha Camera.
Will throw an error if the discovery process fails or if the Content Directory service is not found.
The URL of the image to be downloaded.
The path to save the downloaded image.
Returns a promise that resolves when the image is downloaded and saved.
Downloads an image from a specific URL.
Will throw an error if the image downloading process fails.
The path where the fetched images will be saved.
The start date for fetching images, in the format ['YYYY', 'MM', 'DD'].
The end date for fetching images, in the format ['YYYY', 'MM', 'DD'].
Returns a promise that resolves when all images between the specified dates are fetched and saved.
Fetches all images taken between two specific dates.
Will throw an error if the dates are not in the correct format, or if there's an error in the image downloading process.
The container to fetch images from.
The path to save the fetched images.
Returns a promise that resolves when all images are fetched and saved.
Fetches all images from a specific container in the Content Directory service.
Will throw an error if the image fetching process fails.
The path where the fetched images will be saved.
Optional
dict: Record<string, UPNPImage[]>An optional dictionary parameter where each key (date string) maps to an array of UPNPImage objects. If not provided, the function will use the date_to_items
property of the class.
Returns a promise that resolves when all images from the dictionary are fetched and saved. True when job is finished, false when it is interrupted
Fetches all images from a provided dictionary, where each date maps to multiple images.
Will throw an error if there are no entries with specific keys in the record or if there's an error in the image downloading process.
The date to fetch images from.
The path to save the fetched images.
A promise that resolves when all images are fetched and saved.
Fetches all images from a specific date in the Content Directory service.
If the image fetching process fails.
The path to save the fetched images.
Returns a promise that resolves when all images are fetched and saved.
Fetches all images as per the Content Directory tree.
Will throw an error if the tree is not created yet. Run the generate_tree method before calling this method.
Private
get_Private
Returns a Set of filenames of all existing images for a specific date in a given path.
Date for which images are checked.
Path where images are saved.
Returns a set of filenames of existing images for the date specified.
The path to save the fetched image.
Returns a promise that resolves when the image is fetched and saved.
Fetches a single image from the Digital Imaging service.
Will throw an error if the Digital Imaging service is not discovered yet or if the image fetching process fails.
Generated using TypeDoc
Initializes an instance of AlphaSync class.