-  GitHub-Logo YouTube-Logo Twitter-Logo

  -  EN  |  DE  -

PiTS - the smart π-Temperature-Sentinel

Welcome to the PiTS - a smart app for measuring, monitoring and displaying temperatures based on the Raspberry Pi and REBOL.
This webpage provides some information about a further developement of TGD-Consulting in the field of embedded hardware and software solutions for the Raspberry Pi and is intended for all users, makers and developers who would like to use their Raspberry Pi for measuring and monitoring temperatures and other weather data.

You can purchase an officially licensed bundle of the "PiTS-It!" management software[1] at a price of €19,99 EUR only here. The software bundle already includes all necessary modules of the management software, which are required for a smart temperature sentinel / monitor based on the Raspberry Pi.

The software works on all Raspberry Pi models. Especially with the newer Raspberry Pi 3 as well as Raspberry Pi 2 models, our software benefits from the additional computing power of the new multi-core architecture.

The "PiTS-It!" management software features in particular
  • amazingly simple setup
  • small memory footprint (< 1MB)
  • efficient, modular, smart application
  • user space operated embedded web server
  • displaying meassurements optionally on a remote LCD
  • Apple HomeKit compatibility via "homebride-http-PiTS" plugin.
It operates with many different sensors:
The software can also be used as a data logger for GPIO signals.

Please refer to the release notes to get an overview and information on the latest version of the software.

The hardware shown in the following photos is used for illustrative purposes only and as an example of how PiTS looks like and how it is set up. Please purchase the required hardware from the respective manufacturers or through their sales channels. TGD-Consulting offers only IT services and software solutions.

You want to make your own PiTS based on our "PiTS-It!" management software? Then purchase a license and read on to find out ...

As a quick start you'll get here directly an answer to the most frequently asked questions:

More answers to questions can be found in the FAQ or at the Deutsches Raspberry Pi Forum.

New model line: the CO2 traffic light now with NeoPixel LED ring 

Now available with optimized code as a compact, low-cost CO2 traffic light in 3D printed housing
for NeoPixel LED rings. Assembly instructions can be found here.

New: smart CO2 traffic light as USB stick 

Now also available as a compact, low-cost CO2 traffic light in a 3D printed housing
with optional satellite function to PiTS.

The term PiTS stands for π-Temperature-Sentinel and represents the extension of a common Raspberry Pi to a smart solution for measuring, monitoring and displaying temperatures. PiTS is highly versatile. It can be used either for temperature monitoring in server rooms
Example of a temperature monitoring based on PiTS
, as a regulation for heating systems or also for the long-term archiving and recording of weather data (such as temperature, air pressure and humidity) in the realm of weather stations. This application example is described in more detail below. All important PiTS functions can also be controlled and monitored remotely from any PC, tablet or smartphone using a browser.

Get to know the advantages and possibilities of the π-Temperature-Sentinel and convince yourself right here and now on the Internet of the "PiTS-It!" management software and its simple, smart operation as well as the extensive configuration options. Here you see a

PiTS in action: 

The user interface of PiTS.

The system price of PiTS including all required components is between 50,- and 100,- EUR depending on the type and number of components / sensors. That figure already includes the licence costs for the "PiTS-It!" management software. The version of the PiTS shown on this page consists of the following components:

PiTS Prototyp 

PiTS-Prototyp FrontPiTS-Prototyp back
PiTS prototype for outdoor use.

The external appearance of our PiTS prototype is characterised by the external WiFi antenna and the black PCB of the Enviro pHAT. Due to the dimensions of all assembled components, installation in the housing is somewhat cumbersome. Nevertheless, all single PiTS components can be assembled by every ambitious user with a little bit of skill. All components can be purchased directly from the Internet. The sources of supply are partly linked in the above lists. For our prototype of the PiTS we use a Raspberry Pi Zero, which is extended by the HLK-PM01 mini switch mode power supply and the sensors. In this way a modern, expandable digital weather station can be self made in a very cost-effective way to collect the desired weather data.

Since splash-proof and outdoor housings for the Raspberry Pi are known to be quite expensive, it is advisable to use a suitable LED floodlight housing for a different purpose. If required, a conventional power supply unit can be used to power the Raspberry Pi instead of the miniature switched-mode power supply module. However, it is important to ensure that the extra-low voltage connection between the power supply and the Raspberry Pi is not too long to keep the voltage drop in the cable as low as possible. If the cable quality is right, there should be no problems with lengths up to one meter.

Attention: If unexpected system failures occur during operation, this indicates that the power supply of the Raspberry Pi is too weak. Then replace the power supply with a stronger and more reliable one.

A BME280 sensor

BME280 sensor module
can also be used instead of the more economical BMP280 sensor

BMP280 sensor module
. Although the BME280 sensor module is more expensive to purchase, it offers the advantage of measuring not only temperature and barometric air pressure, but also relative humidity. Both sensors are connected to the Raspberry Pi via the I²C interface. Therefore, the cables/wires should not be too long to connect these sensor modules. Both modules are compatible with each other and are connected directly to the 3.3 volt voltage (Pin#1), a ground connection (GND e. g. Pin#6) and the GPIO pins of the I²C interface (Pin#3 & Pin#5) of the pin header P1 of the Raspberry Pi. When connecting more than one BMP/BME280 sensor module to the Raspberry Pi, make sure that the sensor modules do not use the same I²C address.

If the measuring points for the temperatures are far from the Raspberry Pi, 1-Wire temperature sensors of type DS18B20 are more suitable. The 1-Wire bus system supports cable lengths of several meters. For this reason, we use several DS18B20 sensors for monitoring temperatures in the server room
Example of temperature monitoring with 1-Wire sensors
(here the DS18B20 are connected via the white cables)
of another PiTS prototype, which are connected to the bus in a star shape in parasitic mode. The exact connection of the 1-Wire temperature sensors is shown in the schematic shown here. All 1-Wire sensors that are properly connected to the Raspberry Pi will be automatically recognized and integrated for temperature measurement after the initial startup of the "PiTS-It!" management software.

Short circuits should be avoided when installing the components in the housing. When installing the HLK-PM01 module, make sure that no unwanted connections are made to the earthed housing or live cables. Particularly when installing the Raspberry Pi and handling the sensors/Enviro pHAT, care must be taken to ensure that appropriate protective measures are taken against static charges.
The Ethernet port (available on Model B only) and the USB port of the Raspberry Pi (all models) are freely accessible internally, so that the π-Temperature-Sentinel (PiTS) can be connected to your own LAN via Cat cable or USB Wifi adapter. This is what our PiTS prototype currently looks like from the inside:

PiTS inside 

PiTS - magic by design.

The respective measured values are recorded automatically for all connected sensors. The measured values of all sensors are periodically recorded and evaluated by a REBOL3 script, the TempSensor module of the "PiTS-It!" management software, and in case of deviation from the previous measured value, the current value is automatically logged.

Our PiTS prototype not only records the three measured variables (temperature, humidity, air pressure) of the BME280 sensor, but also the temperature and air pressure of the BMP280 sensor integrated on the Enviro pHAT, as well as the brightness and light colour of the TCS3472 sensor
The TCS3472 sensor of the Enviro pHAT
, which is also installed there.
The Enviro pHAT is placed directly behind the glas of the LED floodlight, so that the brightness and colour of the
incident sunlight

Comparison of brightness and colour of light in sunny and cloudy twilight.
can be measured well. The black PCB of the Enviro pHAT absorbs the heat radiation of the sunlight particularly well and heats up. Therefore, the temperatures measured by the BMP280 are not representative of the current ambient air temperature (outside the enclosure). The SOC temperature of the Raspberry Pi Zero is always a few degrees Celsius "cooler" because the above mounted Enviro pHAT shields the solar radiation and cannot penetrate it directly to the SOC. The Raspberry Pi Zero performs reliably in 24/7 operation despite the large temperature fluctuations between day and night.

The central core of the PiTS is the "PiTS-It!" management software, which includes the TempSensor module as well as a web server module and the archiving & plot module. With the help of the latter, PiTS-It! is archiving all measured data and prepares them for graphical representation as a plot. The graphics are automatically updated every night, shortly before midnight, and provided as resources for a page of the web server. The clear daily, weekly, monthly and yearly charts (see above) are enlarged when you click on them. The TempSensor module is Donationware and is available as open source under this conditions. The remaining components of the management software are closed source and require the purchase of a license.

The software also includes an LCD module, which enables the measurement results
Example of temperature display on the LCD
to be displayed by directly controlling a Liquid Chrystal display (HD44780 LCD). Please refer to the FAQ for details on how to use the optional LCD module.

If desired, the measured data of selected sensors can be transmitted as open data to platforms for open sensor data such as openSenseMap or Luftdaten.info as part of Citizen Science. In this way, all members of the Digital Society, especially Digital Natives & Maker, can participate.

The software requires a REBOL3 runtime environment / interpreter. If you like, you can compile the source code of the REBOL3 interpreter for the Raspberry Pi by yourself. The Master Branch is released under the Apache2.0 license on GitHub. Alternatively, you can download a binary for Raspbian directly from our homepage.

The operation of PiTS-It! is easily done via a normal web browser. The web server module handles all communication and control. An integrated search function makes it easy and quick to search for historical measured values. In addition, a status function ("... a nice gimmick...") is implemented in the web server module, which not only records information about the hardware of the Raspberry Pi but also its SOC temperature of the last 10 hours and displays it as a temperature curve. Just click on the corresponding π-symbol in the lower right corner of the page and find out how warm it is inside the PiTS.
In addition to this gimmick, you can also configure the main functions of PiTS using the web server module. Starting with the exact designation of the individual sensors, via the sampling rate of the measurements up to the type of sensors as well as the optional event control, all important parameters are configured centrally from the browser via the system settings.
With using the universal event control

Example of an LED temperature display based on event control
any configurable events (GPIOs, e-mail or shell commands) can be temperature-dependent controlled. For example, automatic monitoring and control of the heating system or a temperature and / or brightness dependent roller shutter control can be easily implemented via additional GPIOs and relay modules. This also enables notification by e-mail in case of too warm or cold temperatures.
An overview of the various setting options is shown in the following figure.


The PiTS configuration interface (PiTS-Settings).

Note: By factory default the configuration interface (PiTS settings) can only be reached via the same network segment where the PiTS is located. If necessary, this can be adapted to your own security requirements. If no address for the Admin IP nor an IP range is specified, the π-Temperature-Sentinel can be configured from any IP address! Optionally, you can set the access control by an individual combination of user name and password.

Use the following link to purchase a license of "PiTS-It!" and acquire the software itself (Note: After receipt of payment you will receive the software bundle by e-mail within 3 working days at the latest). With the license for the software bundle you also acquire a limited, non-exclusive right of use for the respective modules. Additional licensing of the individual modules is not required. Nevertheless, in addition to individual licenses for the respective modules (archiving & plotting / web server), volume licenses for our software can also be purchased if required. Detailed information on prices and quantity discounts are available upon request.

Existing customers can upgrade their license to the current version of PiTS-It! management software at a discounted price of 6.99 EUR.

Installation & Start: The software comes as a tarball, which only has to be unpacked (tar xvf PiTSIt.tar) and the "PiTS-It!" management software is ready for use on the Raspberry Pi. By manually calling the shell script ./PiTSIt.sh start the PiTS modules are started on the Raspberry Pi. This script can of course also be used as an init script to automatically start PiTS-It! be integrated into the system. As an alternative to the shell script, the PiTS-It! modules can also be executed individually. By entering ./bin/r3 PiTSIt.r & the Archiving & Plot module and the TempSensor module are started. The start of the web server module is done by this command ./bin/r3 Webserver.r & . However, we recommend that you include the web server module as a ReSpawn process in /etc/inittab or as a systemd-service. This has the advantage that the web server module restarts each time it is closed.

Usage: As already mentioned above, the further use and configuration of the PiTS-It! management software is amazingly simple. It is primarily done by using the browser on pc, tablets or smartphones. Simply enter the IP address of the Raspberry Pi and the used port of the web server module in the browser ( eg: ) as URL and go for it. Everything else is self-explanatory or reveals itself by itself.

We hope you are just as convinced of the benefits of PiTS and the smart design of the software as we are. If you have any questions, requests or suggestions for improvements regarding PiTS or the "PiTS-It!" management software, we are looking forward to your enquiry.

Are you interested in further software and projects developed by us? Then you should also visit these sites:


  -   Copyright 2014-2022, TGD-Consulting   -   FAQ   -   PiTS powered by Serve-It! TNG   -