I use the following Python lines to update the QTH, it should be a simple matter to change it to update the callsign and launch it from a web page. I use a launch icon to
# The Pat config file is a json file, just load the json object and update the
# relevant entry and save.
cf=MYHOME+"/.config/pat/config.json"
f=open(cf,"r+")
config = json.load(f)
config['locator']=grid
json_obj=json.dumps(config, indent=4)
f.truncate(0) # Clear the file
f.seek(0) # I miss the rewind statement.
f.write(json_obj)
f.close()