NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
Windows FM Radio support in v5.

 
  • 0 Vote(s) - 0 Average
Windows FM Radio support in v5.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,158
Threads: 958
Joined: May 2006
#21
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,158
Threads: 958
Joined: May 2006
#22
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
bourret.brandon
Offline

Junior Member

United States
Posts: 15
Threads: 2
Joined: Apr 2020
#23
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.

Martin

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.


Attached Files Thumbnail(s)
   
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,158
Threads: 958
Joined: May 2006
#24
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
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#25
2020-05-12, 01:37 PM
(2020-05-12, 01:29 PM)mvallevand Wrote: ...  the script does ... internet radio

I listen to Internet radio all day long ... What can I do to help get this up and running?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,158
Threads: 958
Joined: May 2006
#26
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
bourret.brandon
Offline

Junior Member

United States
Posts: 15
Threads: 2
Joined: Apr 2020
#27
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.

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

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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,158
Threads: 958
Joined: May 2006
#28
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
bourret.brandon
Offline

Junior Member

United States
Posts: 15
Threads: 2
Joined: Apr 2020
#29
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.

Martin

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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,158
Threads: 958
Joined: May 2006
#30
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
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (13): « Previous 1 2 3 4 5 … 13 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  FM tuner support in NextPVR? Goongyae 2 1,524 2022-11-23, 01:22 PM
Last Post: mvallevand
  IPTV like stream from Sound Card input - FM Radio Project NumberFive 3 1,562 2022-11-20, 04:28 PM
Last Post: mvallevand
  IPTV Pretuning and Internet Radio mvallevand 5 3,299 2019-02-04, 12:02 AM
Last Post: mvallevand
  Problems with Windows UWP App spitefulgod 4 3,935 2016-12-15, 08:35 PM
Last Post: spitefulgod
  Any ideas about programming for Windows Firewall? bgowland 4 5,826 2014-04-10, 09:05 AM
Last Post: bgowland
  Windows Shortcuts ACTCMS 4 2,824 2012-03-24, 12:22 AM
Last Post: mvallevand
  Creating a Windows service McBainUK 8 3,543 2011-03-30, 03:29 AM
Last Post: mvallevand
  Which channel logo image formats does npvr support? bgowland 2 2,151 2011-03-06, 05:43 AM
Last Post: bgowland
  Webservice API to support Android App development Barsk 4 3,382 2010-10-19, 07:31 AM
Last Post: Barsk
  Using Windows file system shortcuts ACTCMS 0 1,842 2010-01-26, 11:45 PM
Last Post: ACTCMS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode