Skip to content

Automatic update of your public ip with ovh domain

Notifications You must be signed in to change notification settings

alexpalex9/ovh-dynHost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ovh-dynhost

this module is actually a simple wrapper of official OVH module in order to automatically set your dynamic hosting in OVH. it just needs to be initiated with a configuration json variable and will provide back events to handle.

version 2.0

  • cleaner code using waterfall
  • bug correction
  • reduction of event (only one event for any error)

Prerequisites

Utilization :

var config={
	"endpoint":"ovh-eu",
	"appKey":"XXXXXXXXXX",
	"appSecret":"YYYYYYYYYYYYYYYY",
	"consumerKey":"ZZZZZZZZZZZZZZZZz",
	"zone":"mydomainname.fr",
	"minutesRequestFrequency":5 //refreshFrequency is in minutes
	}
	

var ovh = require('./dynHostOvh.js')(config);

// event catch

ovh.on('ovh IP udpated',function(ip){
	console.log('public ip changed in ovh with success - newip = '+ ip)
})
ovh.on("error",function(message){
	// do something
});
ovh.on("no need to update IP",function(){
	// do something
});

About

Automatic update of your public ip with ovh domain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published