hi all
I have 2 raspberry pi at 2 different locations, the modems have dynamic ip addresses that change every 48 hours. At my home i have a dyndns account that i use for my nas , i can run a website from the nas with php script. I was thinking of some kind of script in python and cron (for every hour) that the raspberry pi's use to visit my php webpage so my webpage can store the ip's of the raspberry pi's so if i need to connect to them i know there ip adres. My php page can store it in a mysql database and maybe if the raspberry pi visit my page they can give some kind of variabele with it to say im Raspberry1 or Raspberry2
with simple in url var like http://mydynsaccount.com/page.php?name=raspberry1 . How do i make this , any tips for that?