WeatherCubeOne2 is the next development level based on weathercubeone1.
Completely rewritten using MQTT. MQTT is a great Technology - the new solution is much simpler then the previous - No need for complex JavaObjects / Inline Java / httpjobs as subscribe and publish messages handles the flow of data.
It also enables to build UI clients, e.g. for B4J and B4A with almost the same code.
The TinkerForge MQTT topics published, are converted and displayed on the TinkerForge LCD20x4 display and published to the Domoticz Server.
For more information, read the detailed description, the readme.txt or the project source code.
The source code is well documented with hints on how to install MQTT and use with B4J, Lazarus or any other MQTT clients.
Download B4J Source Code here.
- Display Date & Time, Air Pressure, Temperature and Humidity on a TinkerForge LCD 20x4 display and on a Domoticz Client Browser.
- Display Trend (Arrow Up / Down) via Custom Characters
- The LCD 20x4 Display buttons function as 1 = Backlight On; 2 = Backlight Off; 3 = Show WeatherCubeOne Version; 4 = Shutdown the WeatherCubeOne.
- To obtain information send from the TinkerForge Bricklets subscribe to the Topics: weathercubeone/airpressure, weathercubeone/timestamp, weathercubeone/temperature or weathercubeone/humidity.
- To trigger an action on the WeatherCubeOne, following topics can be published: weathercubeone/backlighton, weathercubeone/backlightoff, weathercubeone/clear, weathercubeone/copyright, weathercubeone/close, weathercubeone/shutdown.
- Enables clients like B4J UI (example included), B4A (not ready), Lazarus UI (example included)
- But also any other MQTT client (Windows, Android, Apple) or own developments
- Improved Raspberry Pi memory usage
- Example Google Line Charts Temperature, Airpressure, Humidity updated via B4J server using MQTT
- Using TinkerForge Brick MQTT Proxy, B4X MQTT Client Library, Domoticz MQTT
Note: It is also possible to subscribe or publish to the TinkerForge Master Brick or Bricklets or Domoticz topics. The payload has to be parsed with JSON.
See the examples B4J & Lazarus MQTT client. To learn more, see the references listed below.