diff --git a/aprs-activity.mjs b/aprs-activity.mjs
index a7b8ba5..705fd6a 100644
--- a/aprs-activity.mjs
+++ b/aprs-activity.mjs
@@ -1,3 +1,4 @@
+import {aprsSymbol,nativeSymbol} from './aprs-symbols.mjs';
import {AprsKiss} from './aprs-kiss.mjs';
import {readFile,writeFile,rename,open,stat,readdir} from 'node:fs/promises';import path from 'node:path';
import {plain,decode} from './bpq.mjs';import {Monitor} from './monitor.mjs';
@@ -7,13 +8,13 @@ export function parseRadioAprs(frame){const lines=frame.text.split('\n'),m=lines
export function parseIsAprs(line,date){const m=line.match(/^(\d{2}:\d{2}:\d{2})([RT])\s+(.*)$/);if(!m)return null;const packet=parseTnc2(m[3]);return packet?{...packet,at:date+'T'+m[1]+'Z',direction:m[2]==='T'?'TX':'RX',transport:'Internet',port:null,evidence:'BPQ APRS-IS log'}:null;}
export function positionOf(body){let text=body;if(/[\/@]/.test(text[0]))text=text.slice(8);else if(/[!=]/.test(text[0]))text=text.slice(1);else return null;
const m=text.match(/^(\d{2})(\d{2}\.\d{2})([NS])(.)(\d{3})(\d{2}\.\d{2})([EW])(.)(.*)$/);if(!m||Number(m[2])>=60||Number(m[6])>=60)return null;const lat=(+m[1]+Number(m[2])/60)*(m[3]==='S'?-1:1),lon=(+m[5]+Number(m[6])/60)*(m[7]==='W'?-1:1);return Math.abs(lat)<=90&&Math.abs(lon)<=180?{lat,lon,symbol:m[8],symset:m[4]}:null;}
-export function parseNativeStations(text,now=Date.now()){const out=[];for(const row of text.split(/\r?\n\|/)){const m=row.trim().match(/^A,(-?[\d.]+),(-?[\d.]+),([^,]+),([\s\S]*),([A-Fa-f0-9]{4}.),(\d+)$/);if(!m)continue;const lat=Number(m[1]),lon=Number(m[2]),call=m[3];if(!/^[A-Z0-9-]{2,12}$/i.test(call)||!Number.isFinite(lat)||!Number.isFinite(lon)||Math.abs(lat)>90||Math.abs(lon)>180)continue;const detail=decode(m[4]),port=Number(detail.match(/Last Heard:.*?on Port (\d+)/)?.[1])||0,lines=detail.split(/ /i).map(s=>plain(s).trim()).filter(Boolean);out.push({call,position:{lat,lon},lastAt:new Date(now-Number(m[6])*1000).toISOString(),transport:port?'Radio':'Internet',port:port||null,path:lines[0]||'',lastBody:lines[1]||'',status:lines.find(s=>!s.startsWith('Last Heard')&&!s.startsWith('Distance')&&s!==lines[0]&&s!==lines[1])||'',heardRadio:port>0,positionSource:'BPQ APRS decoder',native:true});}return out;}
+export function parseNativeStations(text,now=Date.now()){const out=[];for(const row of text.split(/\r?\n\|/)){const m=row.trim().match(/^A,(-?[\d.]+),(-?[\d.]+),([^,]+),([\s\S]*),([A-Fa-f0-9]{4}.),(\d+)$/);if(!m)continue;const lat=Number(m[1]),lon=Number(m[2]),call=m[3];if(!/^[A-Z0-9-]{2,12}$/i.test(call)||!Number.isFinite(lat)||!Number.isFinite(lon)||Math.abs(lat)>90||Math.abs(lon)>180)continue;const detail=decode(m[4]),port=Number(detail.match(/Last Heard:.*?on Port (\d+)/)?.[1])||0,lines=detail.split(/ /i).map(s=>plain(s).trim()).filter(Boolean);out.push({call,position:{lat,lon,...nativeSymbol(m[5])},lastAt:new Date(now-Number(m[6])*1000).toISOString(),transport:port?'Radio':'Internet',port:port||null,path:lines[0]||'',lastBody:lines[1]||'',status:lines.find(s=>!s.startsWith('Last Heard')&&!s.startsWith('Distance')&&s!==lines[0]&&s!==lines[1])||'',heardRadio:port>0,positionSource:'BPQ APRS decoder',native:true});}return out;}
export class AprsActivity{
constructor(config,dir,bpq,credentials,settings){this.config=config;this.bpq=bpq;this.settings=settings;this.file=path.join(dir,'aprs-activity.cache.json');this.events=[];this.stations=new Map();this.seq=0;this.cursor=0;this.monitor=new Monitor(credentials,{port:config.monitorPort});this.kiss=(config.aprsKissMonitor||[]).map(endpoint=>new AprsKiss(endpoint,(packet,port)=>this.ingest({...parseTnc2(packet),at:new Date().toISOString(),direction:'RX',transport:'Radio',port,evidence:'KISS receive-only monitor'})));this.lastNative=0;this.lastPersist=0;this.logFile=null;this.logOffset=null;this.partial='';this.errors=[];this.started=false;this.busy=false;this.init=this.restore();this.timer=setInterval(()=>{if(this.started)this.sample().catch(()=>{});},2000);this.timer.unref();}
async restore(){try{const data=JSON.parse(await readFile(this.file,'utf8'));this.events=(data.events||[]).slice(-2000);this.seq=this.events.at(-1)?.id||0;this.logFile=data.logFile||null;this.logOffset=data.logOffset??null;this.partial=data.partial||'';this.ownPosition=data.ownPosition;for(const s of data.stations||[])if(s.call)this.stations.set(s.call,s);}catch{} }
async start(){await this.init;if(this.starting)return this.starting;if(this.started)return this.snapshot();this.starting=(async()=>{this.started=true;await this.native();try{await this.settings.enableLogging();this.logging=true;}catch{this.logging=false;}if(this.config.monitorPort)await this.monitor.connect();await this.sample();return this.snapshot();})();try{return await this.starting;}finally{this.starting=null;}}
ingest(event){if(!event?.type)return;if(this.events.slice(-40).some(e=>e.packet===event.packet&&e.direction===event.direction&&e.port===event.port&&Math.abs(Date.parse(e.at)-Date.parse(event.at))<1000))return;event={...event,id:++this.seq};this.events.push(event);if(this.events.length>2000)this.events.shift();if(event.direction==='RX'){const old=this.stations.get(event.from)||{call:event.from},position=positionOf(event.body)||old.position;this.stations.set(event.from,{...old,lastAt:event.at,transport:event.transport,port:event.port,path:event.path,lastBody:event.body,heardRadio:old.heardRadio||event.transport==='Radio',position,positionSource:positionOf(event.body)?'APRS position':old.positionSource});}}
- async native(){try{const html=await this.bpq('/aprsdata.txt?90|-90|-180|180|1|0|0');const home=html.match(/(?:^|\|)H,(-?[\d.]+),(-?[\d.]+),/);if(home&&Math.abs(+home[1])<=90&&Math.abs(+home[2])<=180)this.ownPosition={lat:+home[1],lon:+home[2]};for(const station of parseNativeStations(html)){const old=this.stations.get(station.call);this.stations.set(station.call,{...old,...station,heardRadio:station.heardRadio||old?.heardRadio});}this.nativeAvailable=true;}catch{this.nativeAvailable=false;}this.lastNative=Date.now();}
+ async native(){try{const html=await this.bpq('/aprsdata.txt?90|-90|-180|180|1|0|0');const home=html.match(/(?:^|\|)H,(-?[\d.]+),(-?[\d.]+),/);if(home&&Math.abs(+home[1])<=90&&Math.abs(+home[2])<=180)this.ownPosition={lat:+home[1],lon:+home[2]};try{const settings=await this.settings.snapshot?.();if(settings&&this.ownPosition)this.ownPosition={...this.ownPosition,...aprsSymbol(settings.symset,settings.symbol)};}catch{}for(const station of parseNativeStations(html)){const old=this.stations.get(station.call);this.stations.set(station.call,{...old,...station,position:{...old?.position,...station.position},heardRadio:station.heardRadio||old?.heardRadio});}this.nativeAvailable=true;}catch{this.nativeAvailable=false;}this.lastNative=Date.now();}
async readLog(){const now=new Date(),date=now.toISOString().slice(0,10),day=date.replaceAll('-','').slice(2);let file=null;for(const folder of [this.config.aprsLogDirectory,path.join(this.config.root,'Logs'),path.join(this.config.root,'logs')].filter(Boolean)){const candidate=path.join(folder,'APRS_'+day+'.log');try{await stat(candidate);file=candidate;break;}catch{}}if(!file)return;
const info=await stat(file);if(file!==this.logFile){this.logFile=file;this.logOffset=Math.max(0,info.size-262144);this.partial='';}if(info.size'~'||!/^[/\\A-Z0-9]$/.test(symset||''))return null;
+ return {symbol,symset,table:symset==='/'?'primary':'alternate',overlay:/^[A-Z0-9]$/.test(symset)?symset:null};
+}
+export function nativeSymbol(key){
+ if(!/^[0-9a-f]{4}[@A-Z0-9]$/i.test(key||''))return null;
+ const row=parseInt(key.slice(0,2),16),col=parseInt(key.slice(2,4),16);
+ if(row>11||col>15)return null;
+ const index=(row%6)*16+col;if(index>93)return null;
+ const overlay=key[4]==='@'?null:key[4];if(overlay&&row<6)return null;
+ return aprsSymbol(overlay||(row<6?'/':'\\'),String.fromCharCode(33+index));
+}
diff --git a/aprs-symbols.test.mjs b/aprs-symbols.test.mjs
new file mode 100644
index 0000000..41ee2f4
--- /dev/null
+++ b/aprs-symbols.test.mjs
@@ -0,0 +1,30 @@
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import {aprsSymbol,nativeSymbol} from './aprs-symbols.mjs';
+import {parseNativeStations,positionOf} from './aprs-activity.mjs';
+import vm from 'node:vm';
+import {readFileSync} from 'node:fs';
+
+test('APRS codes distinguish the primary, alternate and overlay tables without guessing a station type',()=>{
+ assert.deepEqual(nativeSymbol('010D@'),aprsSymbol('/','>'));
+ assert.deepEqual(nativeSymbol('0602W'),aprsSymbol('W','#'));
+ assert.deepEqual(nativeSymbol('0602@'),aprsSymbol('\\','#'));
+ for(const key of ['FFFF@','000FZ','0B0E@','bad'])assert.equal(nativeSymbol(key),null);
+ assert.equal(aprsSymbol('?','>'),null);assert.equal(aprsSymbol('/','
+BPQ Console
BPQ Console
by IU2EUG
La tua stazione, in un unico pannello.
diff --git a/public/vendor/aprs-symbols/COPYRIGHT.md b/public/vendor/aprs-symbols/COPYRIGHT.md
new file mode 100644
index 0000000..2f11ef6
--- /dev/null
+++ b/public/vendor/aprs-symbols/COPYRIGHT.md
@@ -0,0 +1,423 @@
+
+Copyright and licensing information
+======================================
+
+This is a collection of vectorized symbols for use on the APRS system.
+
+The copyright status of this collection is a bit complicated, since the
+symbols come from various sources, each having different copyright owners.
+
+Most of the vectorized symbols are loosely based on the low-resolution
+"standard" bitmap symbol set as distributed by Stephen Smith, WA8LMF. That
+set is used by most APRS software around the world. The low resolution of
+those symbols does not allow direct vector conversion, so I've drawn new
+symbols in a similar layout. The vector versions try to mimic the original
+appearance and colours, with the intention of keeping the set recognizable
+and familiar to existing users. In some cases the vector versions are
+probably similar enough to the originals, so that they cannot be considered
+"original work" by myself. In some of these cases, the originals are
+probably also mimicking someone else's design.
+
+The original symbols do not come with any information on their licensing.
+They've been distributed with a lot of APRS software over time, but I don't
+know who designed which symbol originally. Most likely all of them are
+drawn by one of:
+
+ * Roger Barker, G4IDE, "original set provided with UI-View" (SK)
+ * Steve Dimse, KH4G, "U.S. customary set"
+ * Stephen Smith, WA8LMF
+
+The Adobe Illustrator (.ai) file contains a copy of the original bitmaps
+as a hidden layer, just for reference.
+
+Some symbols I obtained from other sources, such as Wikipedia. In those
+cases I picked SVG versions which allow commercial reuse (source known, and
+the work is placed on public domain, or with a CC license which allows
+adaptation and commercial reuse).
+
+Some symbols are vectorized versions of product or brand logos. The
+copyright of those is owned by the respective companies (Apple, Microsoft,
+Kenwood), and each of those may have some opinions on how the logos are
+used. Please check for yourself if you can use them or not.
+
+In the list below I try to summarize the licensing status for each symbol.
+
+
+Shorthand notation for common licensing status
+-------------------------------------------------
+
+* *VEC-OH7LZB* - Vectorized by OH7LZB, based on original APRS symbol set
+ * Source of original bitmap: http://wa8lmf.net/aprs/APRS_symbols.htm
+ * Original designer of individual symbol unknown at this time, but one of:
+ * Roger Barker, G4IDE
+ * Steve Dimse, KH4G
+ * Stephen Smith, WA8LMF
+ * Vectorized versions are designed to look similar
+ * Licensing: Unknown
+* *OH7LZB* - Original vector design by Heikki Hannikainen, OH7LZB
+ * Different enough (by author's opinion) to make it a new original work,
+ instead of a copy of the old symbol
+ * License: CC BY-SA 2.0
+ * https://creativecommons.org/licenses/by-sa/2.0/
+
+
+Primary table
+----------------
+
+* /! - Police station
+ * VEC-OH7LZB
+* /# - Digipeater / Green star with D in middle
+ * VEC-OH7LZB
+* /$ - Telephone
+ * VEC-OH7LZB
+* /% - DX cluster
+ * VEC-OH7LZB
+* /& - HF gateway
+ * VEC-OH7LZB
+* /' - Small aircraft
+ * https://openclipart.org/detail/27182/topdown-airplane-view
+ * Author: Wirelizard (Brian Burger)
+ * With color and some other small tuning added by OH7LZB
+ * PD: https://openclipart.org/share
+* /( - Mobile satellite station
+ * OH7LZB
+* /) - Wheelchair, handicapped
+ * PD wheelchair symbol
+ * Vectorized from bitmap by OH7LZB
+* /* - Snowmobile
+ * https://openclipart.org/detail/15849/snowmobile
+ * Author: Mystica (https://openclipart.org/user-detail/mystica)
+ * PD: https://openclipart.org/share
+* /+ - Red Cross
+ * VEC-OH7LZB
+* /, - Boy Scouts
+ * VEC-OH7LZB
+* /- - House
+ * VEC-OH7LZB
+* /. - Red X
+ * VEC-OH7LZB
+* // - Red dot
+ * VEC-OH7LZB
+* /0 to /9 - Numbered circles
+ * VEC-OH7LZB
+* Fire
+ * http://commons.wikimedia.org/wiki/File:FireIcon.svg
+ * Author: Piotr Jaworski
+ * PD: I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
+* Tent
+ * https://openclipart.org/detail/174933/green-tent-by-stamps-174933
+ * Author: stamps
+ * PD: https://openclipart.org/share
+* Motorcycle
+ * http://commons.wikimedia.org/wiki/File:MUTCD_W8-15P.svg
+ * This file is in the public domain because it comes from the Manual on
+ Uniform Traffic Control Devices, sign number W8-15P, which states
+ specifically on page I-1 that: Any traffic control device design or
+ application provision contained in this Manual shall be considered to
+ be in the public domain. Traffic control devices contained in this
+ Manual shall not be protected by a patent, trademark, or copyright,
+ except for the Interstate Shield and any other items owned by FHWA.
+ * Colour version by OH7LZB
+* /= - Railroad engine
+ * http://commons.wikimedia.org/wiki/File:Icon_train.svg
+ * Author: http://en.wikipedia.org/wiki/User:Richtom80
+ * CC-BY-SA-2.5,2.0,1.0
+* /> - Car
+ * OH7LZB
+* /? - File server
+ * https://openclipart.org/detail/163717/file-server-by-lyte
+ * Author: lyte
+ * PD: https://openclipart.org/share
+* /@ - Hurricane predicted path
+ * VEC-OH7LZB
+* /A - Aid station
+ * VEC-OH7LZB
+* Mail (BBS)
+ * https://openclipart.org/detail/29268/yellow-mail-by-rg1024-29268
+ * Author: rg1024
+ * PD: https://openclipart.org/share
+* /C - Canoe
+ * https://openclipart.org/detail/179047/red-canoe-by-rambo-tribble-179047
+ * https://openclipart.org/detail/179041/canoe-paddle-by-rambo-tribble-179041
+ * Author: Rambo Tribble
+ * PD: I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
+* /E - Eyeball
+ * http://commons.wikimedia.org/wiki/File:Blue_eye.svg
+ * PD: "This file is from the Open Clip Art Library, which released it explicitly into the public domain"
+ * PD: https://openclipart.org/share
+* /F - Tractor
+ * https://openclipart.org/detail/191654/farm-tractor-by-tmjbeary-191654
+ * Author: tmjbeary
+ * PD: https://openclipart.org/share
+* /G - Grid square, 3 by 3
+ * VEC-OH7LZB
+* /H - Hotel
+ * VEC-OH7LZB
+* /I - TCP/IP
+ * VEC-OH7LZB
+* /K - School
+ * OH7LZB
+* /L - PC user
+ * OH7LZB
+* /M - Mac apple
+ * Apple
+* /N - NTS
+ * VEC-OH7LZB
+* /O - Hot air balloon
+ * OH7LZB
+* /P - Police
+ * OH7LZB
+* /R - RV
+ * OH7LZB
+* /S - Space Shuttle
+ * https://openclipart.org/detail/814/space-shuttle-by-johnny_automatic
+ * PD: Published by the NASA, in "The Brain in Space"
+* /T - SSTV
+ * https://openclipart.org/detail/48997/flat-screen-by-rg1024
+ * Author: rg1024
+ * Adjusted by OH7LZB
+ * PD: https://openclipart.org/share
+* /U - Bus
+ * OH7LZB
+* /V - ATV, amateur television
+ * https://openclipart.org/detail/48997/flat-screen-by-rg1024
+ * Author: rg1024
+ * Adjusted by OH7LZB
+ * PD: https://openclipart.org/share
+* /W - Wx, Weather service site
+ * VEC-OH7LZB
+* /X - Helicopter
+ * OH7LZB
+* /Y - Sailboat
+ * OH7LZB
+* /Z - Windows flag
+ * Microsoft
+* /[ - Human
+ * VEC-OH7LZB
+* /\ - DF triangle
+ * VEC-OH7LZB
+* /] - Mailbox, post office, letter
+* /^ - Large aircraft
+ * https://openclipart.org/detail/183204/plane-red-by-sketchartist-183204
+ * Author: SketchArtist
+ * PD: https://openclipart.org/share
+* /_ - Weather station
+ * VEC-OH7LZB
+* /` - Satellite dish
+ * OH7LZB
+* /a - Ambulance
+ * OH7LZB
+* /b - Bicycle
+ * http://commons.wikimedia.org/wiki/File:Bicycle_evolution-numbers.svg
+ * Author: Wikipedia user: Al2
+ * CC BY 3.0
+* /c - Incident command post
+ * VEC-OH7LZB
+* /d - Fire station
+ * VEC-OH7LZB
+* /e - Horse, equestrian
+ * https://openclipart.org/detail/142627/horse-riding-lesson-by-olku
+ * Author: OlKu
+ * PD: https://openclipart.org/share
+* /f - Fire truck
+ * OH7LZB
+* /g - Hang glider
+ * OH7LZB
+* /h - Hospital
+ * VEC-OH7LZB
+* /i - IOTA, islands on the air
+ * http://commons.wikimedia.org/wiki/File:Palm_Island_R.svg
+ * PI
+* /j - Jeep
+ * OH7LZB
+* /k - Truck
+ * OH7LZB
+* /l - Laptop
+ * OH7LZB
+* /m - Mic-E repeater
+ * VEC-OH7LZB
+* /n - Node, black bulls-eye
+ * VEC-OH7LZB
+* /o - Emergency operations center
+ * VEC-OH7LZB
+* /p - Dog(e)
+ * OH7LZB
+* /q - Grid square, 2 by 2
+ * VEC-OH7LZB
+* /r - Repeater tower
+ * OH7LZB
+* /s - Ship, power boat
+ * OH7LZB
+* /t - Truck stop
+ * VEC-OH7LZB
+* /u - Semi-trailer truck, 18-wheeler
+ * OH7LZB
+* /v - Van
+ * OH7LZB
+* /w - Water station
+ * VEC-OH7LZB
+* /x - X / Unix
+ * https://commons.wikimedia.org/wiki/File:X11.svg
+ * PD
+* /y - House, yagi antenna
+ * VEC-OH7LZB
+* /z - Shelter
+ * VEC-OH7LZB
+
+
+Secondary table
+------------------
+
+* Emergency
+ * VEC-OH7LZB
+* Numbered digipeater / Green star
+ * VEC-OH7LZB
+* Bank
+ * VEC-OH7LZB
+* Numbered gateway / Black diamond
+ * VEC-OH7LZB
+* Crash site
+ * OH7LZB
+* Cloudy
+ * OH7LZB
+* MEO
+ * VEC-OH7LZB
+* Snowflake
+ * http://commons.wikimedia.org/wiki/File:Snowflake_01.svg
+ * Author: Wikipedia user: Amada44
+ * Public Domain
+* Church
+ * VEC-OH7LZB
+* Girl Scout
+ * VEC-OH7LZB
+ * Looks slightly like the common USA girl scouts logos. Should be different
+ enough to not infringe on "Girl Scouts of the USA" copyrights.
+* Home (HF antenna)
+ * VEC-OH7LZB
+* Unknown position
+ * VEC-OH7LZB
+* Destination
+ * VEC-OH7LZB
+* Numbered circle
+ * VEC-OH7LZB
+
+* Petrol Station
+ * OH7LZB
+* Hail
+ * VEC-OH7LZB
+* Park
+ * VEC-OH7LZB
+* Gale Flag
+ * VEC-OH7LZB
+* Red car from above
+ * OH7LZB
+* Info Kiosk
+ * VEC-OH7LZB
+* Hurricane
+ * OH7LZB
+
+* Numbered white box
+ * VEC-OH7LZB
+* Snow blowing
+ * VEC-OH7LZB
+* Coast Guard
+ * VEC-OH7LZB
+* Drizzle
+ * VEC-OH7LZB
+* Smoke / Chimney
+ * VEC-OH7LZB
+* Freezing rain
+ * VEC-OH7LZB
+* Snow Shwr
+ * VEC-OH7LZB
+* Haze
+ * VEC-OH7LZB
+* Rain Shower
+ * VEC-OH7LZB
+* Lightning
+ * OH7LZB
+* "Kenwood radio"
+ * Kenwood logo, vectorized
+* "Lighthouse"
+ * CC BY-SA 2.0
+ * http://wiki.openstreetmap.org/wiki/File:Lighthouse.svg
+* Nav Buoy
+ * OH7LZB
+* Rocket
+ * http://www.clker.com/clipart-gglkuglug.html
+ * PD according to clker.com license
+* Parking
+ * VEC-OH7LZB
+
+* Earthquake, Restaurant
+ * VEC-OH7LZB
+* Satellite
+ * OH7LZB
+* Thunderstorm
+ * OH7LZB
+* Sunny
+ * OH7LZB
+* VORTAC, Numbered WXS
+ * VEC-OH7LZB
+* Pharmacy Rx
+ * OH7LZB
+* Wall Cloud
+ * OH7LZB
+* Numbered plane
+ * https://openclipart.org/detail/183204/plane-red-by-sketchartist-183204
+ * Author: SketchArtist
+ * PD: https://openclipart.org/share
+* Numbered WX Station
+ * VEC-OH7LZB
+* Rain
+ * Source: http://commons.wikimedia.org/wiki/File:Heavy-rain-shower-transparent.svg
+ * Author: Wikipedia user: Peepo
+ * Public Domain
+ * With modifications by OH7LZB
+
+* Numbered diamond
+ * VEC-OH7LZB
+* Dust blowing
+ * NA
+* Numbered civil defence
+ * VEC-OH7LZB
+* DX spot
+ * VEC-OH7LZB
+* Sleet
+ * NA
+* Funnel Cloud
+ * NA
+* Gale
+ * VEC-OH7LZB
+* Store
+ * https://openclipart.org/detail/89299/cart-medium-by-martins.bruvelis
+ * Author: martins.bruvelis
+ * Public Domain
+ * Adjustments by OH7LZB
+* Numbered black box
+ * VEC-OH7LZB
+* Work zone / Excavator
+ * Based on http://www.clker.com/clipart-292480.html PNG version
+ * Vectorized and colors adjusted by OH7LZB
+ * PD according to clker.com documentation, uploader KURSVEIAL
+* SUV
+ * OH7LZB
+* Milepost, Numbered triangle, Circle sm
+ * VEC-OH7LZB
+* Partly cloudy
+ * OH7LZB
+
+* Restrooms, Numbered boat
+ * VEC-OH7LZB
+* Tornado (also used in Funnel cloud, Skywarn)
+ * https://openclipart.org/detail/104887/tornado-by-laabadon
+ * Author: Laabadon
+ * Public Domain
+* Numbered truck
+ * OH7LZB
+* Numbered van
+ * OH7LZB
+* Flooding
+ * NA
+* Sky warn, Numbered shelter, fog
+ * VEC-OH7LZB
diff --git a/public/vendor/aprs-symbols/README.md b/public/vendor/aprs-symbols/README.md
new file mode 100644
index 0000000..f0f97c0
--- /dev/null
+++ b/public/vendor/aprs-symbols/README.md
@@ -0,0 +1,7 @@
+# APRS symbol assets
+
+Unmodified 48-pixel PNG sprite sheets from [aprs.fi high-resolution symbols](https://github.com/hessu/aprs-symbols), by Heikki Hannikainen, OH7LZB and the individual contributors listed in COPYRIGHT.md. Displayed at 24 CSS pixels. Copyright and licensing vary by symbol; the full upstream notice is preserved in COPYRIGHT.md.
+
+Descriptions in ../../aprs-symbols.js are adapted from [aprs-symbol-index](https://github.com/hessu/aprs-symbol-index), maintained by OH7LZB for aprs.fi, licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). Blank descriptions are omitted. Symbol overlays are drawn as text on the alternate table.
+
+Mapping: printable APRS symbol codes ! through ~, sixteen columns per row, six rows per table. Unknown symbols use a neutral question mark rather than an invented station type.
diff --git a/public/vendor/aprs-symbols/alternate.png b/public/vendor/aprs-symbols/alternate.png
new file mode 100644
index 0000000..f7e1a78
Binary files /dev/null and b/public/vendor/aprs-symbols/alternate.png differ
diff --git a/public/vendor/aprs-symbols/primary.png b/public/vendor/aprs-symbols/primary.png
new file mode 100644
index 0000000..d6c15bb
Binary files /dev/null and b/public/vendor/aprs-symbols/primary.png differ
diff --git a/server.mjs b/server.mjs
index fe16047..54885c9 100644
--- a/server.mjs
+++ b/server.mjs
@@ -210,7 +210,7 @@ const server=http.createServer(async(req,res)=>{
}
if(req.method!=='GET'){json(res,405,{error:'Metodo non disponibile'});return;}
const vendor=url.pathname.match(/^\/vendor\/pdfjs\/(pdf\.min\.mjs|pdf\.worker\.min\.mjs|(?:standard_fonts|cmaps)\/[A-Za-z0-9_.-]+)$/);if(vendor&&!vendor[1].includes('..')){const bytes=await readFile(path.join(dir,'public','vendor','pdfjs',vendor[1]));res.writeHead(200,{'Content-Type':vendor[1].endsWith('.mjs')?'text/javascript':'application/octet-stream','Cache-Control':'public, max-age=86400'});res.end(bytes);return;}
- const files={'/busy.js':'busy.js','/busy.css':'busy.css','/vendor/leaflet/leaflet.js':'vendor/leaflet/leaflet.js','/vendor/leaflet/leaflet.css':'vendor/leaflet/leaflet.css','/aprs-activity.js':'aprs-activity.js','/aprs-activity.css':'aprs-activity.css','/aprs.js':'aprs.js','/aprs.css':'aprs.css','/radio-ports.js':'radio-ports.js','/radio-ports.css':'radio-ports.css','/compose-attachments.js':'compose-attachments.js','/compose-attachments.css':'compose-attachments.css','/i18n.js':'i18n.js','/i18n.css':'i18n.css','/sync-state.js':'sync-state.js','/sync-progress.js':'sync-progress.js','/sync-progress.css':'sync-progress.css','/radio-control.js':'radio-control.js','/radio-control.css':'radio-control.css','/terminal.js':'terminal.js','/terminal.css':'terminal.css','/winlink-radio.js':'winlink-radio.js','/winlink-radio.css':'winlink-radio.css','/forwarding.js':'forwarding.js','/forwarding.css':'forwarding.css','/journal.js':'journal.js','/journal.css':'journal.css','/world-land.json':'world-land.json','/monitor.js':'monitor.js','/monitor.css':'monitor.css','/':'index.html','/app.js':'app.js','/enhancements.js':'enhancements.js','/notifications.js':'notifications.js','/winlink.js':'winlink.js','/mission.js':'mission.js','/attachments.js':'attachments.js','/mission.css':'mission.css','/style.css':'style.css','/dark.css':'dark.css'};const file=files[url.pathname];if(!file){json(res,404,{error:'Pagina non trovata'});return;}const bytes=await readFile(path.join(dir,'public',file));res.writeHead(200,{'Content-Type':file.endsWith('.json')?'application/json':file.endsWith('.css')?'text/css; charset=utf-8':file.endsWith('.js')?'text/javascript; charset=utf-8':'text/html; charset=utf-8','Cache-Control':'no-cache'});res.end(bytes);
+ const files={'/aprs-symbols.js':'aprs-symbols.js','/vendor/aprs-symbols/primary.png':'vendor/aprs-symbols/primary.png','/vendor/aprs-symbols/alternate.png':'vendor/aprs-symbols/alternate.png','/vendor/aprs-symbols/README.md':'vendor/aprs-symbols/README.md','/vendor/aprs-symbols/COPYRIGHT.md':'vendor/aprs-symbols/COPYRIGHT.md','/busy.js':'busy.js','/busy.css':'busy.css','/vendor/leaflet/leaflet.js':'vendor/leaflet/leaflet.js','/vendor/leaflet/leaflet.css':'vendor/leaflet/leaflet.css','/aprs-activity.js':'aprs-activity.js','/aprs-activity.css':'aprs-activity.css','/aprs.js':'aprs.js','/aprs.css':'aprs.css','/radio-ports.js':'radio-ports.js','/radio-ports.css':'radio-ports.css','/compose-attachments.js':'compose-attachments.js','/compose-attachments.css':'compose-attachments.css','/i18n.js':'i18n.js','/i18n.css':'i18n.css','/sync-state.js':'sync-state.js','/sync-progress.js':'sync-progress.js','/sync-progress.css':'sync-progress.css','/radio-control.js':'radio-control.js','/radio-control.css':'radio-control.css','/terminal.js':'terminal.js','/terminal.css':'terminal.css','/winlink-radio.js':'winlink-radio.js','/winlink-radio.css':'winlink-radio.css','/forwarding.js':'forwarding.js','/forwarding.css':'forwarding.css','/journal.js':'journal.js','/journal.css':'journal.css','/world-land.json':'world-land.json','/monitor.js':'monitor.js','/monitor.css':'monitor.css','/':'index.html','/app.js':'app.js','/enhancements.js':'enhancements.js','/notifications.js':'notifications.js','/winlink.js':'winlink.js','/mission.js':'mission.js','/attachments.js':'attachments.js','/mission.css':'mission.css','/style.css':'style.css','/dark.css':'dark.css'};const file=files[url.pathname];if(!file){json(res,404,{error:'Pagina non trovata'});return;}const bytes=await readFile(path.join(dir,'public',file));res.writeHead(200,{'Content-Type':file.endsWith('.png')?'image/png':file.endsWith('.md')?'text/plain; charset=utf-8':file.endsWith('.json')?'application/json':file.endsWith('.css')?'text/css; charset=utf-8':file.endsWith('.js')?'text/javascript; charset=utf-8':'text/html; charset=utf-8','Cache-Control':'no-cache'});res.end(bytes);
}catch(e){json(res,502,{error:e.message||'BPQ temporaneamente non disponibile'});}
});
server.listen(port,'0.0.0.0',()=>console.log(`BPQ Console: http://127.0.0.1:${port}`));