izivkov / gshocktimeserver Goto Github PK
View Code? Open in Web Editor NEWA python script to update time for G-Shock Watches
License: MIT License
A python script to update time for G-Shock Watches
License: MIT License
Hi Izivkov,
Thank you for this smart program. I couldn't stand any more the awkward Casio android app...
When I tried your program I had got the following error :
File "/home/xxxx/GShockTimeServer/src/gshocktimeserver/logger.py", line 10, in Logger logging.basicConfig( File "/usr/lib/python3.8/logging/__init__.py", line 2009, in basicConfig raise ValueError('Unrecognised argument(s): %s' % keys) ValueError: Unrecognised argument(s): encoding
It is because my Linux system run Python 3.8 and the encoding parameter has been added to Python 3.9.
For those with the same issue they just need to comment line 11 in file logger.py, this way :
#encoding='utf-8',
Then it works perfectly well with Python 3.8.
I have succesfully installed the GShockTimeServer, the script seems to run fine. But how do I pair my watch? Do I need to find the bluetooth address somewhere and insert it manually into the config.ini or do I need to run a other script to pair the watch?
Set time adjustment ON.
use get_time_adjustment function to enable auto-time adjustment, so the watch can update itself automatically. See example of use.
Ideally, this call will be made only once, not each time the time is set.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.