Union Terrace Gardens has some excellent pieces that were put up as part of a
street art festival
. Adding culture to the city is great, but there is
something about 'santioned creativity' that really annoys me. I know the
residents around here would be up in arms if someone did a giant mural
overnight.
Reading:
Cibola Burn, Virtual Light
Location:
57.1578,-2.2143
Weather:
2°C Partly cloudy starting in the evening.
I think the weather stuff I played with
yesterday
is going to be an input
to a quantified self dashboard I have been toying with building for a long
time.
I have wanted to put together a dash for years, but I have always struggled to
find technologies that I want to work with. For a
demo at work
I have had
to put together a simple dash, all it does is show interface throughput for two
interfaces, but it has give a chance to play with the front end UI and backend
webserving components that I want to use.
I am lurking in a coffee shop now, which is a great time to have a first whack
at the idea.
It
is
Sunday, so that
makes
seven
days
of
writing
.
Reading:
Cibola Burn, Virtual Light
Location:
57.1446, -2.1060
Weather:
6˚C Clear.
My good friend Warren Ellis (well complete stranger, but I read his newsletter
so that is pretty the same thing) tweets pictures of where he is with the
weather info overlaid. I am sure he is using some sort of newfangled social
media filter to provide the info. I want something similar for the footnotes on
my fairly post, but social media stuff is no good for me, I need an API to use.
Now, as hard as I try I cannot find a weather service that will just spit some
data at me. I really want to do
curl weathersite.internet | jq...
and end up
with a nice summary for a location. The web is closing up and locking down,
which means an API key is required.
After putting this off for a while, this morning I remembered I have previously
registered for a weather service. A steaming cup of coffee later and I found
the
python bindings
to the excellent
forecast.io
already installed.
import forecastio
api_key = "yer_key_here_bampot"
lat = 57.168
lng = -2.1055
forecast = forecastio.load_forecast(api_key, lat, lng)
weather = forecast.daily().data[0]
temperatureMax = int(weather.apparentTemperatureMax)
temperatureMin = int(weather.apparentTemperatureMin)
summary = weather.summary
print("{}°C {}".format(temperatureMax, summary))
Gives a nice
4°C Partly cloudy throughout the day.
There isn't anything to this, If I could find an API that didn't require a key
I probably wouldn't even use python. But madness makes more madness, so here we
are.
Reading:
Cibola Burn, Virtual Light
Location:
57.168, -2.1055
Weather:
4°C Partly cloudy throughout the day.
Warren Ellis's
morning.computer
was the main driver for me to start
blogging everyday. I like to think I am being influenced by someone super
productive, rather than blantently copying him.
I have felt terrible all week and haven't had energy to really do anything.
Having an image to post everyday turned out to be an excellent idea. I do need
to go through the archives to top up the reserve of images at some point.
Reading:
Cibola Burn
Reading:
Cibola Burn, Excession
Location:
57.168, -2.1055