Back to packages list

Vals using luxon

Description from the NPM package:
Immutable date wrapper
willthereader avatar
umbrellaReminder
@willthereader
Script
Forked from stevekrouse/umbrellaReminder
stevekrouse avatar
umbrellaReminder
@stevekrouse
Cron
ā˜”ļø Umbrella reminder if there's rain today Setup Fork this val šŸ‘‰ https://val.town/v/stevekrouse.umbrellaReminder/fork Customize the location (line 8). You can supply any free-form description of a location. āš ļø Only works for US-based locations (where weather.gov covers). How it works Geocodes an free-form description of a location to latitude and longitude ā€“ @stevekrouse.nominatimSearch Converts a latitude and longitude to weather.gov grid ā€“ @stevekrouse.weatherGovGrid Gets the hourly forecast for that grid Filters the forecast for periods that are today and >30% chance of rain If there are any, it formats them appropriately, and sends me an email
tmcw avatar
luxonExample
@tmcw
Script
luxon Luxon is, like date-fns , a good option for formatting, parsing, and manipulating dates. It's more of a direct successor to moment and has a similar method-chain-oriented API rather than function-call oriented API like date-fns.
2
Next