Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Web Page to Set Call

52 views
Skip to first unread message

K8TCS

unread,
Nov 7, 2024, 10:09:35 AM11/7/24
to pat-users
This may be slightly out of scope for this group, but hoping someone has already done this and can share.

I have a PAT installation in a radio room, several people use it.  Right now we have to remember to log on to the PI and change our call signs in config.json.  We have the organization call as the primary, and we set our individual calls as auxiliary.

Was just wondering if someone has already created a simple webpage with CGI to read config.json, display the call signs and provide a text box to either change to add a value.

Thanks in Advance
-Tad Smedes
K8TCS
N-scale

Joel Black

unread,
Nov 7, 2024, 10:22:57 AM11/7/24
to pat-users
Tad,

I run Pat on a Mac and I have done something similar between my amateur call and my SHARES call.

My coding comes from Google searches and ChatGPT. I am *NOT* a coder.

In a nutshell, I created w4jbb.json and nnb4jb.json. Their root is the config.json but then I modified each with the correct call and service code and saved appropriately. I have created scripts that will copy w4jbb.json to config.json for Amateur Winlink and then another script to copy nnb4jb.json to config.json for SHARES Winlink.

I have tried to make AppleScript create a dialog box based on what call I want but I couldn't get it to work (see "I am not a coder" above ;) ).

Regards,
Joel - W4JBB

mokombo zidane

unread,
Nov 8, 2024, 9:20:16 AM11/8/24
to pat-users

WELDING MACHINES AND ACCESSORIES FOR SALE ONLINE WITH SAFE AND GUARANTEED SHIPPING.

SHOP BELOW

weldingsupplyshop.com

Buy discounted welders, plasma cutters and welding safety gear by premium brands like Miller, Lincoln Electric, Hypertherm, Hobart and Black Stallion - from the mouse with over 86 years of welding experience.

where to order welding machines and accessories online with safe shipping.

WEBSITE... weldingsupplyshop.com

we have the best welding tools like reels,miller remote,pipe bender,welding cable, lincoln rods,leads,miller welding helmet,mig guns,tig torches,plasma torches,welding cables,mig welders,tig welders,Etc.

Order now from our website below with safe and guaranteed shipping

WEBSITE... weldingsupplyshop.com


https://weldingsupplyshop.com/product/lincoln-viking-3350-mojo-auto-darkening-welding-helmet-w-4c-lens-k3101-4-for-sale-online/

https://weldingsupplyshop.com/product/lincoln-viking-3350-series-steampunk-auto-darkening-welding-helmet-k3428-4-for-sale-online/

https://weldingsupplyshop.com/product/100-ft-stick-welding-leads-100-cable-holder-ground-clamp-for-sale/

https://weldingsupplyshop.com/product/diamond-lead-reels-hd-fixed-base-reel-fbdxxblk-for-sale-online/

https://weldingsupplyshop.com/product/best-welds-1-4-bb-t-grade-50-oxy-acetylene-hose-1-4x50bbt-for-sale/

https://weldingsupplyshop.com/product/steelmax-120v-14-metal-cutting-chop-saw-sm-s-14-for-sale-online/

https://weldingsupplyshop.com/product/zoom-steelmax-115v-d1-portable-magnetic-drill-sm-d1-for-sale-online/

https://weldingsupplyshop.com/product/miller-wireless-hand-control-301582-for-sale-online/

https://weldingsupplyshop.com/product/victor-medalist-250-classic-welding-and-cutting-outfit-0384-2581-for-sale-online/

https://weldingsupplyshop.com/product/victor-edge-2-0-series-ess4-oxygen-regulator-0781-3601-for-sale-online/

https://weldingsupplyshop.com/product/victor-315-plus-ca-2460-plus-replacement-cutting-torch-0381-1937-for-sale-online/

https://weldingsupplyshop.com/product/miller-big-blue-400-pipepro-mitsubishi-stainless-welder-generator-w-wic-907805/

https://weldingsupplyshop.com/product/lincoln-cross-country-300-kubota-cc-cv-welder-generator-w-125-ft-remote-k4166-7/

https://weldingsupplyshop.com/product/miller-bobcat-200-air-pak-welder-generator-907771-for-sale/

https://weldingsupplyshop.com/product/buy-hobart-ironman-240-mig-wire-welder-with-spoolrunner-200-spool-gun-500574001-online/

https://weldingsupplyshop.com/product/miller-weldcraft-w-250-water-cooled-torch-kit-300185/

https://weldingsupplyshop.com/product/weldtec-225a-flex-head-tig-torch-water-cooled-rubber-hoses-25-ft-wt-20f-25r/

https://weldingsupplyshop.com/product/miller-smith-md-series-30-oxy-acetylene-twin-pack-regulators-htp2/

https://weldingsupplyshop.com/product/kalas-1-toughflex-boxed-welding-cable-100ft-cab1-100/

https://weldingsupplyshop.com/product/miller-digital-infinity-imperial-welding-helmet-w-clearlight-4x-lens-296784/

Ole Saastad

unread,
Nov 26, 2024, 3:12:48 PM11/26/24
to pat-users
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()

Tad Smedes

unread,
Nov 29, 2024, 12:54:28 PM11/29/24
to Ole Saastad, pat-users
I will give it a try.  Thank you.



--
You received this message because you are subscribed to a topic in the Google Groups "pat-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pat-users/KvWjnHKrsgg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pat-users+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pat-users/c218a836-9f71-4efc-a38a-7020d865bc9dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages