Closed izivkov closed 5 months ago
Yes, I think it will not be that difficult
Suggested procedure :
if (($(ps u|grep -c gshock)==1));then
python3 path/to/gshock_server.py&
fi
Ok, these looks good. One thing I like to fix in the current Python code is to enable automatic time sync, so the watch can sunc by itself. You can take a look at how to handle this, and I'll respond properly when I get back next week
On Sun., Jul. 30, 2023, 11:36 p.m. Pierre Brial, @.***> wrote:
Suggested procedure :
- installation of minimal Raspbian system on Raspberry
- installation of GshockTimeServer
- activation of user auto connection (with raspi-config)
- add an auto launcher in /home/pi/.profile :
if (($(ps u|grep -c gshock)==1));then python3 path/to/gshock_server.py&fi
— Reply to this email directly, view it on GitHub https://github.com/izivkov/GShockTimeServer/issues/6#issuecomment-1657461392, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7M37QARANCXG4JGCAMXBDXS4R5VANCNFSM6AAAAAA24RXTS4 . You are receiving this because you authored the thread.Message ID: @.***>
@harlock974 So, your approach looks good. But before we create the SD, I like to fix the following:
https://github.com/izivkov/GShockTimeServer/issues/7
Do you have time to work on this?
I am not very comfortable with Python so I prefer you do it.
👍
I'll take care of the Python code. You can just go ahead and make the SD. We can update the python script later.
Thanks
It would be great if we can create a Pi / Pi-zero SD image with a scripts to setup time. Could be a Python or a Linux Shell scripts.
The user can simply flash the image to an SD card and boot the Pi, making it into a Time Server.
@harlock974 , do you think you will be interested to work on this?