Back to APIs list

Octopus Energy API examples & templates

Use these vals as a playground to view and fork Octopus Energy API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
metart43 avatar
getOctopusEnergyRates
@metart43
HTTP
// Declare the function as async and export it
MattieTK avatar
octopusAgilePricing
@MattieTK
Script
Backend val for https://www.val.town/v/MattieTK.laMetricOctopus Feel free to use it in your own apps.
MattieTK avatar
laMetricOctopus
@MattieTK
HTTP
Endpoint for https://apps.lametric.com/apps/octopus_agile_current_price/14286 Note that this must use the express endpoint to work by passing a case sensitive location query eg. London
smalldogenergy avatar
tgWebhook
@smalldogenergy
Script
An interactive, runnable TypeScript val by smalldogenergy
elsif_maj avatar
topHNThreadByHour
@elsif_maj
Email
// set at Thu Nov 30 2023 14:22:53 GMT+0000 (Coordinated Universal Time)
tmcw avatar
nyChargingStations
@tmcw
HTTP
NYC Charging Stations Data Analysis https://tmcw-nychargingstations.web.val.run/ This analyzes some open data about electric car charging stations in New York State and bakes a website from it. Data is messy!
smalldogenergy avatar
wttrGetForecast
@smalldogenergy
Script
An interactive, runnable TypeScript val by smalldogenergy
petermillspaugh avatar
june2024
@petermillspaugh
Script
@jsxImportSource https://esm.sh/preact
stevekrouse avatar
purpleOctopus
@stevekrouse
HTTP
Date Me Directory This is the source code for the Date Me Directory. Contributions welcome! Architecture This version of the site still uses Notion to store the data and NoteForms for the form to get your submission into Notion. I intend to cut Notion out of the equation shortly by building our own HTML form that writes data directly to my sqlite database. This val is the router for the application @stevekrouse/getDocs pulls the date me docs from my sqlite database. @stevekrouse/dateme_notion_sync syncs my data from Notion to my sqlite database every 10 minutes Todos [ ] Make a form to send data directly to sqlite (in progress: @stevekrouse/date_me_form) [ ] Require an email (that isn't shared publicly) [ ] Filters: Gender, Interested In, Style, Location, etc [ ] Table: hide location, location flexibility, community, contact, last updated in more details [ ] Refactor Location to an array of Lat, Lon [ ] Geocode all the existing locations [ ] Add a geocoder map input to the form [ ] Allow selecting multiple location through the form [ ] Profile performance & speed up site, possibly add more caching [ ] Let people edit their forms [ ] Featured profiles
arrudaricardo avatar
github_status_emoji_map
@arrudaricardo
Script
An interactive, runnable TypeScript val by arrudaricardo
colinespinas avatar
products
@colinespinas
Script
An interactive, runnable TypeScript val by colinespinas
miazien99 avatar
untitled_violetOctopus
@miazien99
Email
An interactive, runnable TypeScript val by miazien99
shreyagarwal7924 avatar
untitled_cyanOctopus
@shreyagarwal7924
Cron
// Fetches a random joke.
1
Next