Skip to content

Flick API and Rebol

Graham Chiu edited this page Jul 14, 2017 · 1 revision

Forecast Pricing

Supply Node

Pricing is only available for the supply node that you are using. If you use a different node, you won't have the permissions to view the data.

In Wellington, Karori, I am using 1791ac20-df64-4235-8d06-562cc24d22e6

In order to get this data I had to install the app Packet Capture on my android phone. And then started up the Flick App Choice. When you click on the Price tab of the Choice app, you will then capture the supply_node in the url.

This gives me an api url of https://api.flick.energy//rating/forecast_prices?supply_node=%2Fnetwork%2Fnz%2Fsupply_nodes%2F1791ac20-df64-4235-8d06-562cc24d22e6&number_of_periods_ahead=1

The price map! I get back looks like this:

     make map! [
        kind "prices"
        prices [
            make map! [
                kind "price"
                start_at "2017-07-14T22:30:00Z"
                end_at "2017-07-14T22:59:59Z"
                status "urn:flick:market:price:forecast"
                charge_methods [
                    "kwh"
                    "spot_price"
                ]
                price make map! [
                    value "36.687"
                    unit_code "cents"
                    per "kwh"
                ]
                components [
                    make map! [
                        kind "component"
                        charge_method "kwh"
                        charge_setter "ea"
                        value "0.113"
                        unit_code "cents"
                        per "kwh"
                    ]
                    make map! [
                        kind "component"
                        charge_method "kwh"
                        charge_setter "retailer"
                        value "1.5"
                        unit_code "cents"
                        per "kwh"
                    ]
                    make map! [
                        kind "component"
                        charge_method "kwh"
                        charge_setter "network"
                        value "7.25"
                        unit_code "cents"
                        per "kwh"
                    ]
                    make map! [
                        kind "component"
                        charge_method "spot_price"
                        charge_setter "ea"
                        value "27.824"
                        unit_code "cents"
                        per "kwh"
                    ]
                ]
            ]
            make map! [
                kind "price"
                start_at "2017-07-14T23:00:00Z"
                end_at "2017-07-14T23:29:59Z"
                status "urn:flick:market:price:forecast"
                charge_methods [
                    "kwh"
                    "spot_price"
                ]
                price make map! [
                    value "52.978"
                    unit_code "cents"
                    per "kwh"
                ]
                components [
                    make map! [
                        kind "component"
                        charge_method "kwh"
                        charge_setter "ea"
                        value "0.113"
                        unit_code "cents"
                        per "kwh"
                    ]
                    make map! [
                        kind "component"
                        charge_method "kwh"
                        charge_setter "retailer"
                        value "1.5"
                        unit_code "cents"
                        per "kwh"
                    ]
                    make map! [
                        kind "component"
                        charge_method "kwh"
                        charge_setter "network"
                        value "7.25"
                        unit_code "cents"
                        per "kwh"
                    ]
                    make map! [
                        kind "component"
                        charge_method "spot_price"
                        charge_setter "ea"
                        value "44.115"
                        unit_code "cents"
                        per "kwh"
                    ]
                ]
            ]
        ]
    ]

so the current-price is price/prices/1/price/value and the next forecast price is price/prices/2/price/value

Clone this wiki locally