I want to create a device config template to pull the ip address from an interface and write to a custom property

Can this be done and if so how. 

I want the ip address of the router interface GigabitEthernet0/0/1 and write to the custom property of the node Internet_IP_Address

I would like to schedule it to run everynight.