jplazes downloads are back
ok, the jplazes downloads are back available too. So now most of ththings are back on the downside.ch site…
ok, the jplazes downloads are back available too. So now most of ththings are back on the downside.ch site…
RSS feed for comments on this post · TrackBack URI
You must be logged in to post a comment.
andyp said,
September 14, 2006 @ 11:07 pm
Is jplazes up-to-date with the current version of the Plazes / Plazer / whereami APIs?
Admin said,
September 18, 2006 @ 12:22 pm
yes, at least the last time i checked everything worked fine (2 weeks ago)
the whereami API is not supported anymore by plazes.com, i think. The plazer API is not fully implemented for all platforms (since it requires native stuff to retrieve MAC address, Gateway IP and so on. Currently it is implemented using shell scripts and tested on OSX and Windows XP. But this could easely break. Writing native code anyone ?)
pascal
fabien said,
October 17, 2006 @ 3:05 am
Works like a charm! Thanks a lot for this code that saved me a few hours of undesired coding
Admin said,
October 25, 2006 @ 11:06 am
hey Fabien
I take cheques and cash
).
No problem. It was an interesting experience and I learned some important things (public API design…. better think twice and harder and longer). I am still waiting for an update to the API but unfortunately plazer.com is quite slow with enhancements/improvements (or they banned me from the mailinglist
pascal
Geonick said,
January 7, 2007 @ 10:05 pm
This is a nice helper application. Seems you are developing on Mac? Whatever it is, every developer needs to make a run command: Below there is one for Windows.
Paste this snipped to a file named like run.bat:
echo PlazesApiDemo - Demo of jplazes
echo jplazes is a java API for plazes.com (http://downside.ch/blog/?page_id=9)
echo Plazes adds physical presence to the web and connects you to people and places nearby.
echo.
rem Batchfile for Windows written by Geonick.
echo Starting PlazesApiDemo…
echo (If you get an error like ‘Invalid developer key.’ (code: 804)
echo check or create file jplazes.properties. See jplazes homepage).
echo.
java -cp .;jplazes-0.20.jar;lib\commons-logging-1.1.jar;lib\xmlrpc-2.0.1.jar;lib\commons-codec-1.3.jar;lib\dom4j-1.6.1.jar ch.downside.jplazes.examples.simple.PlazesApiDemo
pause
echo on
Admin said,
January 12, 2007 @ 11:39 am
yes…i am working on mac (at least for my projects…at work i often use windows machines… but here nobody is interested at plazes stuff
).
anyway: thanks for the run file.
pascal
Geonick said,
January 14, 2007 @ 3:29 am
Thanks for the reply. Now I get errors running PlazerApiDemo… After “Login in…” there occurs an error saying:
Logging in…
Exception in thread “main” ch.downside.jplazes.JPlazesException: Could not execute request: ‘Failure writing request’ (code: 0) commandName: launcher.login with parameters [yourname, yourlogin, youraccesskey, null] at ch.downside.jplazes.command.AbstractCommand.execute(Unknown Source)
=> What could be wrong with the code (or do I miss the OS-specific helper file)?
This is a running example:
% java -cp .;jplazes-0.20.jar;lib\commons-logging-1.1.jar;lib\xmlrpc-2.0.1.jar;lib\commons-codec-1.3.jar;lib\dom4j-1.6.1.jarc h.downside.jplazes.examples.simple.PlazerApiDemo
– Stefan
Admin said,
January 14, 2007 @ 11:10 pm
do you have a full stacktrace ?
as mentioned on the jplazes part of my blog the plazer API is doing stuff which is not possible in pure java (getting the gateway and then get it’s MAC address). On Windows and OS X this is done by using command line stuff (ie. “ipconfig” and “arp” on windows and “netstat” on OS X) and then parsing the returned text. Pretty ugly stuff i have to admit (if you want to add a C implentation i can call with JNI….). So it is very well possible that this does not work on all Windows versions…
that said…from post to the mailinglist it seems that you do not have a plazer API key ? this is required and the PlazerAPIDemo will not work without it.
I will look into giving a more descriptive exception text as soon as i create a new version (planned as soon as plazes.com publish their new API which is promised but …. )
pascal