Better HN
topnewbestaskshowjobs
Log inSign up

sndk

5 karma · joined Nov 21, 2020 (6y ago) · 7 submissions

Submissions

comment 5y ago · link · parent

Your example would always set the counter to 1 and not increment it. From what I understood you would like to set the counter to "current value" + 1. Unfortunately there is no API at the moment to retrieve the current value. Task for the next version. Thanks for the idea!

As a side note this would also trigger a navigation away from your site not something you probably want. You should be doing this behind the scenes with JS.

You could look into https://countapi.xyz/. You won't get the displaying part but there's an API for your use case.

comment 5y ago · link · parent

Just trying to make it easier to use. Crafting a POST request has some overhead with setting the body etc. While with GET you could just trigger an update from browser URL bar.

comment 5y ago · link · parent

Thanks! In a central database. It does not save your historical data, only the latest updated counter value.

comment 5y ago · link · parent

Hey HN! This is a simple web app to create custom counters. You can display the counter on any device which has access to the web and you can update the counter value using UI or programmatically with a HTTP GET request. The counter can be used for anything you imagine, as long as it's a number - e.g. the number of pushups you have done this year, the number of days you have worked remotely, the current value of your investment portfolio. Hopefully you will find it useful! All feedback and ideas are welcome!

5.

Show HN: A simple web app to create a custom counter, share it and update it(counting.world ↗)

1 points · by sndk · 5y ago · 8 comments

comment 6y ago · link · parent

Good idea, thanks.

7.

Show HN: Visualize Your Life in Weeks(lifeinweeks.info ↗)

11 points · by sndk · 6y ago · 6 comments