Skip to content

Commit

Permalink
Merge pull request #136 from Nitwel/improvements
Browse files Browse the repository at this point in the history
Add weather entity
  • Loading branch information
Nitwel committed May 1, 2024
2 parents 883e4e7 + 70c26df commit e6dcb94
Show file tree
Hide file tree
Showing 45 changed files with 31,162 additions and 5 deletions.
21 changes: 21 additions & 0 deletions app/assets/weather/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020-2021 Bas Milius

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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
45 changes: 45 additions & 0 deletions app/assets/weather/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<a href="https://bas.dev" target="_blank" rel="noopener">
<img src="https://bas.dev/module/@bas/website/resource/image/logo.svg" alt="Bas Milius Logo" height="60" width="60" />
</a>

---

# Meteocons
Free to use animated SVG weather icons. Handcrafted by [Bas Milius](https://bas.dev).

## 👀 Preview
- **Filled icons**: https://basmilius.github.io/weather-icons/index-fill.html
- **Outlined icons**: https://basmilius.github.io/weather-icons/index.html

### ⚒ Process
- An icon is designed in Adobe Illustrator.
- Icons are exported to plain SVG files.
- Animations are added by editing SVG files.
- A node.js script minifies the SVG's.

### 🎨 Design files
This repository not only contains the production-ready files, but also the original design
files. You may use these files to adjust icons or even create new ones. The design files
are Adobe Illustrator .ai-files.

### 🌥 Missing an icon?
Please let me know by creating an issue. Keep in mind that I only accept icons that are
somewhat weather related.

---

<p float="left">
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/fill/clear-day.svg" alt="Partly Cloudy Day" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/fill/partly-cloudy-day.svg" alt="Partly Cloudy Day" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/fill/rain.svg" alt="Rain" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/fill/tornado.svg" alt="Tornado" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/fill/clear-night.svg" alt="Clear Night" height="48"/>
</p>

<p float="left">
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/line/clear-day.svg" alt="Partly Cloudy Day" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/line/partly-cloudy-day.svg" alt="Partly Cloudy Day" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/line/rain.svg" alt="Rain" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/line/tornado.svg" alt="Tornado" height="48"/>
<img src="https://bmcdn.nl/assets/weather-icons/v2.0/line/clear-night.svg" alt="Clear Night" height="48"/>
</p>
1 change: 1 addition & 0 deletions app/assets/weather/lottie/clear-day.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"Bas Milius","k":"Meteocons, Weather icons, Icon set","d":"Clear day - Meteocons.com","tc":""},"fr":60,"ip":0,"op":360,"w":512,"h":512,"nm":"clear-day","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"rays","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":359,"s":[45]}],"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[180,0],[130.345,0]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-130.345,0],[-180,0]],"c":false},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[127.279,127.279],[92.168,92.168]],"c":false},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-92.168,-92.168],[-127.279,-127.279]],"c":false},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-127.279,127.279],[-92.168,92.168]],"c":false},"ix":2},"nm":"Path 5","mn":"ADBE Vector Shape - Group","hd":false},{"ind":5,"ty":"sh","ix":6,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[92.168,-92.168],[127.279,-127.279]],"c":false},"ix":2},"nm":"Path 6","mn":"ADBE Vector Shape - Group","hd":false},{"ind":6,"ty":"sh","ix":7,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,180],[0,130.345]],"c":false},"ix":2},"nm":"Path 7","mn":"ADBE Vector Shape - Group","hd":false},{"ind":7,"ty":"sh","ix":8,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,-130.345],[0,-180]],"c":false},"ix":2},"nm":"Path 8","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.984313726425,0.749019622803,0.141176477075,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":24,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false}],"ip":0,"op":360,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"core","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-46.392],[46.392,0],[0,46.392],[-46.392,0]],"o":[[0,46.392],[-46.392,0],[0,-46.392],[46.392,0]],"v":[[84,0],[0,84],[-84,0],[0,-84]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.972549021244,0.686274528503,0.0941176489,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":5,"k":{"a":0,"k":[0,0.984,0.749,0.141,0.225,0.984,0.749,0.141,0.45,0.984,0.749,0.141,0.725,0.973,0.684,0.092,1,0.961,0.62,0.043],"ix":9}},"s":{"a":0,"k":[-41.517,-71.871],"ix":5},"e":{"a":0,"k":[42.497,73.645],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false}],"ip":0,"op":360,"st":0,"bm":0}],"markers":[]}
3 changes: 3 additions & 0 deletions app/assets/weather/lottie/clear-day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions app/assets/weather/lottie/clear-day.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://caqghtbin4b02"
path.s3tc="res://.godot/imported/clear-day.png-897da93bef881f43a8c41a0ca503ab67.s3tc.ctex"
path.etc2="res://.godot/imported/clear-day.png-897da93bef881f43a8c41a0ca503ab67.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/weather/lottie/clear-day.png"
dest_files=["res://.godot/imported/clear-day.png-897da93bef881f43a8c41a0ca503ab67.s3tc.ctex", "res://.godot/imported/clear-day.png-897da93bef881f43a8c41a0ca503ab67.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
1 change: 1 addition & 0 deletions app/assets/weather/lottie/clear-night.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"Bas Milius","k":"Meteocons, Weather icons, Icon set","d":"Clear night - Meteocons.com","tc":""},"fr":60,"ip":0,"op":360,"w":512,"h":512,"nm":"clear-night","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"moon","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[-15]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":180,"s":[9]},{"t":359,"s":[-15]}],"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[4.989,0],[0,73.133],[-2.789,10.632],[0,-68.211],[-74.124,0],[-14.959,57.027]],"o":[[-74.124,0],[0,-11.492],[-67.179,7.251],[0,73.133],[62.476,0],[-4.848,0.523]],"v":[[117.254,33.632],[-16.96,-98.787],[-12.532,-132],[-132,-0.419],[2.214,132],[132,32.794]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.447058826685,0.72549021244,0.835294127464,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":5,"k":{"a":0,"k":[0,0.525,0.765,0.859,0.225,0.525,0.765,0.859,0.45,0.525,0.765,0.859,0.725,0.447,0.725,0.835,1,0.369,0.686,0.812],"ix":9}},"s":{"a":0,"k":[-80.517,-105.871],"ix":5},"e":{"a":0,"k":[52.333,124.231],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":360,"st":0,"bm":0}],"markers":[]}
3 changes: 3 additions & 0 deletions app/assets/weather/lottie/clear-night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions app/assets/weather/lottie/clear-night.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://h1cl8ixk3d7p"
path.s3tc="res://.godot/imported/clear-night.png-68c3a0f566be1a5917c737c10e866ce4.s3tc.ctex"
path.etc2="res://.godot/imported/clear-night.png-68c3a0f566be1a5917c737c10e866ce4.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/weather/lottie/clear-night.png"
dest_files=["res://.godot/imported/clear-night.png-68c3a0f566be1a5917c737c10e866ce4.s3tc.ctex", "res://.godot/imported/clear-night.png-68c3a0f566be1a5917c737c10e866ce4.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
1 change: 1 addition & 0 deletions app/assets/weather/lottie/code-red.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"Bas Milius","k":"Meteocons, Weather icons, Icon set","d":"Code red - Meteocons.com","tc":""},"fr":60,"ip":0,"op":360,"w":512,"h":512,"nm":"code-red","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"alert","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[2.006,-1.721],[5.386,0],[0,0],[2.006,1.73],[0,4.635],[0,0],[-2.001,1.729],[-5.386,0],[0,0],[-2.006,-1.729],[0,-4.644]],"o":[[0,4.635],[-2.006,1.73],[0,0],[-5.386,0],[-2.001,-1.721],[0,0],[0,-4.644],[2.006,-1.729],[0,0],[5.386,0],[2.006,1.729],[0,0]],"v":[[16.053,68.211],[13.049,77.755],[1.97,80.354],[-1.97,80.354],[-13.049,77.755],[-16.053,68.211],[-16.053,65.296],[-13.049,55.744],[-1.97,53.154],[1.97,53.154],[13.049,55.744],[16.053,65.296]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-0.998,0.86],[-2.627,0],[0,0],[-1.069,-0.869],[0.122,-2.265],[0,0],[0.937,-0.808],[2.627,0],[0,0],[0.947,0.808],[0.127,2.265],[0,0]],"o":[[1.003,-0.869],[0,0],[2.627,0],[1.059,0.86],[0,0],[-0.122,2.265],[-0.937,0.808],[0,0],[-2.627,0],[-0.937,-0.808],[0,0],[-0.122,-2.265]],"v":[[-13.049,-39.436],[-7.601,-40.736],[7.795,-40.736],[13.334,-39.436],[14.739,-34.748],[11.735,37.131],[10.137,41.741],[4.791,42.952],[-4.598,42.952],[-9.954,41.741],[-11.547,37.131],[-14.363,-34.748]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tr","p":{"a":0,"k":[0,19.809],"ix":2},"a":{"a":0,"k":[0,19.809],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"t":0,"s":[100,100]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"t":60,"s":[110,110]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"t":120,"s":[100,100]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"t":180,"s":[110,110]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"t":240,"s":[100,100]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"t":300,"s":[110,110]},{"t":359,"s":[100,100]}],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"exclamation","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[8.765,16.163],[0,0],[0,0],[9.14,-16.854],[0,0],[0,0],[-18.305,0],[0,0],[0,0]],"o":[[0,0],[0,0],[-9.14,-16.854],[0,0],[0,0],[-8.765,16.163],[0,0],[0,0],[18.305,0]],"v":[[125.021,84.131],[72.237,-13.198],[21.171,-107.36],[-21.171,-107.36],[-72.237,-13.198],[-125.021,84.131],[-103.851,120],[0,120],[103.851,120]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.937254905701,0.266666680574,0.266666680574,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":5,"k":{"a":0,"k":[0,0.973,0.443,0.443,0.225,0.973,0.443,0.443,0.45,0.973,0.443,0.443,0.725,0.918,0.296,0.296,1,0.863,0.149,0.149],"ix":9}},"s":{"a":0,"k":[-93,-71],"ix":5},"e":{"a":0,"k":[40.138,159.601],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false}],"ip":0,"op":360,"st":0,"bm":0}],"markers":[]}
3 changes: 3 additions & 0 deletions app/assets/weather/lottie/code-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions app/assets/weather/lottie/code-red.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bn4tjmnvn16k2"
path.s3tc="res://.godot/imported/code-red.png-def0cc292a7732869f9baa9be8fbb141.s3tc.ctex"
path.etc2="res://.godot/imported/code-red.png-def0cc292a7732869f9baa9be8fbb141.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/weather/lottie/code-red.png"
dest_files=["res://.godot/imported/code-red.png-def0cc292a7732869f9baa9be8fbb141.s3tc.ctex", "res://.godot/imported/code-red.png-def0cc292a7732869f9baa9be8fbb141.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
Loading

0 comments on commit e6dcb94

Please sign in to comment.