Error handling

Invalid widget type

Error: Widget with type "xxx" does not exist

<script src="https://widgets.digitalocean.ie/loader.js"></script>
<script>
digitalocean.create({
        type: 'xxx',
        config: {}
      });
</script>
Code snippet copied!

Sensor readings invalid url

Error: Http failure during parsing for https://widgets.digitalocean.ie/Widgets_B10_QA/xxx

M4 Weather Buoy

Readings at on (UTC)

  1. Atm. Pressuremb

Lat, Long:

<script src="https://widgets.digitalocean.ie/loader.js"></script>
<script>
digitalocean.create({
        type: 'sensor-readings',
        config: {
          title: 'M4 Weather Buoy',
          url: 'xxx',
          sensors: [{
            label: 'Atm. Pressure',
            unit: 'mb',
            prop: 'AtmosphericPressure'
          }]
        }
      });
</script>
Code snippet copied!

Table invalid url

Loading...

Error: Http failure during parsing for https://widgets.digitalocean.ie/Widgets_B10_QA/xxx

Records: 0
Reset Filters

Loading...

<script src="https://widgets.digitalocean.ie/loader.js"></script>
<script>
digitalocean.create({
      "type": "table",
      "config": {
        "url": "xxx",    
      }
    });
</script>
Code snippet copied!

Chart invalid dataset url

Loading...

Created with Highcharts 8.0.0Sea Temperature vs Time
<script src="https://widgets.digitalocean.ie/loader.js"></script>
<script>
digitalocean.create({
        type: 'bar-chart',
        config: {
          title: 'Sea Temperature vs Time',
          xTitle: 'Last 6 hours',
          yTitle: 'Temperature (C)',
          datasets: [{
            title: 'Sea Temperature',
            url: 'https://erddap.marine.ie/erddap/tabledap/IWaveBNetwork30Min.json?time%XXX&time%3E=now-6hours&distinct()'
          }]
        }
      });
</script>
Code snippet copied!