Help scripting with rest/system/connections

Extra bonus, I found a solution to prevent " Syncthing floods my syslog " for the ones with rsyslog:

sudo nano /etc/rsyslog.d/10-ush-syncthing.conf
  :programname, isequal, "syncthing" /dev/null
  & stop

then

 sudo service syslog restart

I feel this is important for the ones that let their raspberry run from the SDCard which will quickly be overworn by such a verbosity. For me, I moved all rootfs to a ssd.