KSP-CKAN / NetKAN-bot

NetKAN indexing service
4 stars 5 forks source link

Provide a webhook for spacedock to contact for instant NetKAN inflation #37

Closed godarklight closed 8 years ago

godarklight commented 8 years ago

I've made a program that will translate spacedock mod id's into CKAN identifiers, currently it returns this:

{ id: mod_id, identifiers: ['all', 'identifiers', 'that', 'match'], api_data: (data from api/mod/mod_id) }

Here's some live output for DarkMultiPlayer: http://pastebin.com/vM80nNdm

godarklight commented 8 years ago

Finished the quick HAYO program here: https://github.com/KSP-SpaceDock/SpaceDock-Notify/blob/master/app.py

techman83 commented 8 years ago

As discussed on IRC, there is a webhook endpoint open to spacedock.info https://netkan.ksp-ckan.org/inflate which will attempt to inflate the provided identifiers.

godarklight commented 8 years ago

I guess we can close this now, you've done everything from your side and I believe our side is complete, so we now should have instant CKAN inflates.

techman83 commented 8 years ago

And we have live events!

Webhook logs

[xKanHooks:23101] info @2016-04-23 09:21:59> Inflating Contares-Antennas in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 48
[xKanHooks:23101] info @2016-04-23 09:22:12> Completed Contares-Antennas in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 50
[xKanHooks:25602] info @2016-04-23 09:45:12> Inflating KeepFit in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 48
[xKanHooks:25602] info @2016-04-23 09:45:22> Completed KeepFit in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 50
[xKanHooks:25739] info @2016-04-23 09:50:46> Inflating AmbientLightAdjustment in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 48
[xKanHooks:25739] info @2016-04-23 09:50:59> Completed AmbientLightAdjustment in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 50
[xKanHooks:25860] info @2016-04-23 09:51:17> Inflating AmbientLightAdjustment in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 48
[xKanHooks:25860] info @2016-04-23 09:51:25> Completed AmbientLightAdjustment in /home/netkan/perl5/lib/perl5/App/KSP_CKAN/WebHooks.pm l. 50

Indexing logs

2016/04/23 09:22:09 INFO Commiting Contares-Antennas-1.1
2016/04/23 09:45:19 INFO Commiting KeepFit-0.10.5.4
2016/04/23 09:50:55 INFO Commiting AmbientLightAdjustment-2.5.6.4a