How to pull newest update from GitHub to local repo at boot

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

How to pull newest update from GitHub to local repo at boot

Post by /RaspberryPi »

Hello!
About my project:
  • Raspberry P4 1gig
  • temp and humidity sensor
  • kasa tp link smart plugs
  • plugs turn on and off according to sensor values
  • using git and GitHub for version control (Collaborating with another person remotely)
  • currently using VNC and/or SSH from primary laptop to pull newest versions to local and start running program
I am looking to:
  • update local repository from GitHub at boot
  • start program automatically after update complete
It looks like crontab is the way to go since it will allow the system to be functional before trying to connect to the web, but I am still fuzzy on how I would write a script to accomplish this. Additionally, should I be updating any 3rd party libraries or repositories that my code utilizes or is that just asking for a broken program down the line?
Any suggestions welcome, I have no idea what I'm doing!

submitted by /u/tricerabottum
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”