A-c0rN / ASMARA

Automated System for Monitoring And Relaying Alerts
https://eas.missingtextures.net
Open Data Commons Open Database License v1.0
9 stars 8 forks source link

I get this error anyone know how to fix it #40

Closed WhoIsAsking1996 closed 3 months ago

WhoIsAsking1996 commented 3 months ago

Exception in thread MONITOR-1: Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "/home/one/KKWF/ASMARA/asmara.py", line 794, in recorder self.stream = Popen( ^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1883, in _execute_child self.pid = _fork_exec( ^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not dict

reggietorres commented 3 months ago

give full log please

WhoIsAsking1996 commented 3 months ago

i fixed that error but i cannot seam to get Monitors up and running

reggietorres commented 3 months ago

send your config

WhoIsAsking1996 commented 3 months ago

ok { "Monitors": [ "Monitors""URL:https://radio.wjonip.org/WJON-WSCN" ], "Callsign": "ASMARA/1", "Emulation": "", "Logger": { "Email": { "Enabled": false, "Server": "eas@server.com", "Port": 587, "Username": "user", "Password": "hackme", "To": [ "user.name@server.com" ] }, "Enabled": false, "Audio": false, "Webhooks": [] }, "LocalFIPS": [ "055079" ], "PlayoutManager": { "Channels": 2, "SampleRate": 44100, "Icecast": { "Enabled": true, "WaitingStatus": "KCMR Radio - No Audio", "Address": "127.0.0.1", "Port": "8000", "Source": "source", "Pass": "TEST", "Mountpoint": "KCMR", "Bitrate": "128k" }, "Audio": false, "Export": { "Enabled": false, "Folder": "OldAlerts" }, "Override": { "Enabled": false, "Folder": "Override" }, "AutoDJ": { "Enabled": true, "Folder": "PlayoutAudio", "IDFolder": "IDAudio", "IDSongs": 4, "Tone": true }, "LeadIn": { "Enabled": false, "File": "", "Type": "" }, "LeadOut": { "Enabled": false, "File": "", "Type": "" } }, "Filters": [ { "Name": "Local Alerts", "Originators": [ "" ], "EventCodes": [ "" ], "SameCodes": [ "LOCAL" ], "CallSigns": [ "" ], "Action": "Live:Now" }, { "Name": "Tests", "Originators": [ "" ], "EventCodes": [ "RWT", "DMO" ], "SameCodes": [ "" ], "CallSigns": [ "" ], "Action": "Ignore:Now" }, { "Name": "Catch All", "Originators": [ "" ], "EventCodes": [ "" ], "SameCodes": [ "" ], "CallSigns": [ "" ], "Action": "Relay:Now" } ], "LogFile": ".log" }

reggietorres commented 3 months ago

Ah i see your issue "Monitors": [ "Monitors""URL:https://radio.wjonip.org/WJON-WSCN" ],

is incorrect syntax.. it should be

"Monitors": ["https://radio.wjonip.org/WJON-WSCN"],