Matthew and Hilary Phillips update us on developments in RiscOSM,the vector map rendering software.
Rock helping you with Acorn and riskos Computing okay got some little notes as to how to hide all the annoying bits and pieces right okay so um we’re going to start off with a very quick look at a few of the improvements that are coming uh with risk
USM uh and by the way we we’ve we’ve not got very many screens to look at here so uh if there’s any questions that you want me to field please uh shout up um because I won’t be looking at the chat or indeed any faces um so um one of the
Things this is a before and after look um at some of the changes uh you see the the a1m going past on the east side of darham here uh on the on the left hand side which is the before um you’ll you’ll see that there’s absolutely no
Doubt it’s the a1m it’s labeled about six times uh whereas on the right hand side it’s just on once um the reason for the change is that we were doing a very kind of naive way of labeling roads basically um if you hover over the a1m with your
Information button on you’ll see it highlights um a chunk of road and it tells you that it’s way number 4143 440 in open street map um and by and large you get a change of way number whenever any of the attributes change like the speed them is or the number of lanes or
That kind of thing so as we’re approaching a junction we then get another little bit um I don’t know what change there between the two but um what was happening before was uh every single little chunk it tried to uh label them and you’ll see the several a1m round
About the junction because it’s labeling slip Ro possibly or or I’m not quite sure why there’s quite so many there there’s probably both sides of the road for one thing because you’ll be you’ll have a dual carriageway in effect and so they’re actually two ways very close
Together so um in the uh new version which isn’t released yet with still iron Ang out some bugs so apologies if it explodes at any point during the demo um uh the uh Road naming process goes through and uh links together any roads which have the same name and the same
Number even if other attributes are different and it attempts to label them uh a single time rather than all over the place so if we uh jump in a little bit closer uh not in Durham but in another part of the country just a little example we’ve prepared
Um you’ll see that not only does this have the effect of not um not uh labeling roads m multiple times uh but we also have some improvements which have made some roads appear on the map labeled for the first time uh over here you see we’ve got um a road called uh
Brut road which is not labeled and on this side it is labeled Cromwell Road is labeled in the new version and uh here is an example Humber Road South it changes from a residential street to a um to a tertiary Road partway along that meant in the past that it would have had
To have been labeled twice and the road name was far too long to fit on at this scale and so as you see on the left hand side it’s just not labeled and You’ got Beacon Road there which isn’t labeled so you’ll be getting a lot more names
Appearing on the map at uh smaller scales which I think helps you to find your way about um and we’re also trying to make sure that where possible the names the the names are going to try and go on straighter chunks of Road and try and avoid if it split across uh several
Junctions it’s going to try and avoid uh the bits near the Junctions which means you do tend to get a bit more labeled where otherwise roads would have fost over each other and the one label would stopped another label going on so there’s quite a few um more there’s
Maybe a few more refinements to work on but um it’s uh it’s looking a lot better and we’re quite pleased with this I’ll just move a bit further west um where there may or may not be some more examples to useful to see um yeah clumber Avenue for example appears on
The new one and wasn’t labeled on the old one because it’s got too many fiddly little bits it’s a a separate ways in the data source um yeah obviously there are of course the old there’s the odd road which ends up not being labeled that was labeled before just because of
Other interactions um and other things getting prioritized so um there’ll be a bit of change to a lot of maps um one thing which doesn’t affect roads so much but is also but does affect uh Rivers particularly um we because because this labeling applies to any kind of way that has a
Name along it like a river or or a path of some kind if it’s a named path um one thing that we’ve done is uh make sure that if the uh text ends up being largely upside down because the the river Wiggles about a lot um we detect
That the text has ended up largely upside down and label the river in the opposite direction to make it the right way up again um so um yeah that’s a few things we’ve been doing there um right I’m just going to expand this window again we’ll we’ll quit the
Old version of risk USM to make sure I don’t get confused and let’s get uh the window a bit bigger again I hope this is at a reasonable scale that you can see fairly clearly because I don’t want to make it much smaller um right now from my demos
Folder um I don’t know can you see a picture of me as well as the screen when you’re watching or are we not visible yes you are visible right well we were delighted uh just before Christmas to receive a a copy of a book um which was sent to us by Co fkins
In the Netherlands and it’s actually his doal thesis uh on the accumulation of man-made radio noise um looking for sources of radio noise in residential areas so he’s been doing this um research uh with um uh the University of Trent and um the whole book is produced
I think using Tech writer it is uh full of graphs which um are made using riskof software he has pictures from time to time of his equipment uh including uh various bits of exciting electronics that he’s taken around in his car um a portable Data Logger which
You may probably won’t be able to see but it’s running riskos and um yeah and then from time to time he has can’t find any now there about three or four uh Maps produced with risk SM here’s one uh and you you will won’t really be able to see this very well
Which is why I’m just about to do one of them on um here so a few years ago now he contacted us and said you know I’m I’m measuring I’m measuring values as I drive my car around um the area and I want to plot uh points on the map including
Colors um and uh can can you suggest how to do this so we thought this was quite interesting and um we added some features to risk ASM to make it easy so here’s one of his CSV files um you’ve got the number of the reading latitude and longitude and from
The um header of the CSV file risk has worked out that you probably want to load those into the latitude and longitude field in Risk SN uh we’ve got a value which is suggesting we might put in the pin name um and then what he’s done is he’s
Generated uh an RGB uh color number and uh that those can be loaded in I think we’ve got uh the ability to have it as hex as well in RR ggbb form to be a little bit more crossplatform um and there is also the option of
Setting if you want to the diameter of the pin that gets plotted um I think all of his examples are four in this particular case but we added a few features like this and if we just load this in uh we’ll see um what sort of map it produces try
And get the window back to full screen size nearly there um there’s a lot of detail on maps of the Netherlands because they very conscientious mappers out there yeah all the agricultural uh land uses and lots of detail about the houses um I’m surprised it’s taking
This long to load actually I’m sure it was a bit quicker earlier D me computer’s about to go hope not this is very slow for such a fast machine I don’t think this is a reflection of uh being relayed by a VNC this is funny going on
Okay well apologies for this uh shortly we will uh get some results there we are so as you can see he’s he’s he’s driven his car around a particular route and uh with um an exciting piece of apparatus on the uh roof rack with an aerial um
And um and with a a posable riskof machine on the passenger seat which I have to say I was a little bit alarmed and then I remembered it was leftand Drive um he has taken readings of uh radio interference B of some kind um which goes on this map so yeah it’s it’s
Delightful piece of well an amazing piece of work because it’s all written in English as well which is absolutely I I can’t believe how just how detailed and Technical this thing is and uh you got a screenshot of some of the software he developed for analyzing things um and
Um yeah so that was quite a nice surprise um we’re we’re always interested to hear how people have been using uh our software and uh uh that was really quite a an outstanding one so anyway um moving on um I’m just going to quit this in case something has gone
Wrong um and we’ll uh we’ll run it again now I don’t know how many of you will have been uh at the uh R go uh talk that we did back in July so I’m going to try not to repeat too much from then uh
But there is a little bit of um stuff that uh is just worth setting the scene so if we uh we head into uh Wakefield um get into the city center not that very many of you necessarily close to Wakefield at the moment um now that we’re all online
Um you’ll see uh that the REI application which uh accompanies can accompany risk M uh has had Food hygiene ratings added uh you can optionally put in search term um and it will then go and have a look uh for oh I tell you what I’ve gone
And um told it to limit it to 15 results as well that doesn’t help um’s let’s go mad and just get loer than right so um the Food hygiene people have um so surprised how few there are actually there should be all of those pubs perhaps they don’t do food never
Mind um so the Food hygiene people have um an API which allows your computer to talk to them and ask for details and you’ll see there’s uh a pleasing number of fives uh in Wakefield which is the best and um and I think the colors I seem to
Remember are for different sorts of establishment so if you look at the pins and tracks window you’ll find uh the red ones are restaurant Cafe canteen uh the blue ones are caring premises uh green appears to be various sorts of retailer um orange is a Pub bar or
Nightclub um so it’s just an example of yet another piece of information you can get and of course um maybe if the area isn’t mapped so well there might still be Food hygiene ratings which will give you a clue as to where to go to get something to
Eat and the other things that we added on to reky um we’ve had for a long time uh the ability to read um the weather forecast um and here is the weather forast for um let’s look at tomorrow shall we looks a bit black cloud uh for most of the morning
Um but opening a map in order to then get a weather forecast of course is not the most convenient way to do it um so there is now on the um icon bar from for REI a weather option and you can then put in uh where you really are like
Let’s let’s see what install for Vince’s part of the country and we’ll see that uh Bristol looks a bit nicer actually doesn’t it for tomorrow um so that way you can get up the weather forecast without having to pull a map up first um and I I skipped over that and and
Similarly you can do that with street view if you want to pull up a um pull up a view outside your house or as a particular address um so I don’t know if we if we wanted to look for um H where shall we go um how about uh panas station oops London
Um it should then go oh we’re actually inside there we are um probably won’t navigate around so well once we’re inside there was a little cross yes we can move along a bit there we are oh what how late is the train um J good that’s the the urar
Departures isn’t it Paris and uh the food looks quite nice anyway there we are um now uh the point is with this that um Rey um is using a new facility that we introduced in the summer uh which comes with nominatim so nominatim is this little helper application uh which
Um comes with rism which uses the online um nominum database from open street map which is all of the names of the places in open street map um and you can search nominatim through an API and call stuff up now nominatim has now gained the
Ability to have to be used as a plugin in other applications so if I went and actually had a look at um if we go into demos and open Rey’s templates file for the uh street view window which one it is actually in it view in it view that’s the one so
This is the this is the window for opening Google Street View you’ll see this in the templates file for REI there’s actually only a box here which has a display button because in fact all of this area uh is provided by nominatim so there’s a little protocol uh which we’ve documented in
Nomin Sims help files um where where you’ve got an application and you’re opening your window you can say okay in this area of my window I want you to put up a um a place selector feature please and um nominus SYM will then overlay a child
Window on your window um and it all behaves pretty nicely um so not only can you type in and search online but you’ve also got access to the whole um gazeteer that comes with riskos SM so this is coming straight off your disk um you’ve got a common uh youve got
A recent places uh thing here which remembers the last 10 places you looked up and of course that’s across all applications so you’ll get the same ones for the weather as you will for the other things and that may or not may not be a good thing um and what’s more you
Can do fun things things like um supposing you’ve got um picture uh which has um geographical data embedded in the jpeg if we if we drop that on there um possibly does it maybe these ones don’t have thing a there’s one yeah you see it
It’s h it’s got the I think some of them don’t have actual geographical data that was why do I keep them in there no good for any demos uh and then that will then bring up um which one was it bottom left one bottom left so we can see this was
The slightly bendy picture of uh darham Cathedral that someone managed to take by moving the camera um and uh this is uh the reality on a on a rather dollar day um in approximately the same place um which is quite impressive um so that can be built into
Your own applications and um what you then get is when when the user um has um selected a place you then get sent a little message which contains the coordinates and uh possibly descriptions replace that kind of thing if there is one from the data source um and we’ve used that of course
In our relatively new application A to B uh where you have more than one of these selectors in the same window so you’ve got this thing for selecting the the the data set you’re going to use uh and then you’ve got a place selector and
From one to um and as you can see there are different options you can have with these place selectors uh you can have a you can have a flag if you want to allow people to drop something onto the map to say I’m wanting to start my journey there then
You can do that and when the flag gets dropped on riskos uh a little message gets sent back to nominatim to say uh it’s being dropped on City Fields like Field West Yorkshire and then that description appears in here uh and then a bit later
On those details will get passed to A to B which then does its work and probably uses these names again itself if you add a via points then you get even more of them um do you think I need to do an actual yeah another another place oh okay well
We’ll go from here to here that’s a d so uh find roots and oh well you shouldn’t have done that because it’s now found a bug well I don’t know what version of the good thing is that as this is being recorded we can watch the video again
And try and reproduce the problem it may not be the most recent version of software this was not going to be part of the demo right okay so moving on um the main thing we wed to talk about as we’re explaining in the uh publicity which I
Hope you saw is some of the more advanced uses you can make of riskos we’ve seen that a bit of that with the CSV file but now we’re going to be talking about other ways that you can communicate um with risk orm so police data is something that I worked on with
My uh one of my sons and um it uses a police API I’m just going to go and clear out these pins and tracks and I remember asking for an enhancement for RSM especially for demos where there would be quick way for clearing out all the rubbish uh especially when the mouse is
Going funny I thought this mouse wasn’t going to be misbehaving CH com hang on there we are right get rid of them delete get rid of all the food and the weather because we’ve got something much more scary to come um so police data uh goes and gets information about crimes
Um so if you click on crimes within map area and it’ll show you the last month’s crimes um which I have to say really does get quite alarming um and um yeah I didn’t test it on Wakefield beforehand but anyway there’s 886 in that area um again you can see
More details should you wish to um on the pins and tracks window so you’ll see the the orangey ones are antisocial behavior um then a lot further down we have uh other theft in green vehicle crime violent crime there’s an awful lot of blue actually isn’t there um and uh
Oh and criminal damage and arson and burglary so there you have it Al and bicycles left only four bicycles left in November 2023 um possibly safer to be a bicycle than this is to be a person from all the violence um so I better clear all that
Out again um because that really is clogging up the whole place and the point of this is is not to scare you witless uh because I bet this was all happening you didn’t know anyway and you’re perfectly happy um the point is that we’ve written this in basic and we’ve released it on
Our website and we’ve put lots of nice comments in and you can open it in zap or in strong Ed if you prefer depending on how you like your colors um and you can see how it all works so we’ve documented and there they’re on our website in a in a nice um
Documentation area um if you go to our website developer resources there is information about the protocol uh to allow you to talk direct to risk USM and send data through it tells you a bit about what you might do and that’s where you can get police data
If you want to um so this gives you an example of how you might use an API from basic to gets some stuff off the web it has a not totally complete but good enough for this purpose uh Jason passer Json is a data format very popular data
Format so there’s a Json passer in basic in there and it then talks to Risco and passes the the data through so this is just so because I think the easiest way to learn about programming often is to S of follow someone else’s efforts and look around with it and amend it and
That’s a good way to get started so that is one that we’ve released and we did demo back in July at rol another little one which is called map Walker and for that I need to go somewhere else so here we are so map Walker is written in
Python uh now I don’t know whether Chris jnes is here he said he might Hope to come along but uh this is all based on his amazing efforts to get not only to get an up toate python orted to risk cost but also to write a toolbox library
For python for for for risk cost which is really impressive um so map Walker is very simple you just click on the window and it pops up a place selector just like uh which is coming from from nomin and we decide where we want to be um I’m going to go to a
Random place um and I’ve popped in a post code that was another thing you see you can type into the place selector just a post code and we get a uh window here with the pin on and then these little arrows allow you to move the pin around obviously it’s a
Very crude way of getting about but it’s just to demonstrate um it’s a little demonstration of how to use the play selector how to then send the information through to rism to open a map how to then carry on talking to risk USM to move the point about and all of
That’s done in Python so it’s also a useful demo of how to write to python a very simple uh toolbox uh application in Python um I’m not going to well let’s just go inside the code if I can find it again uh We’ve not released this one yet
And the supplies to the other python things I’m about to show you but that’s partly because the the the library is changing quite has been changing quite a bit over the last few months and it’s hard to know exactly when to when to release it when it’s all stable so we
Hope to do that very soon uh but the the application um is actually very short there’s not a lot to it um and uh it’s very neat to have all of that’s done one of the great things about it um one of the great things about
Python is the way you can uh build little uh Library files which can do nice little purposes so the geodata messages which are used to talk to risos uh they’re quite complex there’s a lot of them and they have a lot of parameters and you’ve got to do things like converting
The um the data all into the right formats so this file here um this geodata python file is something that we can plug into any application that we want to uh for talking to riskos Via these geodata messages and uh if I just move down we’ll find let’s find a really clever example
Um so yeah here’s one um if you’re a an application like police dater or REI that has some data sets available for use then when risos M opens its find web photos and Geo dat um dialogue it needs to put up a little description for the user of all of the
Data sets available it does this by sending out a message saying what data sets do you have and all of the applications reply and they give a title and they may also give some extra data so if you hover over Met Office weather there you’ll see at the bottom of the
Window just above the fetch button it says weather forecast on the Met Office and collisions stats 19 it says Rose collisions based on stats 19 data from 1999 to 2021 um and and so on so um the message has to contain a title and also a description and because I
Didn’t want to limit the length of the title uh particularly I didn’t say when I defined this protocol I didn’t say well you’ve got 20 characters for the title and the rest is going to be description the title can be as long as you want and then the description
Follows immediately afterwards with a null bite in between now that’s a bit fiddly to actually enter into your um message block um it’s okay if you’re using C uh or basic but it can be very fiddly with python but the great thing is that we can Define uh this way
Of handling the message and when we’re creating one of these messages we just basically say that we’re creating a a data set details message um and then we set the values um just by saying uh the message message. title equals whatever and M message do uh description equals
Whatever um and what happens behind the scenes this thing here is is uh defining the description Setter so when we say message. description equals something it takes the value uh it reads the title that you’ve already got and then it calls this internal routine to set both
The title and the description and that takes both of these things and shoves them into the buffer in the right place so that one’s following immediately following the other and it also sets the message size in automatically so that the message block the size field at the
Start of the message block is set to exactly the right number for transmission as a message efficient to the other end um and this can be done for any properties that you need to Define in a message and so we’ve done quite a bit of work putting all of this
Together there a few few things there we got little notes about how we could improve it a bit so I’ve really enjoyed doing uh this kind of bit of Plumbing behind the scenes to make it easier to use the the messages right so here we are getting on
To the new stuff and we’re only uh and it’s slightly over half an hour in um and there’s a moderate amount of new stuff so uh GPX player GPX player is another little python application we’ve just done um now um one of the things that um is
Quite fun with rism is you can hook it up to Chris Hall’s uh satnav application I’ll wave at Chris because I know he was there but I can’t see see any of you so there we go um and if uh you know Chris has brought uh his uh
GPS devices along to lots of shows uh but of course because none of the user groups have yet arranged to have a show on a moving barge or on a train um or even an airplane you I mean why don’t we hire a coach or something it’s not
Really been possible to demonstrate uh satnav moving along uh the River or the road or whatever uh and the map updating um which is a shame now you can record the um the track the positions and Chris has done a bit of this um and in a few different
Formats um but from basic which sat have is it’s a bit fiddly to take an arbitrary XML file and uh kind of replay it so I’m just going to go and find an example XML file um it’s probably one of these so so if we just open this you’ll see
That uh GPX files which you get from recording them on your phone or other kind of devices uh they’ve got a lot of stuff in here and they don’t have to have line breaks in exactly the same places and there could be all sorts of spaces in there or
Not in there and you’ve got to cope with these time strings which are quite involved and I think writing some basic to do that uh well it just seems an awful lot of effort because it’s just so complicated and you’ve got to deal with a lot of cases you know you could write
Some basic but to get it to work with any XML file any GPX file like this uh reliably would take quite a lot of special cases and you know very careful work um now uh python has an XML paa available with it which is very good and very efficient um and
So uh what we’ve done here with GPX tracker uh sorry GPX player um is uh write a little thing which will uh let’s just try that so it’s going to draw the map first which will replay I tell you what so it’s still got up there I think
It’s just trying to show both of them but we’ll oh dear dear dear dear right she crit there quit compter oh no yeah sorry there is a definitely a definitely bad bug in this uh version of risk so we will uh just uh relaunch in a
Moment um perhaps now is a good moment for people to ask questions or make observations on anything so far while we’ve got a minute while the computer’s restarting this is a real Peril because this is really hot off the um compiler this program um right where Rings a reconnect
To the VNC server here we go how many people uh do you know of that are using the messages function in R Sim I the only one I’m really aware of is you Chris and this is partly why we’re trying to make a few more example programs to inspire folk um I think
There was uh yeah do you want to stop um oh yes get the resolution right um it was that one it was 1280 by 1280 by 720 I was doing uh yeah um I think actually I’m not quite sure about that cuz there’s certainly we’ve had some correspondents with someone who has a
Little uh Radio based GPS devices which get put on um sailing dingies for races uh and keep track um so uh yeah you got risk assm running right and we need uh we need GPX player and we need a GPX file which is somewhere in here uh GPS stuff Durham so let’s try
Again so what I’m doing when I drop this on here GPX player is going to read the file and it will send the first point in the file through to rism as a place that where it wants to have the map drawn and then it is going
To replay the next locations as as it’s going to play through the file at the moment it’s doing it 10 times speed just to make it slightly more exciting and while I’m doing that one I can actually get another one going uh except of course as I’m on VN
See I can’t get the icon B popped to the front like that so let’s uh so um if we get another one going like this uh this one starts off and will’ll play along uh like that um Etc now the idea of this is that if
We get uh some nice recordings of um real data from uh car Journeys or train Journeys or whatever then we can improve risk USM a bit because at the moment if you have a track which goes off the edge of the map if the if the signal goes off the edge
Of the map it RIS go doesn’t really do any prediction at the moment and think oh I better get the next bit of map ready uh you the whole thing shifts along you get a great big white space with no map on for a while while it’s
Loading the data and then rendering the map and all the while you’re you’re driving along and you don’t know where you are or you’ve got this point that’s moving across a blank canvas so um maybe now we’ve got GPX player we’ll be able to play some of these things through as
Though they were coming through from a real live uh data source like satnav um and be able to get to risk and to behave a bit better but we’re not promising anything it’s it’s mainly a demo it’s mainly a demo at the moment and let me
Just go and show you just how simple this demo is so again we’ve got that geodata components file there to help make the messages easy uh We’ve also got a little reporter file and that’s just to send reports if we want to use the reporter module from Martin Aon just to do some
Debugging that makes it very easy to send little messages through uh which reminds me I meant to double click that boot thing there to actually boot reporter uh and then this is the Run image and it’s really very short that’s it that is doing all of
That stuff uh so let’s just be we’ll start at the bottom this says start up the application via this function called GPX player the GPX player function says initialize via this directory and then it declares various handlers so there’s a Handler for the quit function which basically says quit
The program there’s a Handler for the program information about to be shown so when we move over here it then puts the right version number into the box so you don’t have to remember to edit your template every time um there’s the data save message so
Data save and data load messages are the important ones which actually de deal with um the um the loading of the loading of data from filer or from other applications and uh all that’s happening here is uh we read the message uh we set the various values and and again these
Are these are done in a very simple way you in basic you’d be splatting it into particular blocks in the in the in in the memory uh here you’re looking like you’re just setting a value message doyou ref equals message. myy ref message. code equals dat to transfer messages data say back
Leaf name is wimp scrap and then send the message back um and um then you’ve got a a null pole Handler here which is basically saying wait for the next time interval that we’re meant to be waiting for and once we’ve got there play called the play function and the play function is
Where a lot of the effort is going in and that’s uh reading through the file it’s it’s progressing through the file working out which of the various streams which could be happening simultaneously which of them are going to move and sending the appropriate message through so the message through going through is
Uh where is that oh it’s in this transmit data function so we just read the latitude and longitude and transmit the data with that function um and I ought to just show you briefly the stuff to do with reading the actual GPX file so you have to declare the name
Spaces of the the XML and then we that’s all you do to load the file you use this thing called element tree pass the file name and that’s loaded it all in and it’s now then available uh like an object in Python to to read through and to find bits from it
And to um and we’re also using a very nice feature for reading the times where’s the Times Gone I think there’s a function further up yeah there’s a function called read time so that check to see what format the time is in and and processes it through one of a couple
Of different slightly different versions of a function uh to read the time stamp in seconds it’s not a riskof time stamp in this particular case because all I want to know is how we we when we drop the file on the on the icon bar with
Setting the start time as being the time you drop it and then it’s just a matter of how long do we have to wait for the next point in the in the journey um so we only need to know the difference in seconds from the start time
Uh yeah so that’s it it’s quite nice um if you were doing that fully you know if you’re doing that with basic then your date times would be a bit more fiddly to do you could use the operating system to do that um the operating system calls give you five bite uh time
Stamps which are a pain to work with uh you usually kind of forget some of the data and turn it into four bite thing that you can actually do arithmetic with um I think probably the uh the times that python is giving us a floating point and but I wouldn’t know you know
It just works um so that’s very nice anyway uh the next one um we’re going to do is uh water levels now I think I’m going to go somewhere else so oxid oxid sh I think is the one I want um and we have a water levels application here now
This is uh more along the lines of here’s a traditional let’s talk to risk smm uh thing so we’ve now got water levels uh and this is using the environment agencies API now apologies if any of this is a a touchy subject at the moment with the floods uh but um
This is very useful information it’s all the water level measuring stations in the country are available through an API from the environment agency uh so here are a number of places that they’re measuring data in Oxford um and what we can do is uh hover over the uh pin and
Control click and it will then go and fetch the last seven days worth of data sorry there’s a reporter window here because it’s still in development so you’ll see here we’ve got uh new Botley measuring station and I’ll just uh drop that onto don’t know I should really drop it onto
Zap because zap is very temperamental about CSV files so you see you get the date time and um a number for your water level in I presume a meters but it’s hard to know what the base is now of course you might want to compare a few
Of them oh we don’t want that one that may go wrong horribly bother yeah there are a few I should have prepared this properly there are a few where the date time passing has not worked I think they’re a slightly different type of uh measuring station
You’re getting all the bugs today have I done that one is that SEC stream no I haven’t done that one that was that was SEC stream this was new botle okay but that one’s just as bad sorry try which one the one on the Char charell okay let’s have a g the Char
Uh up here yeah tell you what where was I going before um I think I was doing I think I was doing nothing actually um we’ll find some around Nottingham because they were reliable around there so that one’s got to get have a bit more worked on it yeah um
It’s gone and quit hasn’t it let’s have another game so um what I was wanting to demonstrate is oh yes a bit further out than that we’re just going to fetch them um water levels on 21 points and there was certainly some round here which worked okay so there’s Carlton and rainfall
Station River Trend now that’s an interesting one um oh you know what I wanted to show you uh all what’s going on there so so Carlton the message came through from uh water levels say just saying it was tell you what we start again with this no we W um
Wimon if you’re a programmer is a brilliant tool it allows you to uh see all of the messages which are going on between different tasks and see what you’re doing wrong which is absolutely great so um when we click on have we tried that one yet um when we click on
This sakur is Ling Arc you’ll see that the message that went through says Dave Brook notingham I think it should have used that name I think there’s something wrong with this right okay something definitely wrong okay so so the message the message that comes through from water levels gives the name of the
Station D Brook Notting him consist Notting and that’s meant to appear up here but that’s gone wrong that’s water levels called Risco that’s calling it t oh sorry have we not got the messages going in both directions I don’t know theyit lost here anyway right the
Point is the point is I per i’ rather not show you that because I’m getting totally confused um the point is that um water levels G gives the name of uh the place the water levels are taken like Carlton or saak Lane Park but for rainfall stations the name that it
Transmits through to um uh risk osm is simply rainfall station that’s it when riskos sends the message back to water levels to ask for the detailed data to be fetched um risos sends the name uh sends the description of the place saying River chent Nottingham or near Spring Lane uh Lamay
Um yeah that’s what’s going on so in this particular case where is it where’s that window gone so riskos n’s description is daybrook Nottingham City of Nottingham now if it’s a rainfall station water levels will say hey you know what our description of this in the window is pretty rubbish and it then
Adds on this information that comes from rism to make it a bit more meaningful that was a very longwinded way of saying all of that so you can tick and untick these boxes to decide which ones you want to include um I wasn’t really wanting so many rainfall
Stations I do have to say um we will try and get oh that’s another one never mind also it gets a bit embarrassing when you get more than five because the window doesn’t get bigger yet um so we’ll just go with this and um I’m going to drop it
On there um and let’s find fireworks and load it in um and so it’s overwriting blank cells let me go like this and then we go up again and then we go down again well carefully we stop there and then we go for a line chart
Create and so you can then get this uh rather nice chart that unfortunately has the key right over the middle but it moves out the way um and the rainfall stations are on there jumping about a lot because that’s what rainfall stations do and then the um water level
Sakur is laying is that yellow one down there Caron’s the red one yeah I don’t know why it’s so it’s got a lot of um wobble in those readings perhaps something’s gone wrong um so anyway you can go and gather lots of different sets of of water
Levels uh from different stations and do yourself some nice charts now obviously um there’s all sorts of enhancements that you could do to this you could have some sort of setting to make sure you can say how many days worth of water levels you want to read um but again uh
This is being done using um Python and uh this time it’s using a uh Json uh paer because the data comes back as a Json file um so again you got this stuff here um which um there’s the API call it goes off to environment data go
UK uh and the latitude and longitude and the distance from it there there’s they’re the ones we want to read um and I’ve put the the stuff to do with the actual reading the information from the different measuring stations into separate file to make it neater
And that uh has a different URL in there somewhere or other to go and get uh the last seven days worth of readings there we are there the URL is built up from the ID of the station readings uh 700 quarter hour uh readings makes about um 7 Days
Actually um yeah so again it’s it’s quite good and um just to put a bit of perspective on this um I think I started working on um uh GPX player and water levels um about a week and a half ago and I’ve not been doing that solid um so it was
Quite quick to put this stuff together and a lot of that was sort of wrestling with the toolbox which I’m not very familiar with and trying to work out how to do things in Python which I’m learning as well um and it was but it was quite productive um so really I’m
I’m really quite keen on uh the idea of using python for risk loss applications uh because for one thing there’s masses of tutorials out there for how to do things in Python there’s lots of really good um libraries and things built into it to do things which
Um you know you don’t want to have to do all of the work building a Json P or building an XML PA it’s just a way of getting your data in so if you can just tell a standard component to read the data in and then you’ve got the fun of
Doing what you want to do with the data that just makes this a whole lot more enjoyable anyway the last one we want to show you is something more fun and uh over Christmas I was trying to thought out I’m just going to unshare the screen
If I can find the right bits and bobs for the moment while get some else set up um well perhaps we’ll pause share that’s right while I go and look for things on my machine um I meant to go file explorer um yeah so do you want to talk
A little bit about the audio device that we used to have Hillary I can try um and and why it went wrong and what I was doing yes uh we some years ago when our CD player stopped working we bought a new device which could rip Sate CDs onto
A hard dis and then we could access them through its own interface um however its hard dis went wrong at the end of last year um happily we had a backup of most of the CDs we ripped um so we’ve been trying to find an alternative way
Into accessing our CDs as we don’t want to have to put them all onto another device and we dug out a Raspberry Pi and found um with Linux yeah a Raspberry p with Linux and found there was a database system I don’t know what you call this thing you
Yeah I’ll do this bit so I’m back to back to I just about found what I needed to find um so yeah uh we’ve got um yeah um so there’s lots of different options if you want to build a an audio player and streamer and stuff on the rest P
There’s lots of packages you can just install from Linux which will do all of that and uh very you know but’s so much choice in fact that we really didn’t know to use um and I was starting to think well actually you know what we’ve got this
I’ve already got this database of all the CDs I’ve even built a PHP web interface to it um what I just want is a command line way of of playing music from Linx so I can build my own player because that sound like a fun project um
So I searched for you know music player command line Linx or something like that and um came across what I didn’t know existed which is something called music player demon and uh music player demon um runs on your Linux box and you basically pointed as all your music and
It reads all the metadata it can from the music files assuming they got tags in and things and you can then talk to music player demon with a whole range of different clients so uh I’m just going to bring up if I can get the right stuff on on view
Um let’s get rid of that so sorry about this is just too many windows open all over the place now um and the zoom controls are in the way um my phone’s gone off again okay um we’ll be there in a minute right okay let’s bring VNC back on view I will
Share the screen in a moment um so uh resume share that’s the one that’s the one we want um and then we need to have this thing that one there so uh hopefully you can all see the screen again is that all right yeah see this good great so this bit in
The window is actually from my uh phone oh turning around um and this is a uh a music player demon client for Android um and uh you know I’m just paging through the music um so we’ve now all got this installed on our phones and
Uh you can you can tap on the on the music and uh choose what you want to play and off it goes and you can control I just jump to that one um and uh you can control the volume and all that kind of thing you
Can build up a playlist I mean we’ve got various BBC Radio podcasts uh and put on it using a python script stuff like this so Mator can I interr we’re still seeing the um the rism screen ah you’ve not got something in the middle no you were sharing the rism screen earlier oh
Whoops wait a minute wait a minute new share so is it I could do that but I thought I was I was I’m sharing that right let’s share the whole screen and then you’ve got right okay so you got both now I hope that’s not too distracting so here is
Because I do need both of them for later in the demo so let me go back again uh so here’s the view of the of the artists and whatever you know and we can go into one of them um and um it’s got the cover from the CD the picture of the artist
It’s loading from an online database I think and and you go into the you go into the album and you you press play uh and then there’s this control thing at the bottom and you can change the volume uh you can jump to another track Etc so
We’ve all got this installed on our phones now and so far we haven’t had Wars with people choosing different things all at once uh though anyone in the house would be able to change what people are listening to which uh I’ve told I’ve told other family members if
There’s any trouble I’m just going to change the password on the system so there we go um so this is all very nice by the way there isn’t a louds speaker in this room which is why you can’t hear what we’re playing yeah in fact the amplifier upstairs hasn’t turned on it’s
Only the streaming devic has turned on so no one is being disturbed by this um and yeah if I just uh go where do you get to playlist bit um yes if I go there to playlists you can build your own playlists and we’ve got a load of podcasts here um and I’ve
Got a python script that can load download download podcast list uh from the BBC website and you can click on them and it’ll download the file and play that if you want to or you can go into uh internet radio uh play that um yeah so it’s all quite
Versatile now let’s um see if we can move that to one side oh wait a minute so this bit here is the uh what we’re currently playing and that’s uh that’s there so we thought well uh actually as this is an open protocol which uh I don’t know whether I can wait a
Minute trouble moving the window there we are let’s move this to the side okay so that’s over there um because it’s an open Pro protocol it’s all documented I thought well why don’t we write a little MPD client riscos in Python just for fun so here is uh MPD
Client uh if I left click on it you’ll see it’s opened up here um we can see that it thinks we’re partway through uh storms in Africa um if I click paused uh then the position changes to Red if I go back to this one you’ll see when my
Phone wakes up uh that it is not playing either um if I click play on there it’ll start playing again and you’ll see here it says un paused over here change the volume here the volume will change over on the riskless one let’s move up to evening
Falls and the track name has changed over there so that’s all rather nice um so um providing you’re all not too bored if anyone’s bored you can always leave what we’re going to do now very quickly if I can find the right piece of paper is uh just demonstrate because obviously
This this MPD client thing that I’ve written is is a bit kind of basic it’s just got a tick boox for plaus and it’s got a square box here for play well the great thing is of course I have prepared some um Sprites with some nice
Buttons we just need to put them into the application so first first of all we need to load resed and um we’re going to open the control window and look at the gadgets and what we want is one of these button thingies which is basically fairly generic
Um oops uh let’s put that back there this is not going to be a brilliant um piece of work and we’re going to set the client Sprite area the Sprite is going to be called uh previous what else do we have to do um ontick text tick
Sprite um button type three otherwise it won’t receive any events um no border you can add the help text this track um I think that’s it is that right I’m you I’ve got that so there’s a little and you see it’s got the uh it’s got the little icon it’s great isn’t it
And then what we do I now going to hold down the shift key I’m just telling you that because you can’t see me doing it and we’ll we’ll drag that and copy that drag it and copy it and we’ll drag it and copy it and we’ll drag it and copy it to roundabout
There and then we’ll go in and we’ll call this one what’s the next one over here play What’s Next pause pause stop and next and you’ll notice I’ve left help text the same for all of them which is going to be fun but I’m not going to
Change them now um and then we save the res file save save the rest file so that’s that bit done uh and then we need to alter the run so near the top we need to uh we need to get Wim events mouse or whatever it is yes from toolbox uh Mouse
Click um oh Dr wrong thing underscore click import Mouse click so this is importing a little thing which uh helps python understand Mouse click events in the rim um then we just need to go down here and we’re going to say first of all we’re going to turn block editing
On and we’re going to say component equals not x a and then we’re going to do um b c those those are little numbers that you might have noticed in the res file which indicate they’re sort of like the icon numbers um uh in um they’re the reference things that
Will basically tell the program what you collect on and then we have previous and then bit further down now you’ll see here uh these little functions are the ones which are called to um actually send the commands through to the MPD player um and we’re going to need a few more um And like that it’s not spelled right I like recycling letters where I can happens that there are very intuitive names for these uh commands in the MPD system um so these by the way they go and talk to this uh send command function here which does the socket connection using socket
Functions which are pretty standard stuff and there’s a lot of documentation on this in Python but it’s very similar to how you did it from basic off from C so that sens the command and gets the stuff back again um and then we need to go down to
Here and if you turn the page we’ve got so first of all we’re going to say we’re um writing here a wimp Handler for the mouse click event and we’re defining a function called Mouse clicked we could call it anything actually because actually the function isn’t directly called by name
Anywhere uh it’s called from the toolbox Library um and um but it sort of makes sense to give it a sensible name um and the colon means here’s the block of code that’s this part of this function python is very insistent on everything being indented correctly because that’s how it
Understands uh where the blocks of code and the functions start and end and the if Clauses is entirely by the indentation which kind of forces you to have to uh do your indentation really neatly um so if you don’t like being neat you might not like passing too much
I’ve done three yes okay I need to do four I’m not I’m going to miss out the report line um so what we say here is if component so I’m testing the component value uh with with the right spelling um equals next component oh yes and it’s equals equals
In languages like Pyon and C to test things like that and we say next and that calls the next function and then we say l if um component equals previous component oh it’s equals equals yeah I good job I’ve got someone doing my proof reading over my shoulder uh I’ve also noticed another
Little problem I’ve not got the right indentations there would be upset and then um we could then do the play and the stop and the pause but I can’t be bothered to do all of them now uh and I’ve just missed out something here Uh so so when we uh when we when we’ve handled an event like a mouse click we return the value true to the library and that says look I’ve dealt with this no one else needs to have a look in on this particular uh event um I’ve handled this click
Um and if we haven’t handled it because it was something else then we return false and the toolbox system can pass it around any other parts of the uh code so I’m hoping now sorry I did just save it it has this oh it has hasn’t it contrl F3 is up there
I must to press something else no I don’t know either let’s hope it didn’t introduce a bug uh so if we go back to there and run this again then we should be able to find uh that aha if I click on the previous one it’s going to evening Falls and if I
Click on the next one it’s going to River and then back to the long ships let’s go back again and we should find that on the uh on the one over here which has gone to sleep again um you’ll see we’ve got uh River if we click back
There we’re back on to evening Falls and it’s on evening Falls here now of course that’s not really very risky is it because we’ve clicked but we haven’t adjust clicked ad just click to go the other way is absolutely essential if we’re writing a proper risk application so we’re going to put
Another little test in here uh which is if event. buttons and for that’s doing a Boolean uh check if event block buttons and for else uh oh yes Al if being really careful here and if event B buttons and one which is the adjust button um
Previous um and and then we have the return show bit which is just fine and similarly we can take that code and put it down here copy that to there and uh just by changing those numbers around uh I can make that button go the other way contrl F3 to
Save uh now actually come to think of it having having made this alteration I’m now going to demonstrate I suppose I can yeah you can’t you can’t tell you can’t tell which Buton I’m clicking uh but I’m keeping my mouse in the same place and finally enough we’re
Now going back to evening Falls so I think that’s proof to you that um I can go to and from with this uh with this thing um so that’s added some buttons and some of them aren’t working but it’s going to be very easy to to make the rest of them
Work so I think that’s all we have prepared really I hope that’s not too long or too D um and um I don’t know what you do now do you have questions or you just tell me to get lost have you questions have you seen the article in the r magazine for
December about term using risk osm uh I I’m I’m afraid I’m not a subscriber to rock magazine so I have not ah it was showing how to use a CSV file to generate a file that could be dropped into the National Library of of Scotland
And show the detail that uh in the same way as it would show in risos with colors colored markers and what have you because if you drop a CSV file into rism um with various colors set for the pins and things and then export it as a
GPX it’s in the right format for the NLS maps to know what colors to use and what size pin to use 25 in map I’m really surprised about that because I thought you saw the pin colors in a custom uh uh I think pin colors might be I maybe the pink colors are
Standard yeah okay oh that’s a nice that’s a nice piece of work yeah so it’s really good to hear people are writing up this kind of stuff I’ll send you a copy of the newsletter so you can see the article that’s very kind I don’t know whether Chris Johns did
Join us as he I’ve got uh yes he’s on he’s on he’s online oh great well uh yeah he’s been very helpful and it’s been uh it’s been a pleasure exploring the the python stuff I’ve been doing a bit of python at work as well so uh
You’re still sharing the screen I am still sharing the screen that was just in case we needed to demonstrate anything but I can take it off if people prefer yeah so uh I think one of the things I need to work out um and check with him
Is what the best way is of distributing some of these things because I’d like to get them out uh available for people to download and explore because it might inspire you to write your own applications and as you can see it’s it doesn’t just have to be with risk assm
It can be talking to it doesn’t have to be even talking to another computer but these examples I happen to have done have all been networking in one way or another with other things and processing data so um uh yeah I’ll I’ll I’ll check I’ll be checking with Chris I hope about the
Best way of packaging it all up uh or making sure that the right version of the Python library is available and then I’d like to get them out and uh oh it would be really lovely to have time to to write a few little tutorials on how to get started with
Some of this stuff because it’s actually once you get into it uh it is really good and pleasureable to program in you know it’s not fiddly you know this it’s it’s really very nice very modern very upto dat lots of facilities and for writing little things like this that
Aren’t doing masses of data processing it’s excellent because you really want to be able to keep that um coding and testing cycle down very quick development that’s one of the attractions about basic is because you can very quickly test you don’t have to compile it or anything like that and the
Same is true with python and it’s very very nice um if you’re wanting to do lots of big data processing I think SP still has the edge partly because python with its built-in libraries and so on um those libraries are assuming that you’re in a in a multitasking in a preemptive
Multitasking environment so if you were loading some gigantic file and pausing it the whole machine would lock up on riskos until that was done um because it’s written in a way which assumes that you’ve got a multi a preemptive multitasking thing that’s managing your your different tasks um so you have
Might have to write things in a slightly different way to get them responsive on risk cost but it can enable you to do some things which would otherwise be quite really quite difficult to do um I wouldn’t have I might not have known how to start on on doing on doing some of
These things if I was doing it in basic or or C it would be quite a lot of work to get going uh where is there’s masses and masses of help for python on the web and lots of really good tutorials and a lot of it is really very applicable the
Basic processing is really applicable we just need a bit of documentation about the toolbox uh Library um and then you’d be well away writing all sorts of things uh really nice stuff I gonna say there’s been a few comments on the chat oh yes have on yeah um
Yeah lots of good comments from Chris I better I read a bit more um yep yes yeah I think indeed it it the the the event Library it really does shorten things development Library there’s so much is in there that just does what you need to do um and uh yeah
I’ve not really had much uh experience with the toolbox um I find the toolbox a little bit frustrating because uh even with the toolbox there are things where you think oh right I’ve just got to go back to using the wimp stuff because they they never really provided anything um
So uh but the the saving I meant to show you the saving in um let’s just find it for um where are we the saving for water levels um so yeah here we are um where it is that’s I to do a search there we are
Right so I’ve got over vis a code which um there we are station. build CSV so that code whenever you tick or untick any of the water levels on that save as window that this gets invoked this update CSV function gets invoked and that rebuilds the CSV file uh ready to
Be saved it’s not saved yet it’s just in memory it rebuilds it uh and then what we do we just simply tell the toolbox that the address of the data that needs to be saved is that and the length of it is is is this and because of the way
I’ve set up the gadgets or the the the sav as window um I’ve told it you know you don’t need to talk to me for saving this actual file and the toolbox will then handle all of the stuff to do with the dragging and dropping it and it’ll
Use Ram transmit or or saving via a temporary scrap file depending on what the other application wants to do and all of that is just handled for you and you don’t have to write any of that messages you know if you can build what you’re saving in memory and point the
Toolbox at it it’ll do the rest uh which is really refreshing um and even if it didn’t do the rest I should think that Chris could probably build a mix in in Python which do quite a bit of it quite a bit of the other things um if you
Needed to and uh that’s where it’s really nice you can build these components which you can reuse from one application to another very nicely right I better stop talking unless there’s other questions or do people want to see anything else comments Etc well I think the uh little programs
You’re doing for the water levels and the police and that all very interesting I’ll be having to play with them when they become available right yeah something I wasn’t quite clear on uh was that MPD client just a programming exercise or is that going to be a commercial or freely available
Program uh well I have absolutely no idea whether any other riskos users have set up an MPD demon on any of their kit now I suspect that the number of riskos users is fairly small these days and the number of them who’ve also set an MP demon up will be even
Smaller uh but I’ve I I don’t see why I should make it commercial when there might only be one user let’s let’s let’s put it up as a nice programming example and uh then maybe maybe someone might enhance it because you you may you you may have noticed there is absolutely no
Way to select what music to listen to on this MPD CL at the moment I I kind of skirted over that well a minor problem maybe someone else might develop that for me and he’s only been writing it about two days well true this is the
Thing that uh is surprising to me I mean I can’t program buling but basically if I did it take me years anyway so so I hear a programmer saying that he’s managed to do something you know semi useful in the day to it sort of opens up
The whole thing and I know python was one of the things that people were Keen to get ported over to risk and I can understand why if you can do things like this from libraries and things like that I mean it’s it’s way above what I can do
But I can see uh notionally how easy it is so yeah that’s oh here’s something I need to talk to Chris johnes about um I need to work out how to get the character conversion done properly because this is all coming across in utf8 and I need to change it to Latin
One to go into the icon and I’ve not quite worked out the we right bits of magic yet but anyway as you can see it’s not meant to look like that no I mean it’s it’s well one of the things uh that it’s useful it’s it’s using something
From a phone on RIS which I don’t think really we’ve got anything else at all so even just having a music player of some description would be a bonus because I’m sure a lot of us have Android phones yeah now of course what’s actually happening here you don’t you
The music is coming out of a little Raspberry Pi that’s sitting in the in the living room your actual server yeah so so so that’s attached to the amplifier the music isn’t going to be coming out of the computer or indeed out of the phone the phone is just being
Used in Le of a remote control and this is a similar thing where you could if I was sitting down here using my riskos machine I could then change the music because we might get another device for down here and tach to the head for the speakers are sitting behind me which
Currently not in use so yeah then we can have two of them and that’ll get confusing have to to the right one but um yeah probably the most complicated thing in this whole MPD client was uh reading the uh the binary data over the protocol in order to get jpeg appearing
But I was determined to do it because I thought it would look so much more impressive of course you’ve only ever you’ve only seen that one so for all you know I might have um I might have just hardwired it but um here we go there’s one and and the window even
Changes to accommodate the different should different pictures so um yeah I think um well if anybody else sees this uh this video that you’ve you’ve done here here uh well we’ll be seeing in a few days on the website uh the Youtube site uh might encourage people to look
Up you know if you’ve done Python Programming oh could could do something on risk as well just for something different so yeah good stuff I will s been luring um it’s good to see the libr actually being used as well that’s not the idea of writing it
To get people to make it this program stuff yes you never know I might even bother to Learn Python all I’ve done with python so far has helped my son debug his um GCSE project and that was very much um winging it yeah but there were some skills which are pretty
Transferable like put some deug in there are you sure you can’t you have a a more a more descriptive variable name that makes sense yes all that kind of stuff I’m gonna asking question I can see on that screen something called Urban OBS oh yes uh that doesn’t work
Very well uh so that’s another little bit of python um and um if we just bring this map to the front and go to uh Newcastle uh not Newcastle uh but it’s a new Castle and of course I mean the one upon time uh just north of here and we’ll zoom
In um let me run the urban OBS which you’ll see has a beautiful icon that’s a sort of mush of map Walker with just some extra stuff on to make it sure it doesn’t uh get confused with anything else and oh good grief what a lot of bars there are in Newcastle it’s
Shocking it’s it is it’s incredible don’t go there um anyway um if we go to find web photos and Geo data you can get Urban Observatory and this is a research project which is being run by the new by the University of Newcastle um and they have various
Sensors around the city and this will show you where they are within this map um and um this is an example of where it’s not multitasking very well because it’s doing such a lot of work so this is another one that’s in Python um
And I’ll just talk and rrap it on a bit while it’s doing the fetching what you will get on the map if it doesn’t explode um is a whole load of sensors um around the middle of Newcastle 295 so if you don’t want to appear on camera don’t come
To um and there’s a whole variety of different things here so the idea with this Urban Observatory is they they they’re measuring all kinds of things around the city and making this available through apis so this is tells you where all the sensors are but uh what I haven’t got working yet is
Actually retrieving the data and I think they’re in the process of changing from one style of API to another and I couldn’t work out what was I was doing wrong so I think a small number of these work but I’m not going to click on them
Because I’m bound to get the ones that don’t um and I didn’t have time to polish it up a bit I was working on this back in the summer um and uh and some of them actually there are water level ones in here so they’ve got data from the
Environment agency they’ve pulled it into urban Observatory they’ve got data from other sources and they’ve pulled it into urban Observatory and then there are other sensors which are part of this research project which especially for them and they’ve got things like stuff which um looks down on people in the
Shopping streets and counts the footfall of people walking up north up and down North umberland Street for the shops and round Elden square and you know it’s not recording any facial stuff or anything like that it’s just recording the numbers of people at different times of
Day and you can go in and you can see these charts and graphs and just uh see how busy it is and think right okay if I want to set up my donut stall that’s the time of the week to do it um I I I don’t
Know I don’t know what it’s for really but anyway there’s all sorts of different readings air quality noise uh rainfall um goodness says what um so that was going to be a way of getting into that but it’s not very welldeveloped yet because all I’ve got
Is points on the map I think it might tell you in the pins and tracks let’s just see um if we go oh sorry um um we’ve got these water levels haven’t we first um so here we’ve gotb obervatory it um youve got air quality monitors those per airmon
Um there’s I think these are measuring the number of peoples in in various public buildings there’s car park um uh you know car park occupancy yeah internal building don’t know what that is um yeah so um I I don’t know I don’t know what they all are uh because I haven’t really got
Very many of them working but uh um yeah tons of stuff yes this is number of people crossing Elden Square from the East to the North side or I think yeah Elden Square seems to be riddled with these sensors and um that’s near the one of
The big bus stations I think uh Grace Street yeah so anyway that’s what it’s that’s what it’s all up to there’s probably other towns where there’s some of these kinds of things going on but I’m aware of this one because of following some Newcastle people on Twitter and I saw some announcements
About but hopefully you know with um if I get some of this stuff released so you you can see how how to do it then maybe people who have other data sources that are interesting to them might be able to work out how to do them themselves
Because you know I’ve not we’ve not got enough time to explore all the stuff that’s out there and turn it into a little riskos application so uh if people want to do that then if we can make it easier by providing some examples that that’s also of the good very interesting
Yeah I was just thinking you saying this is University of North umberland that’s obviously just around the corner sort of isn’t it you think it’d be worth just contacting them saying you know I’m looking at doing something with mapping uh can you tell us what apis are
Changing to or just have a visit D trip well I think they I think they they have got the documentation up it’s just I found it a bit confusing and uh I couldn’t work out whether the bad results I was getting were because I was doing the programming wrong uh and
Really i’ I’d want to spend a little bit more time exploring that before I start talking to them because uh yeah I think uh yeah just I was thinking of it they’ve got they’ve got a very nice they’ve got a very nice website actually and you can
Go to the website and see graphs of a lot of this stuff online so you know in many ways that’s kind of the better way to interact with their data because they’ve already provided quite a good interface for people um I was just kind
Of try and see what I could get uh onto the map which is at the moment just a load of pins yeah no I just think they might be surprised to know that risk can do something like this you know they be using PCS and Macs and you might be be
Able to show them a raspberry pie or some small machine and go oh well I mean the ironic thing is that I should think that awful lot of these sensors will be talking back via a Raspberry Pi or something like that some little cheap board like that
There’s there’s a there’s a chap uh I’ve forgotten the name of the company but there’s there’s a company up in Newcastle run by someone I’m aware of on Twitter who who builds uh sensors for doing uh analysis of uh flows of traffic and traffic in the most General sense
Including people and bicycles and everything yes he’s got this sort of computer vision thing it must be I think it must be a Raspberry Pi with camera you know and uh it can record and and work out you know it can draw lines on the photo to show oh yeah the all all
These people were turning left or those ones were turning right and they’ll be and all of these flows and it can do really accurate counting and theyve some of the fencers on on Northland Street the main shopping street are from his company and um yeah and he he goes around uh thean
You know I know that he’s exported some of these as well um so uh there are devices being used to to just measure and help help um urban urban planners to you know make sure that c really well designed so well it’s it’s traffic management isn’t it traffic can be
People bicycles cars and sometimes it’s sometimes it’s actually making the case for things so you can say well look you got this number of people uh and actually there’s a decent number of people cycling here so a a cycle route would really help boost this and it’s
Worth putting the money in or it’s it’s worth putting a pedestrian Crossing in here because everyone seems to want to cross here but look how difficult they’re finding it they’re waiting on average five minutes at the side of the road and you know you could measure all that with with an observation pretty
Impressive all good stuff any more questions is there any other development on your other products going on at the moment um no to no free time whatsoever no there’s not not too much going on at the minute well I don’t know they could detect how many coats there are then
They could compare it with leads see whether it’s h see see if Leeds is any more Hardy or not for Newcastle it’s nice to see you all um and uh yeah I sounds like we’re probably wrapping up if that’s all right that’s the guy who’s doing the recording G to
Turn it off at some point yes uh I’ll I’ll disconnect a second yeah okay thank you very much indeed rco SM is growing Rapidly Oh