Skip to content

Commit

Permalink
Fix several typos
Browse files Browse the repository at this point in the history
Found using `codespell -wi3 **/*`.
  • Loading branch information
Calinou committed Mar 20, 2020
1 parent 0cf06ca commit 27e3c7a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -65,7 +65,7 @@ new Cam({
```

## Other examples
* example2.js takes an IP address range, scans the range for ONVIF devices (brute force scan) and dsplays information about each device found including make and model.
* example2.js takes an IP address range, scans the range for ONVIF devices (brute force scan) and displays information about each device found including make and model.
For Profile S Cameras and Encoders it displays the default RTSP address
For Profile G Recorders it displays the RTSP address of the first recording

Expand Down
2 changes: 1 addition & 1 deletion example3.js
Expand Up @@ -23,7 +23,7 @@
* The program gets a list of ONVIF presets. Keys 1..9 are used to send
* Goto Preset on the first 9 preset commands.
*
* The GetPresets command is left as an asyncronous command
* The GetPresets command is left as an asynchronous command
* and the presets list may come in some time after the StreamURI is displayed
*
*/
Expand Down
4 changes: 2 additions & 2 deletions example6.js
@@ -1,6 +1,6 @@
/**
* NodeJS ONVIF Events
* Reveive Events using a PullPoint Subscription and display the events on screen
* Receive Events using a PullPoint Subscription and display the events on screen
* Tested with Axis (which uses a fixed PullPoint URL with a SubscriberId in the XML)
* and with HikVision (which uses a dynamically generated PullPoint URL)
*
Expand Down Expand Up @@ -204,7 +204,7 @@ new Cam({
}) // end newCam callback


// Code completes here but the applictions remains running as there is a OnEvent listener that is active
// Code completes here but the applications remains running as there is a OnEvent listener that is active

// UNCOMMENT THIS LINE TO STOP AFTER 5 SECONDS setTimeout(()=>{cam_obj.removeAllListeners('event');},5000);

Expand Down
2 changes: 1 addition & 1 deletion lib/cam.js
Expand Up @@ -495,7 +495,7 @@ Cam.prototype.getCapabilities = function(callback) {
// extensions, eg. deviceIO
if (this.capabilities.extension) {
Object.keys(this.capabilities.extension).forEach(function(ext) {
// TODO think about complex entensions like `telexCapabilities` and `scdlCapabilities`
// TODO think about complex extensions like `telexCapabilities` and `scdlCapabilities`
if (this.capabilities.extension[ext].XAddr) {
this.uri[ext] = url.parse(this.capabilities.extension[ext].XAddr);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/device.js
Expand Up @@ -104,7 +104,7 @@ module.exports = function(Cam) {
* @property {object} [IPv6] IPv6 network interface configuration.
* @property {boolean} IPv6.enabled Indicates whether or not IPv6 is enabled.
* @property {object} IPv6.config IPv6 configuration.
* @property {boolean} [IPv6.config.acceptRouterAdvert] Indicates whether router advertisment is used.
* @property {boolean} [IPv6.config.acceptRouterAdvert] Indicates whether router advertisement is used.
* @property {string} IPv6.config.DHCP DHCP configuration. - enum { 'Auto', 'Stateful', 'Stateless', 'Off' }
* @property {object} [IPv6.config.manual] List of manually added IPv6 addresses.
* @property {string} IPv6.config.manual.address IPv6 address.
Expand All @@ -115,7 +115,7 @@ module.exports = function(Cam) {
* @property {object} [IPv6.config.fromDHCP] List of IPv6 addresses configured by using DHCP.
* @property {string} IPv6.config.fromDHCP.address IPv6 address.
* @property {number} IPv6.config.fromDHCP.prefixLength Prefix/submask length.
* @property {object} [IPv6.config.fromRA] List of IPv6 addresses configured by using router advertisment.
* @property {object} [IPv6.config.fromRA] List of IPv6 addresses configured by using router advertisement.
* @property {string} IPv6.config.fromRA.address IPv6 address.
* @property {number} IPv6.config.fromRA.prefixLength Prefix/submask length.
* @property {object} [IPv6.config.extension] Extension
Expand Down Expand Up @@ -157,7 +157,7 @@ module.exports = function(Cam) {
* @property {boolean} [IPv4.DHCP] Indicates whether or not DHCP is used.
* @property {object} [IPv6] IPv6 network interface configuration.
* @property {boolean} [IPv6.enabled] Indicates whether or not IPv6 is enabled.
* @property {boolean} [IPv6.acceptRouterAdvert] Indicates whether router advertisment is used.
* @property {boolean} [IPv6.acceptRouterAdvert] Indicates whether router advertisement is used.
* @property {object} [IPv6.manual] List of manually added IPv6 addresses.
* @property {string} IPv6.manual.address IPv6 address.
* @property {number} IPv6.manual.prefixLength Prefix/submask length.
Expand Down
4 changes: 2 additions & 2 deletions lib/media.js
Expand Up @@ -50,7 +50,7 @@ module.exports = function(Cam) {

/**
* @typedef {object} Cam~VideoSourceConfiguration
* @property {string} token Token that uniquely refernces this configuration
* @property {string} token Token that uniquely references this configuration
* @property {string} sourceToken Reference to the physical input
* @property {string} name User readable name
* @property {number} useCount Number of internal references currently using this configuration
Expand Down Expand Up @@ -104,7 +104,7 @@ module.exports = function(Cam) {

/**
* @typedef {object} Cam~VideoEncoderConfiguration
* @property {string} $.token Token that uniquely refernces this configuration
* @property {string} $.token Token that uniquely references this configuration
* @property {string} name User readable name.
* @property {string} useCount Number of internal references currently using this configuration
* @property {string} encoding Used video codec ('JPEG' | 'MPEG4' | 'H264' )
Expand Down
2 changes: 1 addition & 1 deletion test/common.coffee
Expand Up @@ -305,7 +305,7 @@ describe 'Common functions', () ->
done()

describe 'getConfigurationOptions', () ->
it 'should return an options object for every configuation token', (done) ->
it 'should return an options object for every configuration token', (done) ->
tokens = Object.keys cam.configurations
cou = tokens.length
tokens.forEach (token) ->
Expand Down
2 changes: 1 addition & 1 deletion test/ptz.coffee
Expand Up @@ -125,7 +125,7 @@ describe 'PTZ', () ->
y: 0.1
zoom: 0
}, done
it 'should set ommited pan-tilt parameters to zero', (done) ->
it 'should set omitted pan-tilt parameters to zero', (done) ->
cam.continuousMove {
x: 0.1
zoom: 0
Expand Down

0 comments on commit 27e3c7a

Please sign in to comment.