CityCyclingEdinburgh Forum » Questions/Support/Help

Any techies in the house?

(15 posts)
  • Started 5 years ago by HankChief
  • Latest reply from HankChief
  • This topic is not resolved

No tags yet.


  1. HankChief
    Member

    This may be a big ask but thought I'd try the hive mind.

    At the Corstorphine Air Pollution public meeting last night there was a suggestion that we should try to make everyone more aware of just how bad the pollution is.

    The data is available here but it isn't really in a digestible format, so I was wondering whether it could be converted into a daily tweet. Something like This river level warning (but maybe not so graphic).

    This may be easy or complex, I have no idea, but so would be very grateful for any efforts.

    Thank you

    HC

    Posted 5 years ago #
  2. neddie
    Member

    Force all drivers to add an "orange smoke" additive to their fuel, so all can see how one car can completely fill an entire street with gas?

    Posted 5 years ago #
  3. I were right about that saddle
    Member

    I did look into building a script to Tweet random parts of a surrealist text for an art gallery a while back.

    Might have a look at this, but the Scottish Hair Quality dot Scot url for the data source seems more @gembo's thing?

    Posted 5 years ago #
  4. ejstubbs
    Member

    Can't really help with your particular ask, but that Air Quality in Scotland site is worth knowing about.

    Bit bemused that Auchencorth Moss manages to rate worse than St John's Road, though. How does that happen?!

    Ah, a bit more digging suggests that the particulate matter sensors at Auchencorth Moss have been offline since Monday, so all it's reporting is ozone. St John's road has the particulate and NO2 sensors all working, but no O3. So not really comparing like with like.

    Posted 5 years ago #
  5. sallyhinch
    Member

    There's an automatic feed for the whole of Scotland here

    https://twitter.com/scotairquality

    There are a few automatic accounts for American cities but I didn't find anything for a UK locality - but maybe they'd be able to help with the basic technology?

    Posted 5 years ago #
  6. Ed1
    Member

    The figures mean nothing on their own may be all areas have the same level may be in the middle of the sea its like that its always been that way its normal. I would have thought would have to context these levels with other cities or with and how it relates to regulations how much higher it is in somewhere else how it relates to regulations.

    Posted 5 years ago #
  7. neddie
    Member

    @sallyhinch

    That Twitter feed seems to say nothing other than
    "Low Pollution levels across Scotland", with the very occasional "Medium..."

    Typical "green-washed" government propaganda if you ask me...

    Posted 5 years ago #
  8. minus six
    Member

    the ajax data calls are here

    view-source:http://www.scottishairquality.scot/js/javascript.js

    params are site_id=ED1, view=latest

    http://www.scottishairquality.scot/ajax/site-tabs?doajax=true&site_id=ED1&view=latest

    gives the data, you could scrape that

    Posted 5 years ago #
  9. sallyhinch
    Member

    Indeed, I wasn't suggesting that particular feed was very useful, just that it implied it was something that could be done on a more granular level

    Posted 5 years ago #
  10. prog99
    Member

    Its easy enough to do. You need a twitter account and apply for an API key. Then somewhere to host the code that checks the data regularly and builds the warning tweet.

    Posted 5 years ago #
  11. HankChief
    Member

    Thanks @prog99.

    Does anyone have those skills & the inclination to help...

    Posted 5 years ago #
  12. McD
    Member

    Maybe a nice wee project for a student - any contacts at the Uni IT departments?

    Posted 5 years ago #
  13. MediumDave
    Member

    https://ifttt.com/twitter

    might have something suitable for the (mostly) non technical to do what you need

    Posted 5 years ago #
  14. HankChief
    Member

    Who will get there first... CCE or CEC?

    https://twitter.com/mrdavidbol/status/1070646936166903808?s=20

    I think we know the answer

    Posted 5 years ago #
  15. HankChief
    Member


RSS feed for this topic

Reply

You must log in to post.


Video embedded using Easy Video Embed plugin