SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Self-Recording Thermometer

SBy Spoonail

Adds a self-recording thermometer

Self-Recording Thermometer

Description

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 (link to re-uploaded by FatherSarge) installed, the thermometer will display temperatures in Fahrenheit.
You can also enable it  manually with this command:

<pre>.thermo unit f</pre>

&nbsp;

To force Celsius, run this command:

<pre>.thermo unit c</pre>

Commands

Server side

<pre>/thermo force-sample-all</pre>

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

Client side

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

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

<pre>samplingIntervalMinutes</pre>

Interval between temperature recordings in in-game minutes.

Client side

Path: VintagestoryData/ModConfig/airthermomod-client.json

<pre>unitSetting</pre>

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

Please follow the Help / Contact Guide.

Insufficient bug reports in the ModDB comments will be deleted without notice.

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.
  • This mod can handle different days per month other than the default (9) properly, but changing it in an existing world might cause data inconsistency.
    • I recommend breaking and re-placing your Thermometers after changing the setting, to avoid confusion
    • Possible inconsistencies include:
      • Thermometers contain records for a period shorter than (new) 1 year
        • Will be filled over time
      • Past temperatures no longer match the season
        • This is because thermometers do not re-record past temperatures on the setting change
        • New records will be correct&nbsp;

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.