Edit streamthis script talkgroup array via webpage?

Status
Not open for further replies.

mikewren

Member
Feed Provider
Joined
Jul 12, 2007
Messages
36
Reaction score
18
Location
Albany, NY
Hi all - I'm looking to create a webapge (php based?) that would allow someone to modify the list of talkgroups that are monitored on a conventional broadcastify scanner feed which is fed by trunk-recorder using Liquidaudio and the streamthis script.

This would be incredibly useful - I set up a scanner feed for my non-techie dad who wants to include or omit certain talkgroups based on what's currently happening. Creating a easy-to-use web-based method is unfortunately just beyond my current coding skillset.

The talkgroup array for the streamthis script looks something like this:

streamthese = ["50573", "50504", "50594", "1072", "1073", "1074", "1075", "1076", "1808", "1809", "1811", "1806", "1807", "1817", "1818", "1820", "1821", "1822", "1452", "1454", "1455", "1456", "1457", "1458", "1459", "1460", "1461", "1464", "1463", "1502", "1504", "1505", "1506", "1507", "1508", "1509", "1510", "1511", "1512", "1513", "1552", "1554", "1555", "1556", "1557", "1558", "1559", "1560", "1561", "1562", "1563", "1564", "1602", "1604", "1605", "1606", "1607", "1611", "1608", "1609", "1652", "1653", "1654", "1655", "1656", "1200", "1950", "1951", "1952", "1953", "1954", "1960", "1961", "1962", "1963", "1970", "1971", "1972", "1973", "1974", "2815", "1006"]

Goal is to parse this array into something displayed on a webpage as a table of checkboxes and talkgroup ID's:

[ x ] 50573
[ x ] 50504
[ ] 50505
[ ] ______

etc.

The blank would be a place where the user can input a new talkgroup ID. The unchecked item would be a talkgroup ID what was previously known/selected, but was unselected.

A big bonus would be to leverage the tags id file (basically a key,value csv file) which would include talkgroup name on the webpage - for example:

[ x ] Monroe County Fire 5 Dispatch (50573)

Apologies if this isn't the correct forum for the question.
 
Status
Not open for further replies.
Top