Code Monkey home page Code Monkey logo

uri-tides's Introduction

URI Tides Widget

Add the [uri-tides] shortcode to a page and a tides widget appears. Requires the URI Tides Updater plugin to be installed and activated on at least one site in a multisite network.

How do I get set up?

  1. Install URI Tides Updater. For multisite networks, activate it only on one site (e.g. the homepage) to avoid cron job duplication.
  2. Install URI Tides and activate it where you intend to use it. Network-activation may be appropriate.
  3. Configure the shortcode to taste.

Attributes

The tides widget is somewhat configurable by adding attributes to the shortcode:

height (num)(optional)
Set a height in pixels for the tide chart (do not include units). The water temp will scale accordingly. (default: 30)

darkmode (bool)(optional)
Toggle a light display for placement on dark backgrounds (default: false)

class (string)(optional)
Set custom CSS class(s) (default: none)

Plugin Details

Contributors: Brandon Fuller, John Pennypacker
Tags: widgets
Requires at least: 4.0
Tested up to: 6.0
Stable tag: 2.1.0

uri-tides's People

Contributors

alexandragauss avatar bjcfuller avatar johnpennypacker avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

uri-tides's Issues

temprature displaying but not tide

I've been checking out the plugin and it was working fine. I just noticed that the dot wasn't following the sine wave and stays fixed in the top left corner with only 25% of it being displayed. Nothing has changed that I'm aware of. The station I'm accessing is 9415252.

I'm seeing a javascript error:
Error: attribute cx: Expected length, "NaN".
buildChart @ tides.js?ver=2.1.0:189
uriTidesInit @ tides.js?ver=2.1.0:91
(anonymous) @ tides.js?ver=2.1.0:7
load (async)
(anonymous) @ tides.js?ver=2.1.0:6
(anonymous) @ tides.js?ver=2.1.0:195

Screen Shot 2023-04-17 at 10 54 39 PM

Tide data is not cached

Currently, NOAA is pinged every time the page refreshes, which is both unnecessary and not very kind to their servers. Tide data should be cached every hour or half-hour, and served accordingly.

Add ARIA

Add screen reader support for water temp and tides, perhaps labeling with time until next tide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.