Built and ran as an iOS homescreen widget using the Scriptable app.
This widget takes an OpenWeatherMap API key to provide hourly, daily, and sunset/sunrise weather info. In addition, one section displays upcoming events from the Calendar app.
--- | |
version: "2.1" | |
services: | |
homeassistant: | |
image: lscr.io/linuxserver/homeassistant:latest | |
container_name: homeassistant | |
network_mode: host | |
environment: | |
- PUID=1000 | |
- PGID=1000 |
// ***Air Quality Widget*** | |
// | |
// Copyright (C) 2020 by ChristophObermeier | |
// | |
// Permission to use, copy, modify, and/or distribute this software is hereby granted. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
// IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
// ***Air Quality Widget*** | |
// | |
// Copyright (C) 2020 by ChristophObermeier | |
// | |
// Permission to use, copy, modify, and/or distribute this software is hereby granted. | |
// However you have to respect the Terms of Service of the Air Quality Open Data Platform: https://aqicn.org/api/tos/ | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER |
Built and ran as an iOS homescreen widget using the Scriptable app.
This widget takes an OpenWeatherMap API key to provide hourly, daily, and sunset/sunrise weather info. In addition, one section displays upcoming events from the Calendar app.
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: orange; icon-glyph: sun; | |
/////////////////////////////////////////////////////////////////////// | |
// dawn2dusk.js | |
// Origin: | |
// https://gist.github.com/HendrikRunte/4b5d03cb26e31508bc96553ad3c10f47 | |
// Take it and have fun. | |
// Hendrik Runte, Nov 12, 2020, 17:33. |
For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.
/* | |
MIT License | |
Copyright (c) 2024 Maxwell Zeryck | |
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 SOFTW |
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: red; icon-glyph: calendar-alt; | |
// This widget was created by Max Zeryck @mzeryck | |
// Note: before using this script in a widget, change const TEST_MODE to true and run it in the Scriptable app. | |
// The app will prompt you to give calendar access, and then show a preview of the widget. | |
// Make sure to change it back to const TEST_MODE = false prior to adding it to a widget. Happy coding! |
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: orange; icon-glyph: quote-right; | |
// Change these to your usernames! | |
const user = "spencer" | |
const jike = "4DDA0425-FB41-4188-89E4-952CA15E3C5E" | |
const telegram = "realSpencerWoo" | |
const github = "spencerwooo" |