How do you activate the Calendar Availability function in the Open Source version? Or is this another piece of code that Sharetribe only? There seems to be a new API that is called but no details are given about where to get the key for the API.
@rap1ds it would be great to get some commentary or guidance here.
Iām stuck on the same issue. Iāve been looking forward to the availability calendar for a long time, any help on this would be hugely appreciated.
Thanks for asking, Matthew and Andy. We also would like to activate the availability calendar but canāt see how to do it. Is there a step weāre missing, Sharetibe team?
Thanks so much!
Rick
Hi there, Iām also very interest in this feature and I turned on this feature on the code, allowing admins to set the managed availability, and record at the transaction
and listing
tables, at the :availability
column the value as booking
.
But, after that, at the transaction
table, iāve got the :current_state
column recorded as initiated
, and itās looks like I should had this record as preauthorize
state, so the payment flow keeps going on further.
To activate that, I did comment the statements - if feature_enabled?(:availability)
AND - if display_knowledge_base_articles
code at /app/views/admin/listing_shapes/_shape_form_content.haml
Anybody have tips on that? tks
@matthewvryan youāre right - it does require an API key.
See this post. They use a āHarmonyā API which I havenāt been able to find anything about yet.
+1 to hearing about instructions for how we can enable this!
As others have already answered, Harmony is needed to make availability calendar work.
The timeline for Open Sourcing Harmony is still under discussion in Sharetribe Team, but Iām glad to hear people are eagerly waiting for it!
Harmony has been now open sourced. Installation instructions are also added to the Sharetribe docs.
Thanks so much, Mikko and team!
Hey @rap1ds thanks for adding this documentation! Iāve installed Harmony on my local environment, now i am seeing the āEdit Availability Calendarā option enabled, but when i click on it, nothing happens⦠Maybe is because i need the Harmony API KEY? How can i get it?
Thanks!
There is a default API key āsecret1ā configured to Harmony and the main Sharetribe app. They are in these two files:
- Harmony: https://github.com/sharetribe/harmony/blob/d19fd4aa9bd618909c67d9a6687dfddf9fe82546/resources/conf/harmony-api.edn#L41
- Sharetribe: https://github.com/sharetribe/sharetribe/blob/0aafd43d78c32f9ec035b918bc7dcaf875e59085/config/config.defaults.yml#L298
Itās important to change these keys to something a bit more secret before going to production, but in order to just install Harmony and get it up and running locally, you shouldnāt need to change these keys. So thereās probably something else going wrong.
Check the Harmony log output, Rails log output and also the browser Web console to see whatās going on and whatās the error.
Thanks for the answer!
Itās very weird, nothing on Harmony or Rails logs, the same with the browser console No error or message⦠seems that the React App is not receiving the initial action to show the calendarā¦
I will keep the investigation here. Please let me know if you have an idea.
Thank you, Mikko and team. I would also like to know if you or anyone else has ideas about the problem eltonokada is still having. Thanks so much!
Hi @matthewvryan did you able to configure harmony? Please let me know if yes then can you please tell me at production or staging ENV what other changes we need to made for harmony other than written in harmony documentation.