Stormworks: Build and Rescue

Stormworks: Build and Rescue

27 个评价
Weather station (LUA)
   
奖励
收藏
已收藏
取消收藏
Vehicles: Air, Sea, Land
标签: v1.0.19
文件大小
发表于
更新日期
34.729 KB
2019 年 5 月 18 日 上午 10:10
2020 年 10 月 26 日 上午 11:04
5 项改动说明 ( 查看 )

订阅以下载
Weather station (LUA)

描述
NEW :
- You can now choose between knots and m/s for the wind speed
- Now works on 2x2 screens ! Just choose between standart values or wind direction in the properties panel (select tool)

This microcontroller tells you all you need to know about the weather ! Just connect it to a 5x3 or 2x2 screen and the following sensors :

- Rain sensor
- Wind sensor
- Compass sensor
- Linear speed sensor
- Humidity sensor
- Temperature sensor


---FEATURES---

- Real time wind speed and direction (independently of the boat direction) !
- Visibility level !
- Rain level !
- Tempest warning depending on all the other elements !
- Temperature !
- Colors fully customisable with the "select" tool !


Feel free to use it in any of your projets (credit me could be nice) !


How to use it :
-First, connect all the sensors to the microcontroller
-Connect the video output to an 2x2, 5x3 or bigger screen
-(OPTIONAL) Custom the colors with the select tool inside the workbench
-Connect the power
-Turn the monitor/screen ON
-Now everything should work well ! Have fun with it <3
35 条留言
Ambitious Dreamsickle 2023 年 5 月 14 日 下午 5:12 
im looking for a good script to use for a mobile weather station, hope to use this. will credit it on the creation build series im doing.
SeaWeed 2022 年 3 月 5 日 上午 8:43 
Hi the wind direction is actually pointing at the wrong direction from where the wind is actually coming from. My compass and wind sensor are placed correctly (facing forwards).

I fixed this in your code at line 26:
windDirection = (((windDirectionBrut-compassDirection))*2*3.14) -1.57
Léo la souris  [作者] 2021 年 4 月 24 日 上午 10:46 
did you correctly set your color values ? (it works with rgb values)
TheSpaceAce 2021 年 4 月 17 日 下午 8:19 
It isn't completely working, it has a completely white screen with a red line and some green writing. Have I done something wrong?
Léo la souris  [作者] 2021 年 3 月 6 日 上午 3:29 
Of course ! Feel free to use it
Tkmined 2021 年 3 月 5 日 上午 6:30 
May I use this on a storm chaser? I'll credit you in the description.
Léo la souris  [作者] 2020 年 11 月 9 日 上午 6:15 
not yet, but i'll do it in a futur update ^^
StormLupine777 2020 年 11 月 9 日 上午 3:38 
Is there a version that has a map in place of the compass?
Léo la souris  [作者] 2020 年 10 月 26 日 上午 11:16 
Updated :
- m/s or knots option
- 2x2 screen support
Teddybear72N 2020 年 9 月 13 日 上午 1:23 
Nice, i dont know how to :-)