1. First of all install curl not already installed.
2. Create a shell file with below code and replace <API> and <ID>
3. make it executable
chmod +x <filename>
4. Schedule at startup. Execute below command
sudo nano /etc/rc.local
5. Add below line.
sh /home/pi/scripts/piip.sh
2. Create a shell file with below code and replace <API> and <ID>
3. make it executable
chmod +x <filename>
4. Schedule at startup. Execute below command
sudo nano /etc/rc.local
5. Add below line.
sh /home/pi/scripts/piip.sh
No comments:
Post a Comment