Live data from Hacker News

Show HN: Self-generated custom art for your home or Airbnb

eliotand.me

161–170 of 171 posts

Re: Show HN: Self-generated custom art for your home or Airbnb

#162
post #122
post #53

Earlier quoted context omitted.

Possible solution: Maybe proxy your Foursquare API requests via https://www.eliotand.me/airbnb-poster/search or a similar API endpoint you'd create. Disallow CORS on that new API endpoint. You can keep the API call signature but remove the client ID and secret. On your backend you can then make those Foursquare API requests and add the client ID and secret to the request.

I built a microservice that does something similar[0] for Mailchimp. They have an API that requires a secret key, but we didn't want to keep a server running for it (and obviously didn't want anyone on the internet playing with our key). So I set up a little python service that serves a page and 'proxies' the API to the end user. [0] https://github.com/sasha42/Mailchimp-utility

Very nice!

You could also do this simply by running on Azure Functions (free consumption plan). All you need to deploy is a simple proxies.json, see [1].

On the AWS side it appears you can entirely use API Gateway. Here [2] is a Swagger 2.0 definition file I just wrote which upon import creates an API endpoint that should proxy requests to an external API while adding your secret credentials.

[1]: https://aka.ms/apiproxy [2]: https://gist.github.com/berndverst/b59fa0b38544f13c05ae0b77f...

Re: Show HN: Self-generated custom art for your home or Airbnb

#163
post #162
post #122

Earlier quoted context omitted.

I built a microservice that does something similar[0] for Mailchimp. They have an API that requires a secret key, but we didn't want to keep a server running for it (and obviously didn't want anyone on the internet playing with our key). So I set up a little python service that serves a page and 'proxies' the API to the end user. [0] https://github.com/sasha42/Mailchimp-utility

Very nice! You could also do this simply by running on Azure Functions (free consumption plan). All you need to deploy is a simple proxies.json, see [1]. On the AWS side it appears you can entirely use API Gateway. Here [2] is a Swagger 2.0 definition file I just wrote which upon import creates an API endpoint that should proxy requests to an external API while adding your secret credentials. [1]: https://aka.ms/apip…

And for posterity, here is to create this kind of API proxy in Azure Functions. It's even easier!

https://gist.github.com/berndverst/37d87570418bbee77641777e1...

Re: Show HN: Self-generated custom art for your home or Airbnb

#164
post #152

Earlier quoted context omitted.

Mapbox use OSM data. You can download it here ( http://planet.openstreetmap.org/ ). If you know how to process it, you can use it any way you want (subject to the liberal OSM licence)

> subject to the liberal OSM licence Not to piss on the OP's parade, but, while liberal, the OSM license does require you to to give proper attribution to OSM in such a way than users are likely to notice it - I don't see that here. Would be nice to get the OP's comments on this?

I see "(c) Mapbox (c) OpenStreetMap" in the bottom right of the map preview, so I assume it will also be part of the export/print. "OpenStreetMap contributors" and another clickable link in the footer would be better but I see reasonable effort in/on the end product.

edit: reading through other comments it's possible the author added the attribution only recently (after OPs comment)

Re: Show HN: Self-generated custom art for your home or Airbnb

#165
post #146

You are violating licenses. "© Mapbox © OpenStreetMap © Leaflet" is not appropriate. Including a copyright mark for Leaflet suggests that you have no idea why, so make sure you really understand whose data and art you use and how you are allowed to do so.

Having trouble finding this and am curious, if anyone could point it out -

Finding what?

Re: Show HN: Self-generated custom art for your home or Airbnb

#166
post #148

Earlier quoted context omitted.

Just use https://openmaptiles.org/ for a fraction of the cost (512USD) and no restrictions on how you use them commercially.

AFAICS, you do still need to provide attribution to OpenMapTiles?

To OpenStreetMap and OpenMapTiles. https://openmaptiles.com/terms/

Re: Show HN: Self-generated custom art for your home or Airbnb

#169
post #146

You are violating licenses. "© Mapbox © OpenStreetMap © Leaflet" is not appropriate. Including a copyright mark for Leaflet suggests that you have no idea why, so make sure you really understand whose data and art you use and how you are allowed to do so.

We fixed that.

Re: Show HN: Self-generated custom art for your home or Airbnb

#170

It's very nice, I just wanted to wish you the best in this venture. It's functional, well-priced, addresses a need, doesn't claim to be more than it really is, and is pulled off very nicely. Suggestion for more layouts.

Thanks for the kind words and the suggestion. We will add a landscape format and new styles (color schemes) in the near future. Which style is your favorite?

Could you add a contrasting colour for the "Zoomed In" portion of the map? The would provide a nice juxtaposition.
Post reply on HN