Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
View this topic in a long page with up to 500 replies per page Create new topic
1 | ... | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | ... | 132
gchiu

1211 posts

Uber Geek
+1 received by user: 259

Trusted
DR

  #1822588 14-Jul-2017 16:48
Send private message

Himmig: Yea as much as I can - Login details are removed immediately after the setup and I use encryption for the short time the information is needed.
I'd rather not have it at all but the API doesn't really give us a different option.

 

Just had a look at this page https://github.com/madleech/FlickElectricApi/blob/master/src/flick-api.coffee

 

Since you're using madleech's code, can you tell me where this came from?

 

client_id: 'le37iwi3qctbduh39fvnpevt1m2uuvz'
client_secret: 'ignwy9ztnst3azswww66y9vd9zt6qnt'

 

I'm not familiar with JWT but are these values invariant?  And do they relate to the authentication of the mobile client vs authentication of the user?

 

 


zerkms
124 posts

Master Geek
+1 received by user: 9


  #1822591 14-Jul-2017 16:58
Send private message

gchiu:

 

Just had a look at this page https://github.com/madleech/FlickElectricApi/blob/master/src/flick-api.coffee

 

Since you're using madleech's code, can you tell me where this came from?

 

client_id: 'le37iwi3qctbduh39fvnpevt1m2uuvz'
client_secret: 'ignwy9ztnst3azswww66y9vd9zt6qnt'

 

I'm not familiar with JWT but are these values invariant?  And do they relate to the authentication of the mobile client vs authentication of the user?

 

 

 

 

 

 

Those are oauth client credentials. In this particular case those are static for everybody.


tdgeek
30048 posts

Uber Geek
+1 received by user: 9455

Trusted
Lifetime subscriber

  #1822660 14-Jul-2017 19:51
Send private message

dantheperson:

 

tdgeek:

 

But Flicksters are being exposed to what happens all year, every year, just that they have no way to level out the highs and lows, they experience them in real time. All of us have the exact same highs and lows, but our RSP's level our pricing to give a level 365 day price. The RSP's may do that themselves with the generator (at a premium) or wear the high cost today knowing it is fine on an annual basis. 

 

 

 

 

Seems there are two sets of highs and lows. There are the intra-day highs and lows, and Flick is very good at exposing that to customers who are willing to time-shift usage away from the peak and benefit from the off-peak lower prices.

 

Then there is the seasonal highs and lows, particularly winter in dry-years.  No one wants to time-shift their winter heating needs into November when the power is cheap.  So right now flick users are feeling pain (except for the small number of users that have duplicated their heating infrastructure and can choose between electric or non-electric sources).

 

So i conclude there a others have here, there is a market for a contract that exposes you to daily peak prices, but hedges you against seasonal extremes.

 

 

They arent exposing customers. The customers are exposing themselves to obtain cheaper prices, but seem to be miffed about winter? Hedging is good. It will cost, but you cant the the cake and eat it too


gchiu

1211 posts

Uber Geek
+1 received by user: 259

Trusted
DR

  #1822664 14-Jul-2017 20:02
Send private message

zerkms: 

 

 

 

Those are oauth client credentials. In this particular case those are static for everybody.

 

 

Got it.

 

I've just written this little script which just prints the current spot price I'm being charged every minute.  

 

Now to get it on my spare sim less phone so I can see what the price is doing.


mentalinc
3385 posts

Uber Geek
+1 received by user: 1025

Trusted

  #1822682 14-Jul-2017 21:02
Send private message

How does one run a rebol script?





CPU: AMD 5900x | RAM: GSKILL Trident Z Neo RGB F4-3600C16D-32GTZNC-32-GB | MB:  Asus X570-E | GFX: EVGA FTW3 Ultra RTX 3080Ti| Monitor: LG 27GL850-B 2560x1440

 

Quic: https://account.quic.nz/refer/473833 R473833EQKIBX 


Himmig
13 posts

Geek


  #1822685 14-Jul-2017 21:12
Send private message

If you use a script, checking the price via api more often than every 5 minutes will give you little benefit. Most times prices are updated ever 15-30 minutes plus it's not necessarily the exact price point and timing that will be charged at the end.
I retrieved prices every minute initially and have now moved to every 10 minutes. :)
Flick will eventually come out with a more accessible API which hopefully makes it easier and safe to integrate with.

Update: Just noticed that it looks like you use the expiry timer - nice! Just be mindful that the price sometimes updates more frequently than that.

easycloud
48 posts

Geek


  #1822690 14-Jul-2017 21:31
Send private message

gchiu:

 

 

 

Got it.

 

I've just written this little script which just prints the current spot price I'm being charged every minute.  

 

Now to get it on my spare sim less phone so I can see what the price is doing.

 

 

A word of advice, if you switch your endpoint from the legacy:

 

https://api.flick.energy/customer/mobile_provider/price

 

to the new API endpoint

 

https://api.flick.energy/rating/forecast_prices?supply_node=%2Fnetwork%2Fnz%2Fsupply_nodes%2F92064cc0-e5c1-4823-9e97-69b65b27033f&number_of_periods_ahead=1

 

You will get the 30 min forecast as well.  You can change the "number_of_periods_ahead=1" to a greater value to see even more in the future.

 

Here's what mine looks like.  It auto-refreshes so I have this plastered all around the house for the family to use.

 

 

 

Flick Dashboard

 

Edit:  I just realised the supply_node in the new URL might change from location to location, hence you'd have to find what yours would be.  

 

Also, I just realised this could be considered off topic.  Might be worth discussing this in a new thread instead.





www.easycloud.nz 

 

Home of the $20 VPS

 

instant activation, no contracts, hourly billing, full REST API


gchiu

1211 posts

Uber Geek
+1 received by user: 259

Trusted
DR

  #1822691 14-Jul-2017 21:31
Send private message

mentalinc:

 

How does one run a rebol script?

 

 

I've updated the notes in the script header on how to run it and updated it to run every 10 minutes.


easycloud
48 posts

Geek


  #1822693 14-Jul-2017 21:33
Send private message

gchiu:

 

 

 

I've updated the notes in the script header on how to run it and updated it to run every 10 minutes.

 

 

I find that giving the end-user the ability to force-reload prices during those 10 minute periods is very handy.  The 10 minute auto-refresh doesn't always line up with the 30 & 60 intervals. Sometimes you want to see the effective price and not wait for the script to do its thing.





www.easycloud.nz 

 

Home of the $20 VPS

 

instant activation, no contracts, hourly billing, full REST API


gchiu

1211 posts

Uber Geek
+1 received by user: 259

Trusted
DR

  #1822694 14-Jul-2017 21:50
Send private message

easycloud:

 

A word of advice, if you switch your endpoint from the legacy:

 

https://api.flick.energy/customer/mobile_provider/price

 

to the new API endpoint

 

https://api.flick.energy/rating/forecast_prices?supply_node=%2Fnetwork%2Fnz%2Fsupply_nodes%2F92064cc0-e5c1-4823-9e97-69b65b27033f&number_of_periods_ahead=1

 

You will get the 30 min forecast as well.  You can change the "number_of_periods_ahead=1" to a greater value to see even more in the future.

 

Edit:  I just realised the supply_node in the new URL might change from location to location, hence you'd have to find what yours would be.  

 

Also, I just realised this could be considered off topic.  Might be worth discussing this in a new thread instead.

 

 

Since I'm the topic starter, I don't think it is off topic!

 

Does this new API endpoint need different OAUTH credentials, or an API key?  I get an unauthorised message :(


easycloud
48 posts

Geek


  #1822695 14-Jul-2017 21:56
Send private message

gchiu:

 

 

 

Does this new API endpoint need different OAUTH credentials, or an API key?  I get an unauthorised message :(

 

 

Same OAuth credentials and endpoint as before, it should be a straight drop-in replacement for the previous URL.  





www.easycloud.nz 

 

Home of the $20 VPS

 

instant activation, no contracts, hourly billing, full REST API


gchiu

1211 posts

Uber Geek
+1 received by user: 259

Trusted
DR

  #1822696 14-Jul-2017 22:00
Send private message

body: => {{"status":{"code":"urn:flick:rating:error:not_authorised","message":"Given token has no permission for rating:price:list'"}}}


pogo
84 posts

Master Geek
+1 received by user: 9


  #1822724 15-Jul-2017 07:33
Send private message

We're capped at $10/unit, right?

Price is forecast to go to $500,000 MW/h at 8:30, which I think is $500/unit.

pogo
84 posts

Master Geek
+1 received by user: 9


  #1822730 15-Jul-2017 08:37
Send private message

Seems it's just one Islington node forecast at 500,000.

easycloud
48 posts

Geek


  #1822751 15-Jul-2017 09:30
Send private message

pogo: 

Price is forecast to go to $500,000 MW/h at 8:30, which I think is $500/unit.

 

That's not a real value, it's a placeholder which indicates the price cannot be guestimated right now.  From Flick's website:

 

https://news.flickelectric.co.nz/2017/05/18/forecast-to-final-prices/

 

What about infeasible pricing?

 

Well, this just means that the system operator (Transpower) doesn’t have all of the data it needs to calculate accurate prices for certain half-hourly periods. In the interim they use an extreme ‘placeholder’ (or stand-in) price of 50,000 cents per kWh in the data they send us, to signal ‘infeasible pricing’. If you’re a Flick customer, we’ll let you know in your CHOICE app that we’re getting some unreliable pricing information, and you should hold tight. Your daily total will be adjusted when we receive the final prices from Transpower in around two days time, and they’re normally similar to the 2 half hour periods either side of the infeasible pricing event.





www.easycloud.nz 

 

Home of the $20 VPS

 

instant activation, no contracts, hourly billing, full REST API


1 | ... | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | ... | 132
View this topic in a long page with up to 500 replies per page Create new topic


Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.