Mods / Self-Recording Thermometer

Tags: #Other #QoL #Simplification #Utility
Author: Spoonail
Side: Both
Created: Dec 20th 2024 at 7:00 AM
Last modified: Oct 17th at 2:26 PM
Downloads: 10000
Follow Unfollow 258

Recommended download (for Vintage Story 1.21.1 and 1.21.5):
airthermomod_0.3.0.zip  1-click install


Overview

This mod adds a self-recording thermometer.
Once placed, it automatically records temperature at regular intervals (default: once per in-game hour).
You can right-click it to see a report of daily min/max temperatures.

Crafting

It can be crafted from any log, any metal nugget, and four sticks.
See 'Thermometer' page in the handbook for shape.

Features

Copying Data

Recorded data will be lost when a thermometer is broken, but you might want to move it a block or two without losing the data.
For this purpose, you can copy data between two thermometers.

  1. Right-click the source thermometer with a parchment or four dry grasses to create a recorded chart paper
  2. Right-click the destination thermometer with the recorded chart paper to copy data from the source

Warning: Don't break the source thermometer before step 2, or the step will fail and the source data will be lost.

Materials used for a recorded chart paper will be returned when used on a thermometer.
(This behavior is available even if the source and destination are the same, so if you accidentally created a recorded chart paper, just use it on the same thermometer again to get the materials back.)

Fahrenheit unit support

If you have FreedomUnits by BillyGalbreath installed, the thermometer will display temperatures in Fahrenheit.
You can also enable it  manually with this command:

.thermo unit f

 

To force Celsius, run this command:

.thermo unit c

Commands

Server side

/thermo force-sample-all

Forces the targeted thermometer to get temperature data over the entire retention period (one in-game year).

Client side

.thermo unit [u/unspecified/c/celsius/f/fahrenheit]

Changes the unitSetting value in the client-side configuration.
See the unitSetting description below for more details on each option.

Configuration

Server side

Path: VintagestoryData/ModConfig/airthermomod.json

samplingIntervalMinutes

Interval between temperature recordings in in-game minutes.

Client side

Path: VintagestoryData/ModConfig/airthermomod-client.json

unitSetting

Possible values: Unspecified/Celsius/Fahrenheit
* Directly editing this is not recommended. Please use the .thermo unit command to change the value.
Specifies which temperature unit to display.
When set to Unspecified, the thermometer uses Fahrenheit if a Fahrenheit unit mod (e.g. FreedomUnits) is enabled; otherwise, it uses Celsius.

Help/Contact

If you encounter any problems or have feature requests, please do one of the following:

  • Create an issue on the GitHub (click Issue Tracker tab on this page)
  • Post in the forum thread for this mod on the Vintage Story Discord server (click Homepage tab on this page)

These methods align with how I handle reports for other mods (even for other games), making it easier for me to track and respond.
Note: Comments on this page are rarely checked.

Other Notes

  • The thermometer recipe is intentionally simple to ensure it is accessible to early-game players. More immersive recipe/crafting is not planned currently, but feel free to patch the recipe or fork the mod source to suit your preferences.

Mod Version For Game version Downloads Released Changelog Download 1-click mod install*
0.3.0 1487 Oct 17th at 12:30 PM airthermomod_0.3.0.zip 1-click install

- Fahrenheit unit support
- Layout improvements

Thank you for the contribution, FatherSarge

0.2.0
1.21.0-rc.4 - 1.21.0-rc.5
2280 Aug 16th at 11:27 AM airthermomod_0.2.0.zip 1-click install

- Updated for VS 1.21

0.1.2 6233 Dec 20th 2024 at 7:06 AM Empty airthermomod_0.1.2.zip 1-click install

26 Comments (oldest first | newest first)

💬 Tyrlaren, Oct 18th at 11:51 PM

Thank you for sharing your work with us.

💬 Tels, Oct 18th at 1:40 PM (modified Oct 18th at 1:42 PM)

We tried to use this mod on a G-Portal server, but the server seems not to load it, and there is no message in the log.
Edit: The mod was loaded and seems to work, but there was no message to download it for clients.

💬 TheRealFlynn, Oct 17th at 4:51 PM

Love this mod. Just saying. Thanks for making it.

💬 _Spy_, Sep 30th at 9:42 PM

ty :D 

💬 TheDude, Sep 13th at 1:47 PM (modified Sep 13th at 1:47 PM)

Hello, I wanted to know if the mod was functional and stable in 1.20.1 ?

💬 Spoonail , Aug 16th at 5:43 PM (modified Aug 16th at 5:59 PM)

Released v0.2.0, compatible with VS 1.21.
This should fix the crash on 1.21 (reported by Blacklands below)

💬 racsumsar, Aug 9th at 9:47 AM

just the mod I was looking for, thanks!

💬 Blacklands, Aug 8th at 8:38 PM (modified Aug 16th at 6:36 PM)

Just a warning that opening the UI for the thermometer crashes the game on all currently released v1.21 versions, due to (what looks like) changes to the GUI code in the game.

I opened a bug report for it already.

EDIT: The new version of the mod fixes it! :)

💬 MRGOOSE, Jul 16th at 10:12 AM

would this affect performance?

💬 wile1411, Jul 1st at 1:49 AM

Neat mod and thanks for making @Spoonail

 

Awesome that is looks like its own weather station.

 

Any thoughts on adding other weather stats into the table

Maybe if summing the rain stop-start times and displaying as a % of total day length? Or keeping in 'theme', each minute it rains ~0.1mm?

Or % time wind was hurricane / light breeze strength


The rain data would be interesting to see if it has a pattern throughout the year and be useful for cropping.

💬 LongShaynx, Jun 21st at 5:49 PM

Hey there, will this mod be updated?

💬 Willownezz, May 31st at 1:06 AM

I was wondering, in my world, I use the teleportation mod that creates random teleports on the surface that I use to have bases connected in various areas, and in each area, I place one of the Thermometers from this mod so I can keep records of the temperatures would it be possible that based on temperature the termomether have a page where it says like "Onions in this area should be planted from X to Z" based on the temp already colected so it only show the months that I have record for each of the crops in game???

💬 Byucknah, May 24th at 11:46 PM

Any way a client side, non-placed, version of this could be made so you can keep track of like... the last 5 days highs and lows as long as you were on to record them?

💬 Menelos, Apr 1st at 11:18 PM

Spoonail thanks for your mod, this is quite handy :-).

To move the thermometer more easily, could it be possible to make it compatible with the CarryOn mod?

💬 Willownezz, Mar 31st at 9:34 PM

love this mod, I was wondering if there is a way to maintain the data when breaking the Thermometer, some times I want to move it but then I loose all the gathered data

💬 Taeo, Mar 19th at 11:28 PM

I too would like to know how this handles the chunk being unloaded. Is the green/black area on the chart showing when its loaded? What does the force-sample-all command do?

💬 Ragolution, Mar 19th at 10:32 PM

Does this mod keep the chunk loaded where thermometers are located, does it 'wake up' the chunk on each tick or does it just only tick when the chunk is loaded? Also, would it be possible to have the data recorded to a book instead of just another thermometer using the data-copy feature?

💬 Wrum, Mar 11th at 2:17 AM

I suddenly wish that there was mercury in vs

💬 Denis_NoL, Feb 27th at 2:18 PM

Hi and thx for your V.S. contribution. May i suggest you a possible improvement : Add a drop-down list of the suitable plants to be planted/grown for current day (luxury improvement : for each recorded day LOL)

💬 Spoonail , Jan 16th at 12:20 PM

Thanks for the feedback.

First, the temperature displayed by this mod is accurate* for the temperature that affects crops.
Of course, it's different from the temperature for calculating perish rate, and also from the temperature that affects player.
For example, you can warm up yourself by lighting a fire pit in a room, but you can't use that warmth to grow onions in winter, right?

As for displaying room temperature, further investigation and consideration would be needed.
It might make sense to display it on a separate page or in a distinct way to avoid confusion.

FYI, in a cellar, perish rate is calculated as if the temperature is the lower of 5℃ and outside temperature.
Even if the thermometer displayed that, you would see a flat graph of 5℃ in most cases, which might not be very helpful.
Additionally, perish rate is also affected by sunlight, so it doesn't perfectly align with temperature alone:
https://discord.com/channels/302152934249070593/418475092138393600/1329042789207375944

* Currently, greenhouse effect is ignored. Add +5℃ manually to the reading if you are placing the thermometer in a greenhouse.

💬 Snowfious, Jan 15th at 2:43 AM

Hi, I hope you can update this. There seems to be an issue, this mod, along with Status Hud, do not use the correct room temperature. For example, on the same floor, I have a smithing room, as well as my celler room. Both your mod and Status Hud, seem to be using some kind of Y-level based system or something, but does not follow the in-game celler room. You can use the Storage Vessel for example. I'm in my celler, and the food perish speed is in the teens/twenties (0.1-0.3), while a Storage Vessel in my smithing room shows all the stats close to 1.0 (0.9-1.1), or over. Therefore clearly, whether through an API, something isn't correct.

Essentially, I would like this mod to of course use the Y-level temp, but if in some kind of room, such as a celler, or non-celler room, to have the temp be specific to that room, than just the Y-level. If that is possible, which I hope it is.

Anyway, hope you can add something like this. Great mod, nontheless.

💬 TheRealFlynn, Dec 28th 2024 at 1:44 PM

great mod. any way you could write the data to the handbook?

 

💬 Spoonail , Dec 26th 2024 at 9:05 PM

Tested on rc6 and worked fine.

If the issue occurs again, please post `client-main.txt` and `server-main.txt` logs to the mod forum (click the Homepage tab above).

💬 Perturbae, Dec 26th 2024 at 11:35 AM

Is it possible that something is different in RC6? My thermometers seemed to ignore right-clicks now.

Update: apparently the one in loading range was borked, the others are fine. I "broke" it and placed it back, now it works again although I did lose the data (which I got back with the force update).

💬 Wandour, Dec 22nd 2024 at 8:45 AM

is there a possible way to use this as a client side with UI to research areas and regions ?

💬 Dirty_Shisno, Dec 22nd 2024 at 12:37 AM

Very excited to mess around with this. No more mental graphs.

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом