597 karma · joined October 16, 2020
It looks a lot closer to the numbers you've been quoting now (hitting 31 cents / kilowatt hour in March). Thanks for catching that.
We've also begun building a full industry map of who owns which power plants and the chain of parent companies / subsidiaries. Quite amazing how deep the rabbit hole goes on the thing that all of our modern lives rely on but many of us take for granted. For example here: https://findenergy.com/providers/first-energy/#overview you can see all of the companies tied to the company at the beginning of the article.
If any journalist or fellow dev is interested in this space, feel free to drop me and the team a note at alex@findenergy.com
This is what is happening, except instead of a backend endpoint hosted on my own VPS, I'm using a Cloudflare worker.
"The title of the article says OAuth, and hence assumed that you wanted an authenticated client to be able to make the call to the backend for subscribing."
An authenticated client is necessary in order to retrieve the email of the client.
OAuth uses a client key and/or a client secret, for the application that is requesting access on behalf of the client.
As far as I can tell, Cloudflare Access doesn't allow you to run arbitrary code in an environment that isn't exposed to the user, which is kind of the whole purpose of this setup. The sole purpose of the OAuth part of this operation is so that the user doesn't have to type in their email. Session persistence/selective access isn't relevant here, and that appears to be the only thing the Cloudflare Access really offers.
I didn't make a point of vendor lock-in because migrating this process flow to a self-hosted HTTP server would take about 5 minutes. On top of that, this flow is going to be very similar for any vendor offering javascript functions.
Perhaps it is my fault for not including a section discussing this, but I assumed that the audience for this would primarily be people understand basic javascript and could deduce the portability of the code by looking at it.
A big motivator for this was definitely just to try out Cloudflare workers and see how they are. I've set up countless servers for APIs. In terms of time, I'd say Cloudflare workers is a bit faster when you get over the initial learning curve. Obviously you could write a deploy script for a server and have it set up everything automatically, and I have done that in the past, but sometimes it's fun to try new things right?
I never intended for this to come across as a technological accomplishment. I even end the article with "That’s pretty much it. It’s fairly simple with no real catches". I'm merely presenting what I thought would be useful information for some people. Personally I think maintaining a server is more work than maintaining this, but to each their own.
EDIT: guessing by the delay in response, someone just told all of HN they exposed their API key?
I'd also posit that a return on investment in a company like this isn't only going to happen if it achieves its goal. Looking at how research intensive/cutting edge the end goal is, they could stumble across 100 different new innovations in the process that could sprout into their own business ideas.
PS. Am I the only one who thinks this page sucks? https://www.helionenergy.com/our-technology/