# GPSD source for Chrony

**URL:** <https://forums.balena.io/t/gpsd-source-for-chrony/10057>\
**Category:** Product support\
**Created:** [May 19, 2019, 12:10am UTC](https://forums.balena.io/t/gpsd-source-for-chrony/10057 "2019-05-19T00:10:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seesoe](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@seesoe](https://forums.balena.io/u/seesoe)\
**Post date:** [May 19, 2019, 12:10am UTC](https://forums.balena.io/t/gpsd-source-for-chrony/10057/1 "2019-05-19T00:10:04Z")

</div>

I’m trying to modify `chrony.conf` to add a gps source server from `GPSD`

```auto
driftfile /var/lib/chrony/drift

allow

# set larger delay to allow the NMEA source to overlap with
# the other sources and avoid the falseticker status
refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.2
refclock SOCK /var/run/chrony.ttyACM0.sock refid PPS

```

The only config way I read about was to modify the `config.json` file.

Heres where I was pulling the setup from  
[http://www.catb.org/gpsd/gpsd-time-service-howto.html#\_feeding\_chrony\_from\_gpsd](http://www.catb.org/gpsd/gpsd-time-service-howto.html#_feeding_chrony_from_gpsd)

---

<div class="post-metadata">

**Author:** ![zubairlk](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/zubairlk/32/954_2.png) [@zubairlk](https://forums.balena.io/u/zubairlk)\
**Post date:** [May 24, 2019, 8:19am UTC](https://forums.balena.io/t/gpsd-source-for-chrony/10057/6 "2019-05-24T08:19:22Z")

</div>

Hi,

At the moment, there is no way to configure chrony.conf via config.json.

As a workaround, you can ssh into the host OS, mount the os as read-write using `mount -o remount,rw /` and edit chrony.conf.  
Note that these changes won’t persist after a HUP.

Hope that helps.

Regards,  
ZubairLK

---

<div class="post-metadata">

**Author:** ![seesoe](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@seesoe](https://forums.balena.io/u/seesoe)\
**Post date:** [May 26, 2019, 12:19am UTC](https://forums.balena.io/t/gpsd-source-for-chrony/10057/8 "2019-05-26T00:19:08Z")

</div>

Thank @zubairlk for the tip. I was able to edit the file. Didn’t get it to work but Chrony sees the entries when checking service status sync, I guess now it is a matter of figuring out the correct Chrony config entries.

Any possible roadmap for an api endpoint to edit the conf file?

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [May 27, 2019, 11:09am UTC](https://forums.balena.io/t/gpsd-source-for-chrony/10057/11 "2019-05-27T11:09:06Z")

</div>

Hey @seesoe,

We have plans to support a higher level declarative configuration format for balenaOS, and while we are currently working on it, its hard to say when this will be available to use in production, but stay tuned!

---

<div class="post-metadata">

**Author:** ![Timple](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Timple](https://forums.balena.io/u/Timple)\
**Post date:** [September 14, 2020, 8:34am UTC](https://forums.balena.io/t/gpsd-source-for-chrony/10057/13 "2020-09-14T08:34:10Z")

</div>

Is there any update on this? We also would like to have a GPS time reference
