[Google Wave APIs] Re: Using the active API to run a cron Job
For those interested i have worked it out by looking at the source of this app http://wave-samples-gallery.appspot.com/about_app?app_id=107009 You need something like: import logging from waveapi import events from waveapi import robot from waveapi import blip from waveapi import element from waveapi import ops from waveapi import util from waveapi import wavelet from waveapi import appengine_robot_runner from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app global myRobot #other robot event methods class AHandler(webapp.RequestHandler): def get(self): #you can now do things here by calling myRobot.someMethod() if __name__ == '__main__': myRobot = robot.Robot('', image_url='http://.appspot.com/assets/icon.png', profile_url='http://.appspot.com/') myRobot.setup_oauth(, ., server_rpc_base='http:// gmodules.com/api/rpc') myRobot.register_handler(events.WaveletSelfAdded, OnRobotAdded) #Note this method is note included in my code snippet appengine_robot_runner.run(myRobot, True, extra_handlers=[('/ about',AHandler),]) And then in app.yaml, you define a url /about.* that runs the robot python script. You can then run http://appspot.com/about whenever you like (with a cron job, manually, from some other program, whatever) it will interact with waves as you program it to in the def get(self): method. Note, you will probably want to save wave and wavelet id's in a database so you can access specific waves using this url, otherwise you will be limited to making a new wave, and going from there. It would have been good if there was some real documentation on how to do this though. I find it tiresome having to go hunting to find out something that could have been explained in half a page somewhere! :P On Apr 16, 11:37 am, threepineapples threepineapp...@gmail.com wrote: Hi, The Active API says that you can use it to run cron jobs on waves. I've set up OAuth, but i'm at a lost to what sort of python code i actually write to get the robot to run on my command (without something happening in wave). I know how to set up cron jobs in appengine, so i assume i need to set up some kind of handler for a new cron URL in my robot, and then have that call a robot event or something along those lines, but the Active API information stops after explaining how to set up OAuth. There is no mention of how to get your robot to respond to external events! Any help (i'm python preferably) would be appreciated! -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
Re: [Google Wave APIs] Re: Using the active API to run a cron Job
The Twitter Searchy robot is a good example of using Python for a cron job, wave storage, etc: http://wave-samples-gallery.appspot.com/about_app?app_id=107014 http://wave-samples-gallery.appspot.com/about_app?app_id=107014I'll put on our to-do list to write an actual article about how to use cron. - pamela On Fri, Apr 16, 2010 at 3:40 AM, threepineapples threepineapp...@gmail.comwrote: For those interested i have worked it out by looking at the source of this app http://wave-samples-gallery.appspot.com/about_app?app_id=107009 You need something like: import logging from waveapi import events from waveapi import robot from waveapi import blip from waveapi import element from waveapi import ops from waveapi import util from waveapi import wavelet from waveapi import appengine_robot_runner from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app global myRobot #other robot event methods class AHandler(webapp.RequestHandler): def get(self): #you can now do things here by calling myRobot.someMethod() if __name__ == '__main__': myRobot = robot.Robot('', image_url='http://.appspot.com/assets/icon.png', profile_url='http://.appspot.com/') myRobot.setup_oauth(, ., server_rpc_base='http:// gmodules.com/api/rpc') myRobot.register_handler(events.WaveletSelfAdded, OnRobotAdded) #Note this method is note included in my code snippet appengine_robot_runner.run(myRobot, True, extra_handlers=[('/ about',AHandler),]) And then in app.yaml, you define a url /about.* that runs the robot python script. You can then run http://appspot.com/about whenever you like (with a cron job, manually, from some other program, whatever) it will interact with waves as you program it to in the def get(self): method. Note, you will probably want to save wave and wavelet id's in a database so you can access specific waves using this url, otherwise you will be limited to making a new wave, and going from there. It would have been good if there was some real documentation on how to do this though. I find it tiresome having to go hunting to find out something that could have been explained in half a page somewhere! :P On Apr 16, 11:37 am, threepineapples threepineapp...@gmail.com wrote: Hi, The Active API says that you can use it to run cron jobs on waves. I've set up OAuth, but i'm at a lost to what sort of python code i actually write to get the robot to run on my command (without something happening in wave). I know how to set up cron jobs in appengine, so i assume i need to set up some kind of handler for a new cron URL in my robot, and then have that call a robot event or something along those lines, but the Active API information stops after explaining how to set up OAuth. There is no mention of how to get your robot to respond to external events! Any help (i'm python preferably) would be appreciated! -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
Re: [Google Wave APIs] Problems embed API http://wave-api.appspot.com/public/embed.js
There are unfortunately various issues with the API reference, such as non-functional methods like that one. We're working to update that reference within the next few days, to show you only the functional methods. The addReply function will not be included. On Wed, Apr 14, 2010 at 9:52 PM, hvt_kg thaihuyn...@gmail.com wrote: Hi All, The current I try embed with instruction from http://code.google.com/apis/wave/embed/guide.html site. It is OK. SO, When I using some API from http://code.google.com/apis/wave/embed/reference.html ex: addReply(..) it is not work. anyone see issue. Pls tell me I think it is missing or not update document from GW? right? thanks. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
[Google Wave APIs] April 13th Wave Server Releases
We pushed Google Wave Preview WaveSandbox.com servers this week. The push included several changes to the visual interface for the Embed API. More information is available in the changelog: https://wave.google.com/wave/#restored:wave:googlewave.com!w%252BAU-ZLT_uA You can follow that wave for live updates in your wave inbox. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
Re: [Google Wave APIs] Office Hours Today
We did not hold office hours this week, due to travel schedules. We expect to hold them next week, and will post about them. On Wed, Apr 14, 2010 at 11:38 AM, Eric Kolotyluk e...@kolotyluk.net wrote: Are there any office hours today? I have not seen any announcements. Cheers, Eric -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
Re: [Google Wave APIs] Python Robot API: GadgetStateChanged and Filters
Ah - the GadgetStateChanged event works with filter, but the filter is attended to filter on the URL of the gadget, so that you can only listen to changes for a particular gadget. We'll improve the documentation to make that clearer. It's possible that a document changed filter will work for what you want, since the gadget state is technically a part of the document. I have not tested that, however. - pamela On Wed, Apr 14, 2010 at 5:51 AM, Martin Kreichgauer kreichga...@googlemail.com wrote: Hello, I tried using the filters of the Python v2 Robot API with the GadgetStateChanged event. The code looks like this: def on_gadget_state_changed(event, wavelet): # ... my_robot = robot.Robot(my_robot, profile_url='url') my_robot.register_handler(events.GadgetStateChanged, on_gadget_state_changed, filter=StringThatDoesNotAppearAnywhereInTheGadgetState) appengine_robot_runner.run(my_robot, debug=True) I would expect that the handler never gets called because the filter string can certainly not be found in the wave or any gadget state. However, the event handler is called every single time the gadget state changes. What am I doing wrong? Thanks, Martin Kreichgauer -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
[Google Wave APIs] Re: Welcome to test the Mafia(party game)
I have add you all in one game to play. https://wave.google.com/wave/#restored:wave:googlewave.com!w%252BkLZBi_PUA -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
Re: [Google Wave APIs] Re: loading new version of robot on wavesandbox
Hi Jeno, I think you are confused between version of robot and version of capabilities. Please check the following FAQ: http://wave-api-faq.appspot.com/#versions. Hope this might help you. Regards, Kapil Neurgaonkar On Fri, Apr 16, 2010 at 7:09 AM, jeno jeno...@gmail.com wrote: It is enabled current version as default. i mean version 5 in appengine-web.xml and version 5 as default in http://appengine.google.com/deployment?app_id=dmsbtbotversion_id=5.341283673113662763 . thanks jeno On Apr 16, 11:19 am, Joe Gregorio j...@bitworking.org wrote: When you go tohttp://appengine.google.com/ http://appengine.google.com/dashboard?app_id=jcgbot and look at your application, what do you see when you look at the 'Versions' page for you application? Thanks, -joe On Thu, Apr 15, 2010 at 8:49 PM, jeno jeno...@gmail.com wrote: Hi Joe, i made changes on onFormButtonClicked (onFormButtonClicked is already there in old version) and I updated the version of the application in appengine-web.xml and made the new version the default in appengine.google.com. when load capabilities.xml , i haven't seen any version update. I 've remove robot from contact list and add again. I haven't seen any changes for button click event. the robot is loading old version of button click event. Thanks for your time cheers jeno On Apr 16, 10:01 am, jeno jeno...@gmail.com wrote: Thanks for your help. It is taking bit time to updating capabilities.xml in java environment. cheers jeno On Apr 16, 12:59 am, Joe Gregorio j...@bitworking.org wrote: So do you see the new BLIP_SUBMITTED event in the capabilities.xml? I've occasionally run into this by accident myself when I updated the version of the application in app.yaml and then forgotten to go to appengine.google.com and make the new version the default. Thanks, -joe -- Joe Gregorio Developer Relations, Google Wave On Wed, Apr 14, 2010 at 7:30 PM, jeno jeno...@gmail.com wrote: Hi Kapil, Thanks for your time. the version should be automatically changed to a new hash value whenever you add or remove an event (http://code.google.com/apis/wave/articles/robotdebugging.html) My issue is version hasn't changed when i add or remove an events. If the version is not changed bot is loading with old version. Cheers jeno On Apr 14, 9:27 pm, Kapil Neurgaonkar caps...@gmail.com wrote: Hi Jeno, With v2 APIs the capabilities document is automatically generated based on the behavior of your robot. You can check the documentation http://code.google.com/apis/wave/extensions/robots/events.html#Capabi.. . . Regards, Kapil Neurgaonkar On Wed, Apr 14, 2010 at 12:24 PM, jeno jeno...@gmail.com wrote: i am updating event with BLIP_SUBMITTED. still i am getting same wave version w:versionfff74ac4797c/w:version and event haven't updated with w:capabilities please any help cheers jeno On Apr 14, 3:30 pm, jeno jeno...@gmail.com wrote: Hi *, I developed simple robot using latest version of java api and deployed on GAE. working cool on wave sandbox. For the next version i removed WAVELET_PARTICIPANTS_CHANGED event and add onFormButtonClicked and also change my getRobotAvatarUrl and getRobotProfilePageUrl. deployed on GAE and change default apps as current version When i am inspecting Robot Capabilities , it is not changed . It is returned as previous version did w:robot w:versionfff74ac4797c/w:version w:protocolversion0.2/w:protocolversion - w:capabilities w:capability name=WAVELET_SELF_ADDED/ w:capability name=WAVELET_PARTICIPANTS_CHANGED/ /w:capabilities /w:robot i removed robot participant and add it again . robot added with old version of avatar image and url. it is not loaded new version. Thanks for your time -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com google-wave-api%2Bunsubscribe@ googlegroups.com google-wave-api%2Bunsubscribe@ googlegroups.com google-wave-api%2Bunsubscribe@ googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you
Re: [Google Wave APIs] April 13th Wave Server Releases
Rats, I just tested my code which tries to create a hierarchy of blips, and it still fails the same way. I was hoping Marcel Adi Prasetya's blip-API fixes would have made it into the updates. Or it could be his fixes do not fix the problem. Cheers, Eric On Fri, Apr 16, 2010 at 3:41 AM, pamela (Google Employee) pamela...@gmail.com wrote: We pushed Google Wave Preview WaveSandbox.com servers this week. The push included several changes to the visual interface for the Embed API. More information is available in the changelog: https://wave.google.com/wave/#restored:wave:googlewave.com!w%252BAU-ZLT_uA You can follow that wave for live updates in your wave inbox. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups Google Wave API group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.