OMG! Twitter release an OFFICIAL conversations API!

by @edent | # # # | 2 comments | Read ~317 times.
An organic, branching tree view of a conversation.

One of the most requested Twitter API features is now available – the ability to get replies to a Tweet as a thread. Long time readers know that I’ve long been a fan of Visualising Twitter Conversations in 2D Space. But up until now you had to use horrible hacks to get the data. As…

Continue reading →

Relaunching @edent_solar. Part 5 – Getting data out of Fronius Solarweb

by @edent | # # # | 4 comments
A big grey box with lots of wires coming out of it.

Mostly notes to myself. My solar panels have an open API. But it’s only available if I’m on the same network as the Fronius inverter. I can connect my system to https://www.solarweb.com/ so I can access it anywhere in the world – if I have the right password. SolarWeb has an (optional) guest mode. You…

Continue reading →

Relaunching @edent_solar. Part 4 – Dual String MPPT APIs

by @edent | # # #
Graph showing the difference between east and west panels.

I’m hooking my solar panels up to the Internet! Installation Inverter API & Code My solar panels have an API! It tells me the total amount of power they’ve generated each day. But there’s a small problem… I have panels on the East and West sides of my roof. My solar inverter has two MPPT…

Continue reading →

Everything you know about Twitter character counting is wrong

by @edent | # # # | Read ~126 times.
Japanese text pasted into the Twitter compose window. It is showing that there are too many characters.

How many characters can a Tweet contain? It used to be 140, back in the good old days. Now it’s 280. Unless you’re Japanese. Let me explain… I run OpenBenches – a site which collects memorial benches. When a user adds a bench, the inscription is automatically Tweeted. If the inscription is longer than 280…

Continue reading →

Turn an old eReader into an Information Screen (Nook STR)

by @edent | # # # # # # | 12 comments | Read ~7,676 times.
Nook with a train display.

Here’s a quick tutorial for turning an old Nook into a passive display. This is an update to my 2013 post End Result An eInk screen which displays the trains I can catch from my local station. It shows the next few available trains, and whether they’re delayed. It also shows how long until the…

Continue reading →

Why API responses should be signed

by @edent | # # | 36 comments | Read ~4,362 times.
Doctor Who holding a glowing key

I’m going to start this discussion with the why and then move on to the how. Let’s begin with a couple of user stories. As the recipient of some data, I want to verify that it hasn’t been tampered with. and As the recipient of some data, I want to verify who originally published it.…

Continue reading →

Add review to Goodreads from Schema markup

by @edent | # # # # # #
The Goodreads Logo.

I write book reviews on my blog. I also want to syndicate them to Goodreads. Sadly, Goodreads doesn’t natively read the Schema.org markup I so carefully craft. So here’s the scrap of code I use to syndicate my reviews. Goodreads API Keys Get your Keys from https://www.goodreads.com/api/keys You will also need to get OAuth tokens…

Continue reading →

Convert DOI to a HTML5 / Schema citation

by @edent | # # # # #
The DOI logo.

This is a quick and dirty way to turn a DOI (Digital Object Identifiers for academic papers) into an HTML & Microdata citation. I use this to power my Citations page. Schema.org is a Microdata standard which allows machines to read your HTML and create semantic relations between documents. Here’s a minimum viable citation: <blockquote…

Continue reading →

Tado API Guide – updated for 2019

by @edent | # # # # # | 28 comments | Read ~10,075 times.
Debug screen of a web browser.

Tado is a brilliant smart thermostat. But their API is very poorly documented. This is an updated guide for 2019. I am indebted to Stephen C Phillips’ original documentation. Getting started You will need: A Tado (duh!) Your Username (usually your email address) Your Password A Client Secret Getting the client secret I’m using this…

Continue reading →

Using the WordPress mShots Screenshot API

by @edent | # # # | 5 comments | Read ~1,608 times.
The Logo for WordPress

A few years ago, I wrote about Google’s secret screenshot API – a slightly cumbersome way to take website screenshots for free. There’s another service which you may find simpler to use – mShots from WordPress. Here’s how it works: Take any website link: https://twitter.com/JennyVass/status/1067855777040338944 URL Encode it: https%3A%2F%2Ftwitter.com%2FJennyVass%2Fstatus%2F1067855777040338944 Add it to the end of…

Continue reading →