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 | ... | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | ... | 100


655 posts

Ultimate Geek
+1 received by user: 10


  Reply # 1822588 14-Jul-2017 16:48
Send private message quote this post

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?

 

 


98 posts

Master Geek
+1 received by user: 5


  Reply # 1822591 14-Jul-2017 16:58
Send private message quote this post

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.


 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software
11622 posts

Uber Geek
+1 received by user: 1993

Trusted

  Reply # 1822660 14-Jul-2017 19:51
Send private message quote this post

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




655 posts

Ultimate Geek
+1 received by user: 10


  Reply # 1822664 14-Jul-2017 20:02
Send private message quote this post

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.


1493 posts

Uber Geek
+1 received by user: 131

Trusted

  Reply # 1822682 14-Jul-2017 21:02
Send private message quote this post

How does one run a rebol script?





CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


13 posts

Geek


  Reply # 1822685 14-Jul-2017 21:12
Send private message quote this post

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.

48 posts

Geek


  Reply # 1822690 14-Jul-2017 21:31
Send private message quote this post

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.




655 posts

Ultimate Geek
+1 received by user: 10


  Reply # 1822691 14-Jul-2017 21:31
Send private message quote this post

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.


48 posts

Geek


  Reply # 1822693 14-Jul-2017 21:33
Send private message quote this post

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.




655 posts

Ultimate Geek
+1 received by user: 10


  Reply # 1822694 14-Jul-2017 21:50
Send private message quote this post

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 :(


48 posts

Geek


  Reply # 1822695 14-Jul-2017 21:56
Send private message quote this post

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.  




655 posts

Ultimate Geek
+1 received by user: 10


  Reply # 1822696 14-Jul-2017 22:00
Send private message quote this post

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


61 posts

Master Geek
+1 received by user: 5


  Reply # 1822724 15-Jul-2017 07:33
Send private message quote this post

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.

61 posts

Master Geek
+1 received by user: 5


  Reply # 1822730 15-Jul-2017 08:37
Send private message quote this post

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

48 posts

Geek


  Reply # 1822751 15-Jul-2017 09:30
Send private message quote this post

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.


1 | ... | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | ... | 100
View this topic in a long page with up to 500 replies per page Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25


New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48


Shipments tumble as NZ phone upgrades slow
Posted 2-Mar-2018 11:48



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.

Alternatively, you can receive a daily email with Geekzone updates.