2020-05-12, 02:59 AM
The list you get won't include the call signs not on TuneIn radio I will update the script tomorrow.
Martin
Martin
2020-05-12, 02:59 AM
The list you get won't include the call signs not on TuneIn radio I will update the script tomorrow.
Martin
2020-05-12, 03:06 AM
(This post was last modified: 2020-05-12, 03:07 AM by mvallevand.)
Actually if you want to edit nextradio.py and remove line 79 that returns Ottawa, ON you should be ok. I will package it up tomorrow with the change.
Martin
2020-05-12, 03:24 AM
(2020-05-12, 03:06 AM)mvallevand Wrote: Actually if you want to edit nextradio.py and remove line 79 that returns Ottawa, ON you should be ok. I will package it up tomorrow with the change. You've been SUPER awesome! I was thinking about translating your Python script into a Perl script and then compiling that to EXE (using ActiveState PerlApp). But I'm not 100% sure what some of the commands mean. The Ottawa thing is no big deal to me. I just edited the channel list to match what's local. Next is the ATSC channel scan, and then trying to tune into the stations.
2020-05-12, 01:29 PM
In addition to analog radio, the script does sdr radio and internet radio too so I didn't explain everything. The reason that it is python is to make it multi-platform. A Windows exe won't help all users. If you want to convert to pl that is fine, I don't see that there will be the number of users to justify the time, I didn't spend much time making this but did move the discussion to developers forum for this kind of discussion.
I never has had the issues you had with requests and am a bit surprised with the ActiveState implementation. I will make sure I document which python to use since I expect the python.org version and pip will be on all platforms. The big question though is FM radio tuning working for you integrating all this together? Martin
2020-05-12, 01:37 PM
2020-05-12, 02:02 PM
I posted a thread in the beta forum, if you are interested you can follow it there and if success it probably can go to the wiki. It is much easier to setup then FM and SDR radio.
Martin
2020-05-18, 05:30 AM
(2020-05-12, 01:29 PM)mvallevand Wrote: In addition to analog radio, the script does sdr radio and internet radio too so I didn't explain everything. The reason that it is python is to make it multi-platform. A Windows exe won't help all users. If you want to convert to pl that is fine, I don't see that there will be the number of users to justify the time, I didn't spend much time making this but did move the discussion to developers forum for this kind of discussion. Hey Martin, been busy at work. I'm about to move forward with testing FM radio now. Did you upload an updated PY script somewhere? I'll let you know how it goes.
2020-05-18, 11:44 AM
Yes I updated the py file in post #11 so it wouldn't default to Ottawa. I didn't mention it since you said it wasn't a big deal and you had already import. You can delete the extra and rescan with with the new py file with no issue.
Martin
2020-05-19, 04:23 AM
(2020-05-18, 11:44 AM)mvallevand Wrote: Yes I updated the py file in post #11 so it wouldn't default to Ottawa. I didn't mention it since you said it wasn't a big deal and you had already import. You can delete the extra and rescan with with the new py file with no issue. Oh, Martin, Martin, Martin ... This Python is the craziest thing I've ever seen. Since I last used your script and it worked, I haven't touched the Python install on my PC. Not one bit. I uninstalled NextPVR v4, reinstalled NextPVR v5, and went to run your script again. The Python interpreter is throwing the same errors again, but it's even more weird! It says it can't find the "requests" module. So I use pip to try to reinstall it, and pip says it's already installed! So here's how I'm moving forward ... I'm rewriting your Python script in good 'ol friendly (to me) Perl 5. It's just what I'm used to because I have a lot of Perl experience. I'm just tracing through your Python script and translating as I go. Once it's done, I will "compile" it for Windows and Linux and upload the whole thing here.
2020-05-19, 07:43 AM
(This post was last modified: 2020-05-19, 06:58 PM by mvallevand.)
The python script has nothing to do with the use of the extra though, it is a one time run. You had a working extra so I am confused what is going on.
However from your error it is almost surely because you are running python2 and not python3 Martin |
|