• Resolved wbwired

    (@wbwired)


    Hello – is the below json data something that I can get to work on my site using your plugin? I’m afraid despite some knowledge I have no idea where to start – however I am happy to respect your rules and donate what it’s worth to my site. It’s a ‘live’ car park occupancy measure, how many car park spaces there are in the city car parks, will it remain ‘live’ on the website too?

    Many thanks

    Pat
    [email address moderated – these forums do not provide support via email]

    {"Parking": {"Carpark": [
      {
        "SystemCodeNumber": 210,
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 84,
        "ShortDescription": "Wilkinson Street Park and Ride",
        "DisabledCapacity": 0,
        "Capacity": 472,
        "Northing": 341968,
        "State": "Spaces",
        "Occupancy": 311,
        "QueueTime": 0,
        "Easting": 455364,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 65
      },
      {
        "SystemCodeNumber": 211,
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 20,
        "ShortDescription": "Moor Bridge Park and Ride",
        "DisabledCapacity": 0,
        "Capacity": 119,
        "Northing": 346635,
        "State": "Spaces",
        "Occupancy": 63,
        "QueueTime": 0,
        "Easting": 454598,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 52
      },
      {
        "SystemCodeNumber": 212,
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 148,
        "ShortDescription": "Hucknall Park and Ride",
        "DisabledCapacity": 0,
        "Capacity": 476,
        "Northing": 349208,
        "State": "Spaces",
        "Occupancy": 270,
        "QueueTime": 0,
        "Easting": 454031,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 56
      },
      {
        "SystemCodeNumber": 911,
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 28,
        "ShortDescription": "Huntingdon Street (Metro)",
        "DisabledCapacity": 0,
        "Capacity": 250,
        "Northing": 340470,
        "State": "Spaces",
        "Occupancy": 129,
        "QueueTime": 0,
        "Easting": 457583,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 51
      },
      {
        "SystemCodeNumber": "Am2-1",
        "FillRate": 0,
        "Fault": "Communication Error",
        "ExitRate": 76,
        "ShortDescription": "Trinity Square",
        "DisabledCapacity": 0,
        "Capacity": 455,
        "Northing": 340304,
        "State": "Spaces",
        "Occupancy": 248,
        "QueueTime": 0,
        "Easting": 457222,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 54
      },
      {
        "SystemCodeNumber": "Am3-2",
        "FillRate": 0,
        "Fault": "Communication Error",
        "ExitRate": 88,
        "ShortDescription": "Fletcher Gate",
        "DisabledCapacity": 0,
        "Capacity": 517,
        "Northing": 339775,
        "State": "Spaces",
        "Occupancy": 228,
        "QueueTime": 0,
        "Easting": 457485,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 44
      },
      {
        "SystemCodeNumber": "BRDMSH",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 384,
        "ShortDescription": "Broadmarsh",
        "DisabledCapacity": 0,
        "Capacity": 1185,
        "Northing": 339484,
        "State": "Spaces",
        "Occupancy": 422,
        "QueueTime": 0,
        "Easting": 457417,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 35
      },
      {
        "SystemCodeNumber": "C11001",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 156,
        "ShortDescription": "Arndale",
        "DisabledCapacity": 0,
        "Capacity": 412,
        "Northing": 339408,
        "State": "Spaces",
        "Occupancy": 210,
        "QueueTime": 0,
        "Easting": 457173,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 50
      },
      {
        "SystemCodeNumber": "C11002",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 76,
        "ShortDescription": "Mount Street",
        "DisabledCapacity": 0,
        "Capacity": 427,
        "Northing": 339867,
        "State": "Spaces",
        "Occupancy": 135,
        "QueueTime": 0,
        "Easting": 456885,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 31
      },
      {
        "SystemCodeNumber": "C11003",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 0,
        "ShortDescription": "Queensbridge Road",
        "DisabledCapacity": 0,
        "Capacity": 405,
        "Northing": 339089,
        "State": "Spaces",
        "Occupancy": 0,
        "QueueTime": 0,
        "Easting": 457354,
        "LastUpdated": "2013-08-20 14:53:00.0",
        "OccupancyPercentage": 0
      },
      {
        "SystemCodeNumber": "C11004",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 80,
        "ShortDescription": "St. James' Street",
        "DisabledCapacity": 0,
        "Capacity": 475,
        "Northing": 339705,
        "State": "Spaces",
        "Occupancy": 324,
        "QueueTime": 0,
        "Easting": 456938,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 68
      },
      {
        "SystemCodeNumber": "C11005",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 36,
        "ShortDescription": "Stoney Street",
        "DisabledCapacity": 0,
        "Capacity": 289,
        "Northing": 339788,
        "State": "Spaces",
        "Occupancy": 177,
        "QueueTime": 0,
        "Easting": 457654,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 61
      },
      {
        "SystemCodeNumber": "C11006",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 76,
        "ShortDescription": "Newark: St. Mark's Place",
        "DisabledCapacity": 0,
        "Capacity": 512,
        "Northing": 0,
        "State": "Spaces",
        "Occupancy": 34,
        "QueueTime": 0,
        "Easting": 0,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 6
      },
      {
        "SystemCodeNumber": "C12002",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 8,
        "ShortDescription": "Mount St Lower",
        "DisabledCapacity": 0,
        "Capacity": 77,
        "Northing": 0,
        "State": "Almost Full",
        "Occupancy": 56,
        "QueueTime": 0,
        "Easting": 0,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 72
      },
      {
        "SystemCodeNumber": "C18418",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 0,
        "ShortDescription": "QUEENS DR P&R",
        "DisabledCapacity": 0,
        "Capacity": 998,
        "Northing": 376885,
        "State": "Faulty",
        "Occupancy": 0,
        "QueueTime": 0,
        "Easting": 478373,
        "LastUpdated": "2012-10-18 09:16:34.0",
        "OccupancyPercentage": 0
      },
      {
        "SystemCodeNumber": "CPM_22",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 100,
        "ShortDescription": "Nottingham Train Station",
        "DisabledCapacity": 0,
        "Capacity": 950,
        "Northing": 339121,
        "State": "Spaces",
        "Occupancy": 416,
        "QueueTime": 0,
        "Easting": 457546,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 43
      },
      {
        "SystemCodeNumber": "FRSTPR",
        "FillRate": 56,
        "Fault": "",
        "ExitRate": 0,
        "ShortDescription": "Forest Park and Ride",
        "DisabledCapacity": 0,
        "Capacity": 980,
        "Northing": 341296,
        "State": "Faulty",
        "Occupancy": 257,
        "QueueTime": 0,
        "Easting": 456156,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 26
      },
      {
        "SystemCodeNumber": "PHNXPR",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 108,
        "ShortDescription": "Phoenix Park and Ride",
        "DisabledCapacity": 0,
        "Capacity": 659,
        "Northing": 343774,
        "State": "Spaces",
        "Occupancy": 353,
        "QueueTime": 0,
        "Easting": 453311,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 53
      },
      {
        "SystemCodeNumber": "PRLMNT",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 4,
        "ShortDescription": "Upper Parliament Street",
        "DisabledCapacity": 0,
        "Capacity": 221,
        "Northing": 340048,
        "State": "Spaces",
        "Occupancy": 102,
        "QueueTime": 0,
        "Easting": 457047,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 46
      },
      {
        "SystemCodeNumber": "QNSPR",
        "FillRate": 0,
        "Fault": "Overflow. (Occupancy is > Capacity)",
        "ExitRate": 48,
        "ShortDescription": "Queens Drive Park and Ride",
        "DisabledCapacity": 0,
        "Capacity": 1000,
        "Northing": 337308,
        "State": "Full",
        "Occupancy": 1141,
        "QueueTime": 0,
        "Easting": 456353,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 114
      },
      {
        "SystemCodeNumber": "RYLCT",
        "FillRate": 0,
        "Fault": "Communication Error",
        "ExitRate": 8,
        "ShortDescription": "Wollaton Street",
        "DisabledCapacity": 0,
        "Capacity": 629,
        "Northing": 340147,
        "State": "Spaces",
        "Occupancy": 204,
        "QueueTime": 0,
        "Easting": 456879,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 32
      },
      {
        "SystemCodeNumber": "SB1-1",
        "FillRate": 0,
        "Fault": "Communication Error",
        "ExitRate": 44,
        "ShortDescription": "Talbot Street",
        "DisabledCapacity": 0,
        "Capacity": 439,
        "Northing": 340232,
        "State": "Spaces",
        "Occupancy": 71,
        "QueueTime": 0,
        "Easting": 456865,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 16
      },
      {
        "SystemCodeNumber": "TLBTST",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 0,
        "ShortDescription": "Talbot Street OLD",
        "DisabledCapacity": 0,
        "Capacity": 444,
        "Northing": 0,
        "State": "Spaces",
        "Occupancy": 0,
        "QueueTime": 0,
        "Easting": 0,
        "LastUpdated": "2013-08-20 15:10:15.0",
        "OccupancyPercentage": 0
      },
      {
        "SystemCodeNumber": "VICNTH",
        "FillRate": 0,
        "Fault": "Internal Communication Error",
        "ExitRate": 0,
        "ShortDescription": "Victoria Centre NTH",
        "DisabledCapacity": 0,
        "Capacity": 1101,
        "Northing": 340508,
        "State": "Spaces",
        "Occupancy": 0,
        "QueueTime": 0,
        "Easting": 457468,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 0
      },
      {
        "SystemCodeNumber": "VICSTH",
        "FillRate": 0,
        "Fault": "",
        "ExitRate": 0,
        "ShortDescription": "Victoria Centre STH",
        "DisabledCapacity": 0,
        "Capacity": 1606,
        "Northing": 340218,
        "State": "Spaces",
        "Occupancy": 0,
        "QueueTime": 0,
        "Easting": 457468,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 0
      },
      {
        "SystemCodeNumber": "WPS$1230",
        "FillRate": 0,
        "Fault": "Communication Error",
        "ExitRate": 56,
        "ShortDescription": "Victoria Centre South",
        "DisabledCapacity": 0,
        "Capacity": 1606,
        "Northing": 340218,
        "State": "Spaces",
        "Occupancy": 921,
        "QueueTime": 0,
        "Easting": 457468,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 57
      },
      {
        "SystemCodeNumber": "WPS$1231",
        "FillRate": 0,
        "Fault": "Communication Error",
        "ExitRate": 24,
        "ShortDescription": "Victoria Centre North",
        "DisabledCapacity": 0,
        "Capacity": 1011,
        "Northing": 340508,
        "State": "Spaces",
        "Occupancy": 404,
        "QueueTime": 0,
        "Easting": 457413,
        "LastUpdated": "2016-01-18 17:26:54.0",
        "OccupancyPercentage": 39
      }
    ]}}

    https://www.ads-software.com/plugins/json-content-importer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    displaying this data is no problem, see:
    https://wptest.kux.de/parking/

    The PRO-version can also format the LastUpdated-timestamp.

    Best
    Bernhard

    Thread Starter wbwired

    (@wbwired)

    Thanks Bernhardt,

    Ok happy to buy Pro version – but because it’s car parking ’empty spaces’ it only really needs to show;

    For example:

    Huntington Street
    Capacity 250
    Occupancy 129
    And of course the time and date

    Is this possible too? Again happy to buy pro and/or donate if it’s something that will work as a ‘live’ service on the site

    Thank you for your time

    Pat

    Plugin Author berkux

    (@berkux)

    By using something like
    oneOfTheseWordsMustNotBeIn=”OccupancyPercentage: 0″
    oneOfTheseWordsMustNotBeInDepth=2
    you can exclude full paring spaces.
    Where “OccupancyPercentage: 0” is the code in the template.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help required if possible please’ is closed to new replies.