Closed Nastras closed 3 years ago
Works for my city https://mymuell.jumomind.com/mmapp/api.php?r=streets&city_id=35105
Thank you for your quick reply. Now it worked and I found the ID for my street.
But I can't get the calendar via safari. In iCal as a subscription add it also does not want.
Via iCal I get the following error:
Via Safari I get the following error:
This is the url I tried. Is there still an error? http://myserverandport/calendar.ical?city_id=XXXXX&area_id=XXXXX
I must be doing something else wrong or?
Thank you!
Yes π may you should host this project as an app π this is just the code you can run as a server. You can host it yourself, i.e. on heroku. Then you have a working url you can use in the form you already tried. But βmyserverandportβ is not an existing server π
I almost thought it π I don't have an iCal server and I don't know anything about Heroku.
Is it complicated to set up something like this?
No, just create an heroku account and link this repo. It will build und start it and give you an url.
Ok, I have created an account now but I have no idea where to do what and how in heroku? Would be great if you can help me again.
In the heroku dashboard you create a new app and enter a name and choose a region. Next page you choose github as deployment method and use this repository (if this doenst work, you might have to fork the repository into your github account). And then click deploy. That should be it.
Done, I have created app with link. ππ
I have now replaced the URL under Domains with myserverandport https://XXXXX.herokuapp.com/calendar.ical?city_id=XXXXX&area_id=XXXXX
I tried to retrieve the data via Safari now i get again an error π
Great. Now you probably took the wrong id for area_id. It must be the areanid of the street, not the id of the street. Could you check?
You were right I chose the ID with 5 digits instead of the one with 4 digits. But now it worked and I can take the dates in the calendar π
I think it would be quite helpful for others if you explain it a little better in the description of how to set it up without own server via herocu. I think otherwise hardly anyone manages to implement your idea π
If you want we can maybe make an article on SmartApfel about it with a German tutorial or a tutorial in the Forum?
But it's a nice thing that I have the garbage dates now in the calendar so a big thank you for your quick help π
I have created a tutorial in the forum. Would be happy if you can look over whether everything is correct? Thank you!
https://forum.smartapfel.de/forum/thread/7309-abfallkalender-einrichten-my-muell-ical/#post103689
Awesome! Will integrate it in the readme whenever I find some time.
Hello Marcus,
I wanted to test your calendar tool unfortunately I am missing the data of someStreetAreaId
LG Nastra