A WordPress plugin for displaying visualisations of data found in the Bath & North East Somerset community datastore which is curated by the lovely people of Bath: Hacked.
This is a work in progress. Currently the plugin only displays data from a single dataset - BANES Live Car Park Occupancy.
Our intention is to add further datasets in the future.
Use this plugin at your own risk.
- Download the repository ZIP file.
- Extract the ZIP contents somewhere.
- Rename the extracted folder to
bath-hacked-plugin
. - Upload the folder to your WordPress plugin folder
wp-content/plugins/
. - Now activate the plugin in your WordPress dashboard.
At present, there is a single configuration option under "Settings > Bath: Hacked"
.
"Car Park Dataset API URL"
is initially populated with the current dataset within the Bath: Hacked datastore.
Should this dataset be moved, you will be able to change its URL here.
Display either linear or radial gauges showing latest car park capacity. A check will be made for updates in capacity at 2 minute intervals & the gauges updated automatically.
Title
: Title to be displayed for widget. Leave blank to omit.Theme
: Use adark
orlight
theme for text colours.Style
: Use alinear
orradial
gauge style.
Display either linear or radial gauges showing latest car park capacity. A check will be made for updates in capacity at 2 minute intervals & the gauges updated automatically.
[bh_car_parks theme="dark" style="linear"]
theme
: Use adark
orlight
theme for text colours.style
: Use alinear
orradial
gauge style.
Submit issues, or even better, pull requests.
Feel free to remove the attribution from the plugin. Or feel free to leave it in to say thanks.
Mark Owen (@azazell0).
Copyright (c) 2014 Mark Owen & Bath: Hacked
Please consult individual datasets at Bath: Hacked for their licensing information.
Your right to use this software does not necessarily confer any right to use the data provided by Bath: Hacked or Bath & North East Somerset Council.
The MIT License (MIT)
Copyright (c) 2014
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.