Tony T wrote: > > I see the log file in /etc/log on the Radio, but Im confused with > whats described in the Manual: > The software will try to send messages to a logging server, by > default the computer running Logitech Media Server (LMS) on the default > port (1121). > > Is there supposed to be a log file for wlanpoke on my raspberry pi > running piCore? If so, I dont see it.
You need to run a logging server that to listen for the data that the script sends. This does not happen by default on pCP. See the section in the readme about "logging server" - which currently shows: > > Logging Server > > The software doesn't keep lengthy logs on the radio, which has very > limited storage. Instead, it sends incident information to a reliably > connected machine with sufficient storage. Regrettably, the radio 'nc' > app cannot send reports to a syslog server. > > For Windows, keep reading, then see below. The simplest solution is to > run netcat (nc) from a linux shell, e.g., > > nc -l -k -p 1121 >> 1121.log & > tail -f 1121.log & > > 'nc' will (-k) keep (-l) listening on (-p) port 1121 and (>>) append > what it receives to "1121.log" and (&) run in the background. > > 'tail' will display the last 10 lines and (-f) subsequent lines as they > are written from the "1121.log" file (&) in the background. Tail is > better than 'tee' because you can kill the tail process without > disrupting the log collection. > > You can launch any number of servers, each with its own port, and > configure each radio to report to a specific port. If you open your > firewall, these radios can be anywhere... This way, you can be > entertained or appalled by each radio's struggles. > > Advanced: You could also pipe nc to another nc with the -u udp option to > a proper syslog server. You might have to add additional fields to > comply with the server. > > Depending on who you are and your machine, you may not be able to use > the default port. In that case, use another port available to you. BTW, > our apologies to any service also wanting to use port 1121. Ports 1120 > to 1166 should be available at the time of this writing. According to > Wikipedia, 'The range of port numbers from 1024 to 49151 (2^10 to 2^14 + > 2^15 - 1) are [sic] the "registered ports."' > > > Windows Logging Server > > Windows has a nifty netcat app (download from nmap.org) called 'ncat'. > In some ways it is better than 'nc'. It launches from a command prompt > or you can also make a desktop shortcut. It opens a console or command > prompt window to display incoming messages, and can also send messages > back (but wlanpoke will not receive anything sent). To quit ncat, close > the window. To launch, enter > > start ncat -l -k -p 1121 -o 1121.log > > Add absolute paths to the 'ncat.exe' and the log file as appropriate. > 'tail' is not needed for real time console viewing. > Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland ------------------------------------------------------------------------ Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=114775
_______________________________________________ Radio mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/radio
