Stormworks: Build and Rescue

Stormworks: Build and Rescue

27 ratings
Weather station (LUA)
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air, Sea, Land
Tags: v1.0.19
File Size
Posted
Updated
34.729 KB
May 18, 2019 @ 10:10am
Oct 26, 2020 @ 11:04am
5 Change Notes ( view )

Subscribe to download
Weather station (LUA)

Description
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 Comments
Ambitious Dreamsickle May 14, 2023 @ 5:12pm 
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.
Sideral Lemon Mar 5, 2022 @ 8:43am 
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  [author] Apr 24, 2021 @ 10:46am 
did you correctly set your color values ? (it works with rgb values)
The_onlySpaceace Apr 17, 2021 @ 8:19pm 
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  [author] Mar 6, 2021 @ 3:29am 
Of course ! Feel free to use it
Tkmined Mar 5, 2021 @ 6:30am 
May I use this on a storm chaser? I'll credit you in the description.
Léo la souris  [author] Nov 9, 2020 @ 6:15am 
not yet, but i'll do it in a futur update ^^
StormLupine777 Nov 9, 2020 @ 3:38am 
Is there a version that has a map in place of the compass?
Léo la souris  [author] Oct 26, 2020 @ 11:16am 
Updated :
- m/s or knots option
- 2x2 screen support
Teddybear72N Sep 13, 2020 @ 1:23am 
Nice, i dont know how to :-)