EFForg / crocodilehunter

Taking one back for Steve Irwin     (๑•̀ㅂ•́)و
GNU General Public License v3.0
944 stars 135 forks source link

Unable to run... #97

Closed Al-gore-ithm closed 3 years ago

Al-gore-ithm commented 3 years ago

Hi,

I'd be grateful for a little assistance, I am trying to run Crocodile Hunter without success so far. I have successfully built and tested srsLTE, but I've no idea what I need to do resolve this. The output is below, any and all suggestions are welcome...

Thanks in advance

Al

cooperq commented 3 years ago

looks like the problem here is your connection to wigle. Did you get a wigle api key and put it in config.ini? Crocodile hunter needs to connect to Wigle to get a list of EARFCNs (frequencys) to scan. If you don't want to or can't do that you can manually search for the frequencies around you using the wigle or open cell id web interface and put them in the config.ini with a line like so

[project-name]
earfcns = 1025,2050,66561,40072,17,40978

NOTE: make sure there are no spaces between the commas.

Al-gore-ithm commented 3 years ago

Thank you very much, I've tried that using a Wigle API username and key. I've also tried combinations of standard username and password with API username and API key all with no success. Using EARFCN list I do have some success running but I'm still seeing errors:

_*Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(self._args, self._kwargs) File "./crocodilehunter.py", line 154, in monitor_srslte line = nbsr.readline(int(self.config["general"]["crashtimeout"])) ValueError: invalid literal for int() with base 10: '30 ;number of seconds until we assume process has crashed. On a raspberry pi this needs to be more like 120'

I'm happy attempting to correct the error in ./crocodilehunter.py line 54, the others are a mystery to me though. Any further suggestions?

I am trying to use a VM running Ubuntu 20.04, srsUE runs ok on its own but this is beating me.

Again, thanks.

cooperq commented 3 years ago

ah yes, you need to remove the comment (everything after and including the ;) in config.ini it should parse this but it's a bug I need to fix. after that it should work.