maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   FM RDS Notify Application (https://talk.maemo.org/showthread.php?t=39452)

craftyguy 2010-02-13 05:41

Re: FM RDS Notify Application
 
Quote:

Originally Posted by tomster (Post 495126)
I wonder if it's possible to also send some sort of navigational output via RDS to your car's radio. I haven't tried OVI maps (on any phone) yet, but I guess there will be some sort of guidance text along with the voice prompts.
Have no idea though on how responsive RDS would be in "time-critical" navigational terms. Just a thought...

Well for starters, there are no voice prompts for Ovi Maps on Maemo... We can all thank Nokia for that.

mirakels 2010-04-11 19:33

Re: FM RDS Notify Application
 
I had some problems with FM RDSnotify. It seems to drain the n900 battery even when not using mediaplayer.

So as a learning exercise I created a small python script that just shows the mediaplayer title/artist/album on RDS.

Note that it uses RDS PS for the artist name and RDS TEXT for title + album.
Code:

#!/usr/bin/env python

#
# A small script to learn and play with python, dbus,
# mediaplayer and FM RDS
#
# Author: Mirakels (marcel@mesa.nl)
# Date: april 2010
#
# Setup dbus connections to mediaplayer en FMTx. Wait for
# signals from mediaplyer and use them to show info on your
# RDS capable audio system. It uses the RDS station name to
# show the artist, and the RDS text field to show album and
# title info of te current song.
#
# Note that mediaplayer also sets RDS when the FM transmitter
# is enabled (at least it does so in PR 1.1.1). But it shows
# artist/album/title as the RDS station name. This will be
# 'overwritten' by this script.
#
# Just run this script in the background from an xterm:
#
#      $ ./mp_rds.py &
#
# When you enable the FM transmitter in mediaplayer
# RDS messages will be send to your radio...
#

import gobject, dbus
from dbus.mainloop.glib import DBusGMainLoop

album  = ""
title = ""

#
# Just some console fun to see what mediaplayer is doing
#
def handle_state(state):
    if (state == 0):
        print "Media player stopped"
    elif (state == 1):
        print "Media player start playing"
    elif (state == 2):
        print "Media player paused"
    elif (state == 3):
        print "Media player transitioning"
    else:
        print "Media player unknown state %d" % state
       
#
# Set RDS info based on mediaplayer tag info
#
def handle_meta(meta, state, data):
    # print "meta change meta=%s, state=%d data=%s" % (meta, state, data)
    global album
    global title
    if (meta == "artist"):
        artist = data
        fmtx_iface.Set("com.nokia.FMTx.Device", "rds_ps", dbus.String(u'%s' % data , variant_level=1))
    if (meta == "title"):
        title = data
        info = title + ' / ' + album
        fmtx_iface.Set("com.nokia.FMTx.Device", "rds_text", dbus.String(u'%s' % info , variant_level=1))
    if (meta == "album"):
        album = data
        info = title + ' / ' + album
        fmtx_iface.Set("com.nokia.FMTx.Device", "rds_text", dbus.String(u'%s' % info , variant_level=1))
       

DBusGMainLoop(set_as_default=True)
#
# Connect to mediaplayer
#
bus = dbus.SessionBus()
bus.add_signal_receiver(handle_state, path='/com/nokia/mafw/renderer/gstrenderer', dbus_interface='com.nokia.mafw.renderer', signal_name='state_changed')
bus.add_signal_receiver(handle_meta,  path='/com/nokia/mafw/renderer/gstrenderer', dbus_interface='com.nokia.mafw.renderer', signal_name='metadata_changed')

#
# Create connection to FM transmitter
#
sysbus = dbus.SystemBus()
fmtx = sysbus.get_object('com.nokia.FMTx', '/com/nokia/fmtx/default', False)
fmtx_iface = dbus.Interface(fmtx, dbus_interface='org.freedesktop.DBus.Properties')

gobject.MainLoop().run()

#
# The End
#


nokian-series 2010-05-01 12:57

Re: FM RDS Notify Application
 
Hi all,
I tryed this app, it works for call and songs, but i cant activate SMS, it doesent scroll down to activate it !? I've tried with my finger, with down keys, i only see the options to activate music and call : \
Any tip, plese ?

nokian-series 2010-05-01 16:44

Re: FM RDS Notify Application
 
Nobody ? :(

Thank you.

nosa101 2010-05-30 21:35

Re: FM RDS Notify Application
 
ANybody tried this with PR 1.2?

BabelO 2010-05-30 21:43

Re: FM RDS Notify Application
 
Hi,

I've created this application, looks like it is no more needed with latest firmware to display songs tags on radio car system.

I ve stopped the devel for a moment as i ve some sending text problem when a call occur.

I will try another time this motnh :)


Fabrice

johnny_knoe 2010-06-07 11:29

Re: FM RDS Notify Application
 
Any news on a PR1.2 compatible version?

BabelO 2010-06-22 12:43

Re: FM RDS Notify Application
 
It is already compatible on pr1.2 version and look like the pr1.2 did not broadcast natively tags to fm.

So my applciation is needed again

jehan 2010-08-09 18:02

Re: FM RDS Notify Application
 
hi! since version 0.4-1 the fmrdsnotify widget refuses to start after addition to the desktop. even after a reboot the widget doesn't start automatically althogh i can start it from the shell.

anyone else has experienced this behaviour and knows of a solution for that?

N900@900MHz 2010-08-10 05:34

Re: FM RDS Notify Application
 
Hi!, i also installed FM RDS Notify 0.4.1 , everthing worked ok until reboot n900, now widget is gone!! Can't find it anymore. App. is stil in app. manager. Any ideas?? Reinstall didn't help.


All times are GMT. The time now is 03:13.

vBulletin® Version 3.8.8