added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
15
nyx/homes/notashelf/services/wayland/ags/js/utils/weather.js
Normal file
15
nyx/homes/notashelf/services/wayland/ags/js/utils/weather.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { Variable, App } from "../imports.js";
|
||||
|
||||
export const WeatherValue = Variable(
|
||||
{},
|
||||
{
|
||||
poll: [
|
||||
36000,
|
||||
["sh", "-c", `python ${App.configDir}/bin/weather`],
|
||||
(out) => JSON.parse(out),
|
||||
],
|
||||
},
|
||||
);
|
||||
|
||||
export const getWeatherIcon = (value) => value.text || "...";
|
||||
export const getWeatherTooltip = (value) => value.tooltip || "...";
|
Loading…
Add table
Add a link
Reference in a new issue